[Csnd] QuteCsound and sndwarp problems
Date | 2010-04-05 09:27 |
From | gary hiebner |
Subject | [Csnd] QuteCsound and sndwarp problems |
Attachments | sndwarp.csd |
I am using QuteCSound 0.5 on a MacIntel (10.5.8), with CSound 5.11 I am trying to running the sndwarp.csd example included by Dr Boulanger from the folder "a little something from Dr. B/ xtra_22/ 04_timeStretch_4"
When I run the file in QuteCSound it starts running Instr1 but when it gets to Instr 2 it freezes and then quits QuteCsound. I tried running it in the terminal and it quits the terminal as well. I get the following error when I run it from the terminal:
WARNING: SNDWARP at last sample frame I thought it may be a problem with running in realtime, so I ran it in offline, and it quit as well. Is there something I may be doing wrong or setup wrong in QuteCsound.
Attached is the file to check if others can run it correctly. |
Date | 2010-04-05 09:38 |
From | Victor Lazzarini |
Subject | [Csnd] Re: QuteCsound and sndwarp problems |
Works here, with 5.12. Maybe you should upgrade. Victor On 5 Apr 2010, at 09:27, gary hiebner wrote: > I am using QuteCSound 0.5 on a MacIntel (10.5.8), with CSound 5.11 > > I am trying to running the sndwarp.csd example included by Dr > Boulanger from the folder "a little something from Dr. B/ xtra_22/ > 04_timeStretch_4" > > When I run the file in QuteCSound it starts running Instr1 but when > it gets to Instr 2 it freezes and then quits QuteCsound. I tried > running it in the terminal and it quits the terminal as well. I get > the following error when I run it from the terminal: > > WARNING: SNDWARP at last sample frame > > I thought it may be a problem with running in realtime, so I ran it > in offline, and it quit as well. > > Is there something I may be doing wrong or setup wrong in QuteCsound. > > Attached is the file to check if others can run it correctly. > > > |
Date | 2010-04-05 09:48 |
From | gary hiebner |
Subject | [Csnd] Re: Re: QuteCsound and sndwarp problems |
Thanks, I will try and let you know if still has problems On Mon, Apr 5, 2010 at 10:38 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: Works here, with 5.12. Maybe you should upgrade. |
Date | 2010-04-05 10:32 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: QuteCsound and sndwarp problems |
>. I get the following error when I run it from the terminal: > > WARNING: SNDWARP at last sample frame > No you did not! That is not an error but a warming. It means you attemoted to stretch a sound file/table longer that it is (eg stretch a 1s sould by 2 times and play it for 3s). Fairly common and not a real problem. Not sure about the rest as I always use command line, and I also last used sndwarp on Wednesday last week ==John ff Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2010-04-05 10:33 |
From | gary hiebner |
Subject | [Csnd] Re: Re: QuteCsound and sndwarp problems |
I have updated to CSound 5.12, but am still getting errors when it gets to Instr 2. what does WARNING: SNDWARP at last sample frame mean?
This is what I get when I run the csd file in the terminal:
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.12 (float samples) Mar 2 2010 libsndfile-1.0.20 UnifiedCSD: sndwarp.csd STARTING FILE Creating options Creating orchestra Creating score
orchname: /var/folders/jo/jo1ytiP6GSiCodfFCiZzn++++TM/-Tmp-//csound-3y2H5Y.orc scorename: /var/folders/jo/jo1ytiP6GSiCodfFCiZzn++++TM/-Tmp-//csound-o0XWwc.sco rtaudio: PortAudio module enabled ... using callback interface
rtmidi: PortMIDI module enabled orch compiler: instr 1
instr 2 Elapsed time at end of orchestra compile: real: 0.051s, CPU: 0.007s
sorting score ... ... done Elapsed time at end of score sort: real: 0.108s, CPU: 0.027s Csound version 5.12 (float samples) Mar 2 2010
sample rate overrides: esr = 44100.0000, ekr = 441.0000, ksmps = 100 0dBFS level = 32768.0 orch now loaded audio buffered in 1024 sample-frame blocks ConnectPort: can't find mach server port name = jackdmp_entry.502_default err = unknown error code
Cannot connect to server Mach port jack server is not running or cannot be started PortAudio V19-devel (built Feb 12 2010 09:42:54) PortAudio: available output devices: 0: Built-in Output
PortAudio: selected output device 'Built-in Output' writing 2048-byte blks of shorts to dac SECTION 1: ftable 1: WARNING: sa_BT_Fast_Satellite.wav sr = 16000, orch sr = 44100.0
audio sr = 16000, monaural opening WAV infile sa_BT_Fast_Satellite.wav WARNING: GEN1: aiff file truncated by ftable size WARNING: audio samps 128000 exceeds ftsize 65536
non-deferred ftable 1 needs size 131072 ftable 2: new alloc for instr 1: diskin2: opened 'sa_BT_Fast_Satellite.wav': 16000 Hz, 1 channel(s), 128000 sample frames
B 0.000 .. 3.500 T 3.501 TT 3.501 M: 22587.5 new alloc for instr 2: WARNING: SNDWARP at last sample frame WARNING: SNDWARP at last sample frame
On Mon, Apr 5, 2010 at 10:48 AM, gary hiebner <garycsound@gmail.com> wrote: Thanks, I will try and let you know if still has problems |
Date | 2010-04-05 10:34 |
From | gary hiebner |
Subject | [Csnd] Re: Re: QuteCsound and sndwarp problems |
Ok, so it is a warning not error. Let me try a shorter audio file. Thanks.
On Mon, Apr 5, 2010 at 11:33 AM, gary hiebner <garycsound@gmail.com> wrote: I have updated to CSound 5.12, but am still getting errors when it gets to Instr 2. |
Date | 2010-04-05 10:47 |
From | gary hiebner |
Subject | [Csnd] Re: Re: QuteCsound and sndwarp problems |
I am still a bit confused (I am still a noobie with CSound), I have shortened the audio file, and have increased the length of time that the file plays for in the score, but the csd file still keeps freezing and quitting my application ( in the terminal, in QuteCSound, and in MacCSound). Is there something else I could be doing wrong that brings up that warning? On Mon, Apr 5, 2010 at 11:34 AM, gary hiebner <garycsound@gmail.com> wrote: Ok, so it is a warning not error. Let me try a shorter audio file. |
Date | 2010-04-05 10:53 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: Re: Re: QuteCsound and sndwarp problems |
I am having triouble d/loading your .csd file (my local problem) but you need to have sa LONGER sound and play it for LESS time to avoid the warning, which is totally harmless anyway. Will try to look at your output, but I do not have a moderm Mac machine. ==John ff > I am still a bit confused (I am still a noobie with CSound), I have > shortened the audio file, and have increased the length of time that the > file plays for in the score, but the csd file still keeps freezing and > quitting my application ( in the terminal, in QuteCSound, and in > MacCSound). > > Is there something else I could be doing wrong that brings up that > warning? > > > > On Mon, Apr 5, 2010 at 11:34 AM, gary hiebner |
Date | 2010-04-05 11:00 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: Re: Re: QuteCsound and sndwarp problems |
Try running with -m0 as well. I think that the problem is that the large number of warnings is swamping the output buffers. ==JOhn ff > I have updated to CSound 5.12, but am still getting errors when it gets to > Instr 2. > > what does WARNING: SNDWARP at last sample frame mean? > > *This is what I get when I run the csd file in the terminal:* > > 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.12 (float samples) Mar 2 2010 > libsndfile-1.0.20 > UnifiedCSD: sndwarp.csd > STARTING FILE > Creating options > Creating orchestra > Creating score > orchname: > /var/folders/jo/jo1ytiP6GSiCodfFCiZzn++++TM/-Tmp-//csound-3y2H5Y.orc > scorename: > /var/folders/jo/jo1ytiP6GSiCodfFCiZzn++++TM/-Tmp-//csound-o0XWwc.sco > rtaudio: PortAudio module enabled ... using callback interface > rtmidi: PortMIDI module enabled > orch compiler: > instr 1 > instr 2 > Elapsed time at end of orchestra compile: real: 0.051s, CPU: 0.007s > sorting score ... > ... done > Elapsed time at end of score sort: real: 0.108s, CPU: 0.027s > Csound version 5.12 (float samples) Mar 2 2010 > sample rate overrides: esr = 44100.0000, ekr = 441.0000, ksmps = 100 > 0dBFS level = 32768.0 > orch now loaded > audio buffered in 1024 sample-frame blocks > ConnectPort: can't find mach server port name = jackdmp_entry.502_default > err = unknown error code > Cannot connect to server Mach port > jack server is not running or cannot be started > PortAudio V19-devel (built Feb 12 2010 09:42:54) > PortAudio: available output devices: > 0: Built-in Output > PortAudio: selected output device 'Built-in Output' > writing 2048-byte blks of shorts to dac > SECTION 1: > ftable 1: > WARNING: sa_BT_Fast_Satellite.wav sr = 16000, orch sr = 44100.0 > audio sr = 16000, monaural > opening WAV infile sa_BT_Fast_Satellite.wav > WARNING: GEN1: aiff file truncated by ftable size > WARNING: audio samps 128000 exceeds ftsize 65536 > non-deferred ftable 1 needs size 131072 > ftable 2: > new alloc for instr 1: > diskin2: opened 'sa_BT_Fast_Satellite.wav': > 16000 Hz, 1 channel(s), 128000 sample frames > B 0.000 .. 3.500 T 3.501 TT 3.501 M: 22587.5 > new alloc for instr 2: > WARNING: SNDWARP at last sample frame > WARNING: SNDWARP at last sample frame > > > On Mon, Apr 5, 2010 at 10:48 AM, gary hiebner |
Date | 2010-04-05 11:01 |
From | Victor Lazzarini |
Subject | [Csnd] Re: Re: Re: QuteCsound and sndwarp problems |
Strange it just works for me here. No freeze. It takes a little while for the run to finish but it does (and I get the sound OK). Last login: Thu Apr 1 11:46:41 on ttys000 /var/folders/5P/5PSrqM3mGnCIxRlBhio0cE+++TM/-Tmp-/qutecsound_run_script-P10389.sh ; exit; coltrane:~ victor$ /var/folders/5P/5PSrqM3mGnCIxRlBhio0cE+++TM/-Tmp-/qutecsound_run_script-P10389.sh ; exit; /usr/local/bin/csound /Users/victor/Desktop/sndwarp.csd -m0 --format=mat4:short --env:CSNOSTOP=yes 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.12 (float samples) Mar 2 2010 libsndfile-1.0.20 UnifiedCSD: /Users/victor/Desktop/sndwarp.csd STARTING FILE Creating options Creating orchestra Creating score orchname: /var/folders/5P/5PSrqM3mGnCIxRlBhio0cE+++TM/-Tmp-//csound-ZkzIJY.orc scorename: /var/folders/5P/5PSrqM3mGnCIxRlBhio0cE+++TM/-Tmp-//csound-FOv2YJ.sco rtaudio: PortAudio module enabled ... using callback interface rtmidi: PortMIDI module enabled orch compiler: instr 1 instr 2 sorting score ... ... done Csound version 5.12 (float samples) Mar 2 2010 sample rate overrides: esr = 44100.0000, ekr = 441.0000, ksmps = 100 0dBFS level = 32768.0 orch now loaded audio buffered in 1024 sample-frame blocks PortAudio V19-devel (built Feb 12 2010 09:42:54) PortAudio: available output devices: 0: Built-in Output 1: Aggregate Device PortAudio: selected output device 'Built-in Output' writing 2048-byte blks of shorts to dac SECTION 1: non-deferred ftable 1 needs size 131072 Score finished in csoundPerform(). inactive allocs returned to freespace end of score. overall amps: 22587.5 overall samples out of range: 0 0 errors in performance 603 2048-byte soundblks of shorts written to dac Victor On 5 Apr 2010, at 10:47, gary hiebner wrote: I am still a bit confused (I am still a noobie with CSound), I have shortened the audio file, and have increased the length of time that the file plays for in the score, but the csd file still keeps freezing and quitting my application ( in the terminal, in QuteCSound, and in MacCSound). |
Date | 2010-04-05 11:02 |
From | Victor Lazzarini |
Subject | [Csnd] Re: Re: Re: QuteCsound and sndwarp problems |
I think this line might be the problem. Maybe use a 44100 soundfile. Victor On 5 Apr 2010, at 10:34, gary hiebner wrote: > WARNING: sa_BT_Fast_Satellite.wav sr = 16000, orch sr = 44100.0 Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2010-04-05 11:29 |
From | gary hiebner |
Subject | [Csnd] Re: Re: Re: Re: QuteCsound and sndwarp problems |
Strange, I've used another soundfile, and the same happens. It never finishes the performance, it always comes up with the warning. I have also made sure the new soundfile is 441000, but still get the warning.
On Mon, Apr 5, 2010 at 12:02 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: I think this line might be the problem. Maybe use a 44100 soundfile. |
Date | 2010-04-05 12:03 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: Re: Re: Re: Re: QuteCsound and sndwarp problems |
I have been reading the code, and I think there is an error in the internal logic as to when this message is given. I have a patched version here that certinly only does it once per note, but it has not been tessted completely. Thanks for drawing my attention to this ==John ff > Strange, I've used another soundfile, and the same happens. It never > finishes the performance, it always comes up with the warning. I have also > made sure the new soundfile is 441000, but still get the warning. > > On Mon, Apr 5, 2010 at 12:02 PM, Victor Lazzarini > |
Date | 2010-04-05 15:44 |
From | Victor Lazzarini |
Subject | [Csnd] Re: Re: Re: Re: Re: QuteCsound and sndwarp problems |
I think it might be your soundfiles. This appears to be some sort of corruption in the sf header. Does instr 1 (which uses diskin2) play the soundfile OK? Diskin2 would do sr conversion, so it should be OK. Sndwarp just reads the samples off the table, no conversion. Victor On 5 Apr 2010, at 11:29, gary hiebner wrote: Strange, I've used another soundfile, and the same happens. It never finishes the performance, it always comes up with the warning. I have also made sure the new soundfile is 441000, but still get the warning. |
Date | 2010-04-05 16:02 |
From | gary hiebner |
Subject | [Csnd] Re: QuteCsound and sndwarp problems |
Yes, Instr 1 plays fine. Its only when it plays Instr 2 that the application or terminal freezes. I have tried multiple soundfiles and same happens everytime, so I don't think it's the soundfiles. On 4/5/10, Victor Lazzarini |
Date | 2010-04-05 16:32 |
From | Victor Lazzarini |
Subject | [Csnd] Re: Re: Re: QuteCsound and sndwarp problems |
OK, I realised what it was; John's diagnostic is correct, the 'sndwarp warning mesages' were flooding the system, they were spurious. Try running the CSD with a -m0 option (in csOptions) Victor On 5 Apr 2010, at 10:33, gary hiebner wrote: I have updated to CSound 5.12, but am still getting errors when it gets to Instr 2. |
Date | 2010-04-05 16:50 |
From | gary hiebner |
Subject | [Csnd] Re: QuteCsound and sndwarp problems |
Yes, thanks the -m0 solved the problem. Much appreciated, can't wait to test out more sndwarp. Thanks guys. On 4/5/10, Victor Lazzarini |
Date | 2010-04-05 16:53 |
From | Victor Lazzarini |
Subject | [Csnd] Re: Re: QuteCsound and sndwarp problems |
Thanks for the bug report. John's fix will be in the next release (thanks, John). Victor On 5 Apr 2010, at 16:50, gary hiebner wrote: > Yes, thanks the -m0 solved the problem. > > Much appreciated, can't wait to test out more sndwarp. Thanks guys. > > On 4/5/10, Victor Lazzarini |
Date | 2011-01-20 05:16 |
From | Jim Aikin |
Subject | [Csnd] Re: QuteCsound and sndwarp problems |
I'm encountering this same problem with Csound 5.12, QuteCsound 0.6.0, MacOS 10.6.3. Just for kicks, I've been running a few of the music pieces included on the CD-ROM with The Csound Book, and Luca Pavan's "Impossible Planet" consistently crashes QuteCsound. It uses sndwarp. And the -m0 option doesn't help. In fact, when I put that in |