<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#333333" bgcolor="#CCCCCC">
    Package: csound <br>
    <div class="moz-forward-container">
      <p> <br>
        Version: 1:6.08.0~dfsg-1 <br>
        Severity: normal <br>
        <br>
        Dear Maintainer, <br>
        <br>
        <br>
        the r instruction doesn't work as expected. The section is not
        repeated. If we test with example file from the documentation,
        we got an error about Macro which is undefined:<br>
      </p>
      <p>$ csound r.csd                 <br>
        virtual_keyboard real time MIDI plugin for Csound<br>
        0dBFS level = 32768.0<br>
        --Csound version 6.08 (double samples) 2016-12-01 <br>
        [commit: none]<br>
        libsndfile-1.0.27<br>
        UnifiedCSD:  r.csd<br>
        STARTING FILE<br>
        Creating options<br>
        Creating orchestra<br>
        Creating score<br>
        rtaudio: ALSA module enabled<br>
        rtmidi: ALSA Raw MIDI module enabled<br>
        Elapsed time at end of orchestra compile: real: 0.003s, CPU:
        0.003s<br>
        sorting score ...<br>
        Undefined macro: '$REPS_MACRO'end of score.               
        overall amps:      0.0<br>
                   overall samples out of range:        0<br>
        0 errors in performance<br>
        Elapsed time at end of performance: real: 0.003s, CPU: 0.003s<br>
      </p>
      <p>I join the r.csd file for your tests.</p>
      <p><br>
      </p>
      <p>If I omit macro, section is not repeated. However we see csound
        entering in the sections, but making no sound.</p>
      <p>This the file content:</p>
      <CsoundSynthesizer><br>
        <CsOptions><br>
        -odac<br>
        </CsOptions><br>
        <CsInstruments>r<br>
      sr     =        44100<br>
      ;kr     =        4410<br>
      ksmps  =        256<br>
       0dbfs = 40<br>
          <br>
          instr 1<br>
                          ;xamp,     ;kcps    xcar         xmod       
      kndx        ifn     iphs<br>
              a1 foscil  p4,         p5,     1,           p7,        
      p6,         1,     0<br>
           out a1<br>
          endin<br>
              <br>
          <br>
        </CsInstruments><br>
        <CsScore><br>
          f 1 0 4096 10 1 0.5 0.25 0.25 0.10 0.05 0.05 0.025 0.0125<br>
          f 2 0 4096 10 1<br>
      ;1          2           3                   4          
      5               6           7<br>
       ;inst      time        dur                 amp        
      note             p6          p7<br>
      r 4<br>
      i1          0           0.15               2          
      120               1.5         6<br>
      i1          +           .                  .           [ 120 *
      2^(4/8)]  1.0         .<br>
      i1          +           .                  .           [ 120 *
      2^(8/8)]  1.9         .<br>
      i1          +           .                  .           [ 120 *
      2^(4/8)]  1.0         .<br>
      s<br>
      e<br>
          </CsScore><br>
      </CsoundSynthesizer><br>
      <br>
      <p>and the output:</p>
      $ csound test_mel2.csd <br>
      virtual_keyboard real time MIDI plugin for Csound<br>
      0dBFS level = 32768.0<br>
      --Csound version 6.08 (double samples) 2016-12-01 <br>
      [commit: none]<br>
      libsndfile-1.0.27<br>
      UnifiedCSD:  test_mel2.csd<br>
      STARTING FILE<br>
      Creating options<br>
      Creating orchestra<br>
      Creating score<br>
      rtaudio: ALSA module enabled<br>
      rtmidi: ALSA Raw MIDI module enabled<br>
      Elapsed time at end of orchestra compile: real: 0.003s, CPU:
      0.003s<br>
      sorting score ...<br>
      Repeats=4<br>
      Repeat section<br>
      Repeat section<br>
      Repeat section<br>
              ... done<br>
      Elapsed time at end of score sort: real: 0.003s, CPU: 0.003s<br>
      graphics suppressed, ascii substituted<br>
      0dBFS level = 40.0<br>
      orch now loaded<br>
      audio buffered in 256 sample-frame blocks<br>
      ALSA output: total buffer size: 1024, period size: 256 <br>
      writing 256 sample blks of 64-bit floats to dac <br>
      SECTION 1:<br>
      ftable 1:<br>
      ftable 1:       4096 points, scalemax 1.000<br>
          _'''-_<br>
                '._<br>
         -         -_<br>
                     '._<br>
        -               '''--._<br>
                               '.<br>
                                 '.<br>
       '                           -_<br>
                                     -_<br>
