Bug#676145: csound: loscil does not recognize looping info in wav headers

Forrest Cahoon forrest.cahoon at gmail.com
Tue Jun 5 02:06:36 UTC 2012


Package: csound
Version: 1:5.17.6~dfsg-3
Severity: normal

Dear Maintainer,

When using the loscil opcode, looping info in wav format headers is not
recognized. This worked correctly with the debian-packaged version of csound
5.15, and it works correctly with csound built from git sources (pulled on
2012-06-04).

I have a sample csd/wav file which shows the problem, which I will attach to
this bug report.

Output from the debian version is this:

forrest at supercool:~/csound/samples/small$ csound -d -odac loscil.csd
PortMIDI real time MIDI plugin for Csound
PortAudio real-time audio module for Csound
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 5.17 (double samples) May  9 2012
libsndfile-1.0.25
UnifiedCSD:  loscil.csd
STARTING FILE
Creating orchestra
Creating score
RAWWAVE_PATH: /usr/share/stk/rawwaves/
rtaudio: PortAudio module enabled ... using blocking interface
graph init
rtmidi: PortMIDI module enabled
orch compiler:
        instr   1
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.000s
sorting score ...
        ... done
Elapsed time at end of score sort: real: 0.004s, CPU: 0.000s
Csound version 5.17 (double samples) May  9 2012
displays suppressed
0dBFS level = 32768.0
ftable 101:
deferred alloc
audio sr = 48000, monaural
opening WAV infile has_loop_info.wav
  defer length 1440
orch now loaded
audio buffered in 256 sample-frame blocks
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only
playback stream
PortAudio V19-devel (built Dec  7 2011 23:15:44)
PortAudio: available output devices:
   0: HDA Intel: STAC92xx Analog (hw:0,0)
   1: HDA Intel: STAC92xx Digital (hw:0,1)
   2: HDA Intel: HDMI 0 (hw:0,3)
   3: sysdefault
   4: front
   5: surround40
   6: surround51
   7: surround71
   8: iec958
   9: spdif
  10: hdmi
  11: pulse
  12: dmix
  13: default
  14: /dev/dsp
PortAudio: selected output device 'default'
writing 256 sample blks of 64-bit floats to dac
SECTION 1:
new alloc for instr 1:
WARNING: no legal base frequency
WARNING: loscil: sustain defers to non-looping source
B  0.000 ..  3.000 T  3.000 TT  3.000 M:  17227.9
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.              overall amps:  17227.9
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 3.239s, CPU: 0.230s
563 256 sample blks of 64-bit floats written to dac

A very brief blip is heard as there is no looping.

Output from my git build is this:
forrest at supercool:~/csound/samples/small$ csound -d -odac loscil.csd
time resolution is 1000.000 ns
PortMIDI real time MIDI plugin for Csound
PortAudio real-time audio module for Csound
0dBFS level = 32768.0
Csound version 5.17.12 beta (double samples) Jun  4 2012
libsndfile-1.0.25
UnifiedCSD:  loscil.csd
STARTING FILE
Creating orchestra
Creating score
rtaudio: PortAudio module enabled ... using blocking interface
rtmidi: PortMIDI module enabled
Parsing successful!
Elapsed time at end of orchestra compile: real: 0.005s, CPU: 0.000s
sorting score ...
        ... done
Elapsed time at end of score sort: real: 0.005s, CPU: 0.000s
Csound version 5.17.12 beta (double samples) Jun  4 2012
displays suppressed
0dBFS level = 32768.0
ftable 101:
deferred alloc
audio sr = 48000, monaural
opening WAV infile has_loop_info.wav
  defer length 1440
Base Note : 55  Detune    : 0
Low  Note : 0   High Note : 127
Low  Vel. : 0   High Vel. : 127
Gain      : 1   Count     : 1
mode      : 801
start     : 480 end       : 960 count  :0
mode      : 0
start     : 0   end       : 0   count  :0

orch now loaded
audio buffered in 256 sample-frame blocks
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only
playback stream
PortAudio V19-devel (built Dec  7 2011 23:15:44)
PortAudio: available output devices:
   0: HDA Intel: STAC92xx Analog (hw:0,0)
   1: HDA Intel: STAC92xx Digital (hw:0,1)
   2: HDA Intel: HDMI 0 (hw:0,3)
   3: sysdefault
   4: front
   5: surround40
   6: surround51
   7: surround71
   8: iec958
   9: spdif
  10: hdmi
  11: pulse
  12: dmix
  13: default
  14: /dev/dsp
PortAudio: selected output device 'default'
writing 256 sample blks of 64-bit floats to dac
SECTION 1:
new alloc for instr 1:
B  0.000 ..  3.000 T  3.000 TT  3.000 M:  29182.5
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.              overall amps:  29182.5
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 3.224s, CPU: 0.250s
563 256 sample blks of 64-bit floats written to dac

With this one, a sustained tone is heard as expected.



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages csound depends on:
ii  libc6            2.13-33
ii  libcsound64-5.2  1:5.17.6~dfsg-3

Versions of packages csound recommends:
ii  csound-gui       1:5.17.6~dfsg-3
ii  csound-manpages  1:5.13~dfsg-1
ii  csound-utils     1:5.17.6~dfsg-3

csound suggests no packages.

-- no debconf information
-------------- next part --------------
<CsoundSynthesizer>

<CsInstruments>
sr=48000
ksmps=1
nchnls=1

giSample ftgen 0, 0, 0, 1, "has_loop_info.wav", 0, 0, 0

instr 1

iAmp = ampdbfs(p4)
iFreq = p5
aOut loscil iAmp, iFreq, giSample
out aOut

endin


</CsInstruments>

<CsScore>

i1   0   3   -1  200

</CsScore>

</CsoundSynthesizer>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: has_loop_info.wav
Type: audio/x-wav
Size: 5908 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20120604/af3d98c8/attachment-0001.wav>


More information about the pkg-multimedia-maintainers mailing list