Package: csound

Version: 1:6.08.0~dfsg-1
Severity: normal

Dear Maintainer,


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:

$ csound r.csd
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
--Csound version 6.08 (double samples) 2016-12-01
[commit: none]
libsndfile-1.0.27
UnifiedCSD:  r.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.003s
sorting score ...
Undefined macro: '$REPS_MACRO'end of score. overall amps:      0.0
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.003s, CPU: 0.003s

I join the r.csd file for your tests.


If I omit macro, section is not repeated. However we see csound entering in the sections, but making no sound.

This the file content:

<CsoundSynthesizer>
  <CsOptions>
  -odac
  </CsOptions>
  <CsInstruments>r
sr     =        44100
;kr     =        4410
ksmps  =        256
 0dbfs = 40

    instr 1
                    ;xamp,     ;kcps    xcar         xmod kndx        ifn     iphs         a1 foscil  p4,         p5,     1,           p7, p6,         1,     0
     out a1
    endin


  </CsInstruments>
  <CsScore>
    f 1 0 4096 10 1 0.5 0.25 0.25 0.10 0.05 0.05 0.025 0.0125
    f 2 0 4096 10 1
;1          2           3                   4 5               6           7
 ;inst      time        dur                 amp note             p6          p7
r 4
i1          0           0.15               2 120               1.5         6
i1          +           .                  .           [ 120 * 2^(4/8)]  1.0         . i1          +           .                  .           [ 120 * 2^(8/8)]  1.9         . i1          +           .                  .           [ 120 * 2^(4/8)]  1.0         .
s
e
    </CsScore>
</CsoundSynthesizer>

and the output:

$ csound test_mel2.csd
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
--Csound version 6.08 (double samples) 2016-12-01
[commit: none]
libsndfile-1.0.27
UnifiedCSD:  test_mel2.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.003s
sorting score ...
Repeats=4
Repeat section
Repeat section
Repeat section
        ... done
Elapsed time at end of score sort: real: 0.003s, CPU: 0.003s
graphics suppressed, ascii substituted
0dBFS level = 40.0
orch now loaded
audio buffered in 256 sample-frame blocks
ALSA output: total buffer size: 1024, period size: 256
writing 256 sample blks of 64-bit floats to dac
SECTION 1:
ftable 1:
ftable 1:       4096 points, scalemax 1.000
    _'''-_
          '._
   -         -_
               '._
  -               '''--._
                         '.
                           '.
 '                           -_
                               -_
_________________________________'--.._________________________________________
                                        ''--.._
                                               -_
-_                           -
                                                   -_
-_                      _
                                                       '-.___
                                                             ''._
-.         '
'._     _
-.__.
ftable 2:
ftable 2:       4096 points, scalemax 1.000
               .-''''''-._
            _-'           '.
          _-                '.
         -                    '_
       .'                       -
      -                          '_
    _'                             .
   .                                -
  -                                  '_
_'_____________________________________._______________________________________
-                                     .
-                                   -
'_                               _'
.                             .
-                           -
'.                       _'
-_                    -
-_                .'
                                                    -_ _.'
                                                      '-._____..'
end of section 1         sect peak amps:    0.000
SECTION 2:
new alloc for instr 1:
B  0.000 ..  0.150 T  0.151 TT  0.151 M:    2.000
B  0.150 ..  0.300 T  0.302 TT  0.302 M:    2.000
B  0.300 ..  0.450 T  0.453 TT  0.453 M:    2.000
B  0.450 ..  0.600 T  0.598 TT  0.598 M:    2.000
end of section 2         sect peak amps:    2.000
inactive allocs returned to freespace
SECTION 3:
end of section 3         sect peak amps:    0.000
SECTION 4:
end of section 4         sect peak amps:    0.000
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.              overall amps:    2.000
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.597s, CPU: 0.063s
103 256 sample blks of 64-bit floats written to dac

the csd file is attached.


Thx


System Information:
Debian Release: 9.2
    APT prefers stable-updates
    APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8),
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages csound depends on:
ii  libc6            2.24-11+deb9u1
ii  libcsound64-6.0  1:6.08.0~dfsg-1
ii  libgcc1          1:6.3.0-18
ii  libgomp1         6.3.0-18
ii  libstdc++6       6.3.0-18

Versions of packages csound recommends:
ii  csound-utils  1:6.08.0~dfsg-1

csound suggests no packages.

-- no debconf information

Attachment: test_mel2.csd
Description: audio/csound

Attachment: r.csd
Description: audio/csound

Reply via email to