_________________________________'--.._________________________________________<br>
                                              ''--.._<br>
                                                     -_<br>
                                                      
      -_                           -<br>
                                                         -_<br>
                                                          
      -_                      _<br>
                                                             '-.___<br>
                                                                   ''._<br>
                                                                      
      -.         '<br>
                                                                        
      '._     _<br>
                                                                     
      -.__.<br>
      ftable 2:<br>
      ftable 2:       4096 points, scalemax 1.000<br>
                     .-''''''-._<br>
                  _-'           '.<br>
                _-                '.<br>
               -                    '_<br>
             .'                       -<br>
            -                          '_<br>
          _'                             .<br>
         .                                -<br>
        -                                  '_<br>
_'_____________________________________._______________________________________<br>
                                             
      -                                     .<br>
                                              
      -                                   -<br>
                                               
      '_                               _'<br>
                                                 
      .                             .<br>
                                                  
      -                           -<br>
                                                   
      '.                       _'<br>
                                                     
      -_                    -<br>
                                                       
      -_                .'<br>
                                                          -_          
      _.'<br>
                                                            '-._____..'<br>
      end of section 1         sect peak amps:    0.000<br>
      SECTION 2:<br>
      new alloc for instr 1:<br>
      B  0.000 ..  0.150 T  0.151 TT  0.151 M:    2.000<br>
      B  0.150 ..  0.300 T  0.302 TT  0.302 M:    2.000<br>
      B  0.300 ..  0.450 T  0.453 TT  0.453 M:    2.000<br>
      B  0.450 ..  0.600 T  0.598 TT  0.598 M:    2.000<br>
      end of section 2         sect peak amps:    2.000<br>
      inactive allocs returned to freespace<br>
      SECTION 3:<br>
      end of section 3         sect peak amps:    0.000<br>
      SECTION 4:<br>
      end of section 4         sect peak amps:    0.000<br>
      Score finished in csoundPerform().<br>
      inactive allocs returned to freespace<br>
      end of score.              overall amps:    2.000<br>
                 overall samples out of range:        0<br>
      0 errors in performance<br>
      Elapsed time at end of performance: real: 0.597s, CPU: 0.063s<br>
      103 256 sample blks of 64-bit floats written to dac
      <p>the csd file is attached.<br>
      </p>
      <p><br>
      </p>
      <p>Thx<br>
      </p>
      <p> <br>
        System Information: <br>
        Debian Release: 9.2 <br>
            APT prefers stable-updates <br>
            APT policy: (500, 'stable-updates'), (500, 'stable') <br>
        Architecture: amd64 (x86_64) <br>
        <br>
        Kernel: Linux 4.9.0-5-amd64 (SMP w/4 CPU cores) <br>
        Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8),
        <br>
        LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8) <br>
        Shell: /bin/sh linked to /bin/dash <br>
        Init: systemd (via /run/systemd/system) <br>
        <br>
        Versions of packages csound depends on: <br>
        ii  libc6            2.24-11+deb9u1 <br>
        ii  libcsound64-6.0  1:6.08.0~dfsg-1 <br>
        ii  libgcc1          1:6.3.0-18 <br>
        ii  libgomp1         6.3.0-18 <br>
        ii  libstdc++6       6.3.0-18 <br>
        <br>
        Versions of packages csound recommends: <br>
        ii  csound-utils  1:6.08.0~dfsg-1 <br>
        <br>
        csound suggests no packages. <br>
        <br>
        -- no debconf information </p>
    </div>
  </body>
</html>