Problem Reading GEN01 Files
Date | 2016-04-09 19:26 |
From | Mitch Kaufman |
Subject | Problem Reading GEN01 Files |
Hi, I am having trouble reading simple GEN01 files and using loscil to play them. See the following output from my console: SECTION 1: ftable 4: deferred alloc soundin can't open soundin.0 ftable 4: Failed to open file f 4 0.00 0.00 1.00 nan ... new alloc for instr 106: INIT ERROR in instr 106: Invalid ftable no. 4.000000 a1 loscil 10000 440 4 0 -1 0 0 -1 0 0 B 0.000 - note deleted. i106 had 1 init errors Score finished in csoundPerformKsmps(). This used to work in a previous build but now doesn't for some reason. Other GEN routines seem to work properly. The diskin function works properly with a named file. Any idea on how to debug this? Regards, Mitch |
Date | 2016-04-09 19:31 |
From | Victor Lazzarini |
Subject | Re: Problem Reading GEN01 Files |
As it says, it can't find soundin.0. Do you have a file called soundin.0? Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2016-04-09 19:45 |
From | mitchk |
Subject | Re: Problem Reading GEN01 Files |
Hi Victor,
I am trying to read a named file. This is the entire code that I'm trying to run. Basic stuff. <CsoundSynthesizer> <CsOptions> </CsOptions> <CsInstruments> sr = 44100 kr = 4410 ksmps = 10 nchnls = 1 instr 106 a1 loscil 10000, 440, 4 ; sample-based looping oscillator out a1 endin </CsInstruments> <CsScore> ; Function 4 uses the GEN01 subroutine to read in an AIF audio file f 4 0 0 1 "sing.aif" 0 4 0 ;inst start duration i 106 0 2.3 </CsScore> </CsoundSynthesizer> Date: Sat, 9 Apr 2016 11:32:11 -0700 From: [hidden email] To: [hidden email] Subject: Re: [Csnd] Problem Reading GEN01 Files As it says, it can't find soundin.0. Do you have a file called soundin.0? Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/Csnd-Problem-Reading-GEN01-Files-tp5748769p5748772.html
To start a new topic under Csound - General, email [hidden email] To unsubscribe from Csound, click here. NAML View this message in context: RE: [Csnd] Problem Reading GEN01 Files Sent from the Csound - General mailing list archive at Nabble.com. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2016-04-09 20:57 |
From | Victor Lazzarini |
Subject | Re: Problem Reading GEN01 Files |
It runs here. audio sr = 44100, monaural opening AIFF infile sing.aif defer length 2646464 new alloc for instr 106: with the latest code from develop (OSX). What version of Csound, which platform are you using? ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 9 Apr 2016, at 19:45, mitchk |
Date | 2016-04-09 21:16 |
From | mitchk |
Subject | Re: Problem Reading GEN01 Files |
Using Arch Linux Csound build 6.06.0-1 from the current Arch AUR repository.
Date: Sat, 9 Apr 2016 12:57:21 -0700 From: [hidden email] To: [hidden email] Subject: Re: [Csnd] Problem Reading GEN01 Files It runs here. audio sr = 44100, monaural opening AIFF infile sing.aif defer length 2646464 new alloc for instr 106: with the latest code from develop (OSX). What version of Csound, which platform are you using? ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 9 Apr 2016, at 19:45, mitchk <[hidden email]> wrote: > > Hi Victor, > > I am trying to read a named file. This is the entire code that I'm trying to run. Basic stuff. > > <CsoundSynthesizer> > <CsOptions> > </CsOptions> > <CsInstruments> > sr = 44100 > kr = 4410 > ksmps = 10 > nchnls = 1 > > instr 106 > a1 loscil 10000, 440, 4 ; sample-based looping oscillator > out a1 > endin > > </CsInstruments> > <CsScore> > ; Function 4 uses the GEN01 subroutine to read in an AIF audio file > > f 4 0 0 1 "sing.aif" 0 4 0 > > ;inst start duration > i 106 0 2.3 > > > > </CsScore> > </CsoundSynthesizer> > > > Date: Sat, 9 Apr 2016 11:32:11 -0700 > From: [hidden email] > To: [hidden email] > Subject: Re: [Csnd] Problem Reading GEN01 Files > > As it says, it can't find soundin.0. Do you have a file called soundin.0? > > Victor Lazzarini > Dean of Arts, Celtic Studies, and Philosophy > Maynooth University > Ireland > > On 9 Apr 2016, at 19:26, Mitch Kaufman <[hidden email]> wrote: > > Hi, > > I am having trouble reading simple GEN01 files and using loscil to play them. See the following output from my console: > > SECTION 1: > > ftable 4: > > deferred alloc > > soundin can't open soundin.0 > > ftable 4: Failed to open file > > f 4 0.00 0.00 1.00 nan ... > > new alloc for instr 106: > > INIT ERROR in instr 106: Invalid ftable no. 4.000000 > > a1 loscil 10000 440 4 0 -1 0 0 -1 0 0 > > B 0.000 - note deleted. i106 had 1 init errors > > Score finished in csoundPerformKsmps(). > > > > This used to work in a previous build but now doesn't for some reason. Other GEN routines seem to work properly. The diskin function works properly with a named file. Any idea on how to debug this? > > > > Regards, > > Mitch > > > Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here > Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here > > If you reply to this email, your message will be added to the discussion below: > http://csound.1045644.n5.nabble.com/Csnd-Problem-Reading-GEN01-Files-tp5748769p5748772.html > To start a new topic under Csound - General, email [hidden email] > To unsubscribe from Csound, click here. > NAML > > View this message in context: RE: [Csnd] Problem Reading GEN01 Files > Sent from the Csound - General mailing list archive at Nabble.com. > Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/Csnd-Problem-Reading-GEN01-Files-tp5748769p5748782.html
To start a new topic under Csound - General, email [hidden email] To unsubscribe from Csound, click here. NAML View this message in context: RE: [Csnd] Problem Reading GEN01 Files Sent from the Csound - General mailing list archive at Nabble.com. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2016-04-09 21:22 |
From | Victor Lazzarini |
Subject | Re: Problem Reading GEN01 Files |
Can you try building your own? If that was a bug with 6.06, it looks like it is fixed. These instructions might help: https://github.com/csound/csound/blob/develop/BUILD.md ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 9 Apr 2016, at 21:16, mitchk |
Date | 2016-04-10 02:46 |
From | mitchk |
Subject | Re: Problem Reading GEN01 Files |
Victor,
I build Csound 6.07 as per the instructions you provided (using the "General Linux without Root access" instructions. I seem to have the same problem running the same file. Any other ideas? [mitch@mitcharch chapter1]$ ~/bin/csound -o dac 106.csd virtual_keyboard real time MIDI plugin for Csound 0dBFS level = 32768.0 Csound version 6.07 (double samples) Apr 9 2016 libsndfile-1.0.26 WARNING: could not open library '/home/mitch/lib/csound/plugins-6.0/libpy.so' (/home/mitch/lib/csound/plugins-6.0/libpy.so: undefined symbol: PyFile_AsFile) UnifiedCSD: 106.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 ... ... done Elapsed time at end of score sort: real: 0.004s, CPU: 0.003s --Csound version 6.07 (double samples) Apr 9 2016 graphics suppressed, ascii substituted 0dBFS level = 32768.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 4: deferred alloc soundin cannot open soundin.0 ftable 4: Failed to open file f 4 0.00 0.00 1.00 nan ... new alloc for instr 106: INIT ERROR in instr 106: Invalid ftable no. 4.000000 a1 loscil 10000 440 4 0 -1 0 0 -1 0 0 B 0.000 - note deleted. i106 had 1 init errors Score finished in csoundPerform(). inactive allocs returned to freespace end of score. overall amps: 0.0 overall samples out of range: 0 1 errors in performance Elapsed time at end of performance: real: 0.017s, CPU: 0.008s 0 256 sample blks of 64-bit floats written to dac Regards, Mitch Date: Sat, 9 Apr 2016 13:22:22 -0700 From: [hidden email] To: [hidden email] Subject: Re: [Csnd] Problem Reading GEN01 Files Can you try building your own? If that was a bug with 6.06, it looks like it is fixed. These instructions might help: https://github.com/csound/csound/blob/develop/BUILD.md ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 9 Apr 2016, at 21:16, mitchk <[hidden email]> wrote: > > Using Arch Linux Csound build 6.06.0-1 from the current Arch AUR repository. > > Date: Sat, 9 Apr 2016 12:57:21 -0700 > From: [hidden email] > To: [hidden email] > Subject: Re: [Csnd] Problem Reading GEN01 Files > > It runs here. > > audio sr = 44100, monaural > opening AIFF infile sing.aif > defer length 2646464 > new alloc for instr 106: > > with the latest code from develop (OSX). What version of Csound, which platform are you using? > > ======================== > Dr Victor Lazzarini > Dean of Arts, Celtic Studies and Philosophy, > Maynooth University, > Maynooth, Co Kildare, Ireland > Tel: 00 353 7086936 > Fax: 00 353 1 7086952 > > > On 9 Apr 2016, at 19:45, mitchk <[hidden email]> wrote: > > > > Hi Victor, > > > > I am trying to read a named file. This is the entire code that I'm trying to run. Basic stuff. > > > > <CsoundSynthesizer> > > <CsOptions> > > </CsOptions> > > <CsInstruments> > > sr = 44100 > > kr = 4410 > > ksmps = 10 > > nchnls = 1 > > > > instr 106 > > a1 loscil 10000, 440, 4 ; sample-based looping oscillator > > out a1 > > endin > > > > </CsInstruments> > > <CsScore> > > ; Function 4 uses the GEN01 subroutine to read in an AIF audio file > > > > f 4 0 0 1 "sing.aif" 0 4 0 > > > > ;inst start duration > > i 106 0 2.3 > > > > > > > > </CsScore> > > </CsoundSynthesizer> > > > > > > Date: Sat, 9 Apr 2016 11:32:11 -0700 > > From: [hidden email] > > To: [hidden email] > > Subject: Re: [Csnd] Problem Reading GEN01 Files > > > > As it says, it can't find soundin.0. Do you have a file called soundin.0? > > > > Victor Lazzarini > > Dean of Arts, Celtic Studies, and Philosophy > > Maynooth University > > Ireland > > > > On 9 Apr 2016, at 19:26, Mitch Kaufman <[hidden email]> wrote: > > > > Hi, > > > > I am having trouble reading simple GEN01 files and using loscil to play them. See the following output from my console: > > > > SECTION 1: > > > > ftable 4: > > > > deferred alloc > > > > soundin can't open soundin.0 > > > > ftable 4: Failed to open file > > > > f 4 0.00 0.00 1.00 nan ... > > > > new alloc for instr 106: > > > > INIT ERROR in instr 106: Invalid ftable no. 4.000000 > > > > a1 loscil 10000 440 4 0 -1 0 0 -1 0 0 > > > > B 0.000 - note deleted. i106 had 1 init errors > > > > Score finished in csoundPerformKsmps(). > > > > > > > > This used to work in a previous build but now doesn't for some reason. Other GEN routines seem to work properly. The diskin function works properly with a named file. Any idea on how to debug this? > > > > > > > > Regards, > > > > Mitch > > > > > > Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here > > Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here > > > > If you reply to this email, your message will be added to the discussion below: > > http://csound.1045644.n5.nabble.com/Csnd-Problem-Reading-GEN01-Files-tp5748769p5748772.html > > To start a new topic under Csound - General, email [hidden email] > > To unsubscribe from Csound, click here. > > NAML > > > > View this message in context: RE: [Csnd] Problem Reading GEN01 Files > > Sent from the Csound - General mailing list archive at Nabble.com. > > Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here > Csound mailing list > [hidden email] > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here > > > If you reply to this email, your message will be added to the discussion below: > http://csound.1045644.n5.nabble.com/Csnd-Problem-Reading-GEN01-Files-tp5748769p5748782.html > To start a new topic under Csound - General, email [hidden email] > To unsubscribe from Csound, click here. > NAML > > View this message in context: RE: [Csnd] Problem Reading GEN01 Files > Sent from the Csound - General mailing list archive at Nabble.com. > Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/Csnd-Problem-Reading-GEN01-Files-tp5748769p5748788.html
To start a new topic under Csound - General, email [hidden email] To unsubscribe from Csound, click here. NAML View this message in context: RE: [Csnd] Problem Reading GEN01 Files Sent from the Csound - General mailing list archive at Nabble.com. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2016-04-10 10:11 |
From | Rory Walsh |
Subject | Re: Problem Reading GEN01 Files |
Two things that usually always cause this error: - Are you absolutely sure that 'sing.aif' is in your current directory. If not you will need to pass the path to the sound file.* - Are you sure it is "sing.aif" and not "sing.aiff" * I see this happen all the time with my students. They swear blind that the sound file is in the same directory as the .csd file. When I check I see that the file they have open, let's say test.csd, is indeed in the same directory as the sound file. Only then do I realise the test.csd they have open is NOT the one from that directory! On 10 April 2016 at 02:46, mitchk <mitch.kaufman@hotmail.com> wrote:
|
Date | 2016-04-10 11:05 |
From | Victor Lazzarini |
Subject | Re: Problem Reading GEN01 Files |
The lines below are suspicious. It looks like Csound is reading the filename as a number and getting NaN (not a number). Can you attach here (don’t copy in the body) your CSD file? I wonder about its contents. ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 10 Apr 2016, at 10:11, Rory Walsh |
Date | 2016-04-10 11:22 |
From | Victor Lazzarini |
Subject | Re: Problem Reading GEN01 Files |
It could also be a locale thing (although Csound should set its own locale). What’s the result of the command ‘locale’? ligeti:debug victor$ locale LANG="en_IE.UTF-8" LC_COLLATE="en_IE.UTF-8" LC_CTYPE="en_IE.UTF-8" LC_MESSAGES="en_IE.UTF-8" LC_MONETARY="en_IE.UTF-8" LC_NUMERIC="en_IE.UTF-8" LC_TIME="en_IE.UTF-8" LC_ALL= ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 10 Apr 2016, at 11:05, Victor Lazzarini |
Date | 2016-04-10 12:14 |
From | mitchk |
Subject | Re: Problem Reading GEN01 Files |
Victor,
I've checked locale and here are the results: [mitch@mitcharch ~]$ locale LANG=en_US.utf8 LC_CTYPE="en_US.utf8" LC_NUMERIC="en_US.utf8" LC_TIME="en_US.utf8" LC_COLLATE="en_US.utf8" LC_MONETARY="en_US.utf8" LC_MESSAGES="en_US.utf8" LC_PAPER="en_US.utf8" LC_NAME="en_US.utf8" LC_ADDRESS="en_US.utf8" LC_TELEPHONE="en_US.utf8" LC_MEASUREMENT="en_US.utf8" LC_IDENTIFICATION="en_US.utf8" LC_ALL= Also attached is the csd and aif file. Rory: I tried using the explicit path of the filename and it had the same result. I also tried running the soundin.csd file from the opcode help and I received a similiar result. Here is the output: [mitch@mitcharch Csound]$ ~/bin/csound -o dac soundin.csd virtual_keyboard real time MIDI plugin for Csound WARNING: STK opcodes not available: define environment variable RAWWAVE_PATH (points to rawwaves directory) to use STK opcodes. 0dBFS level = 32768.0 Csound version 6.07 (double samples) Apr 9 2016 libsndfile-1.0.26 WARNING: could not open library '/home/mitch/lib/csound/plugins-6.0/libpy.so' (/home/mitch/lib/csound/plugins-6.0/libpy.so: undefined symbol: PyFile_AsFile) UnifiedCSD: soundin.csd STARTING FILE Creating options Creating orchestra Creating score rtaudio: ALSA module enabled rtmidi: ALSA Raw MIDI module enabled WARNING: STK opcodes not available: define environment variable RAWWAVE_PATH (points to rawwaves directory) to use STK opcodes. Elapsed time at end of orchestra compile: real: 0.066s, CPU: 0.004s sorting score ... ... done Elapsed time at end of score sort: real: 0.066s, CPU: 0.004s --Csound version 6.07 (double samples) Apr 9 2016 graphics suppressed, ascii substituted 0dBFS level = 1.0 orch now loaded audio buffered in 256 sample-frame blocks ALSA input: total buffer size: 1024, period size: 256 reading 1024-byte blks of shorts from adc (RAW) ALSA output: total buffer size: 1024, period size: 256 writing 512 sample blks of 64-bit floats to dac SECTION 1: new alloc for instr 1: INIT ERROR in instr 1: diskinfo cannot open soundin.-2147483648 ichn filenchnls.i p4 1 instr 1: ichn = 0.000 INIT ERROR in instr 1: soundin: soundin.-2147483648: failed to open file aL aR soundin.i p4 0 0 0 0 B 0.000 - note deleted. i1 had 2 init errors B 0.000 .. 5.000 T 5.000 TT 5.000 M: 0.00000 0.00000 INIT ERROR in instr 1: diskinfo cannot open soundin.-2147483648 ichn filenchnls.i p4 1 instr 1: ichn = 0.000 INIT ERROR in instr 1: soundin: soundin.-2147483648: failed to open file aL aR soundin.i p4 0 0 0 0 B 5.000 - note deleted. i1 had 2 init errors Score finished in csoundPerform(). inactive allocs returned to freespace end of score. overall amps: 0.00000 0.00000 overall samples out of range: 0 0 2 errors in performance Elapsed time at end of performance: real: 5.448s, CPU: 0.121s 862 512 sample blks of 64-bit floats written to dac Sorry for the trouble here. These files used to work. I don't know what has changed that results in this problem. Thanks, Mitch Date: Sun, 10 Apr 2016 03:23:23 -0700 From: [hidden email] To: [hidden email] Subject: Re: [Csnd] Problem Reading GEN01 Files It could also be a locale thing (although Csound should set its own locale). What’s the result of the command ‘locale’? ligeti:debug victor$ locale LANG="en_IE.UTF-8" LC_COLLATE="en_IE.UTF-8" LC_CTYPE="en_IE.UTF-8" LC_MESSAGES="en_IE.UTF-8" LC_MONETARY="en_IE.UTF-8" LC_NUMERIC="en_IE.UTF-8" LC_TIME="en_IE.UTF-8" LC_ALL= ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 10 Apr 2016, at 11:05, Victor Lazzarini <[hidden email]> wrote: > > The lines below are suspicious. It looks like Csound is reading the filename as a number and getting NaN (not a number). Can you > attach here (don’t copy in the body) your CSD file? I wonder about its contents. > ======================== > Dr Victor Lazzarini > Dean of Arts, Celtic Studies and Philosophy, > Maynooth University, > Maynooth, Co Kildare, Ireland > Tel: 00 353 7086936 > Fax: 00 353 1 7086952 > >> On 10 Apr 2016, at 10:11, Rory Walsh <[hidden email]> wrote: >> >> soundin cannot open soundin.0 >> ftable 4: Failed to open file >> f 4 0.00 0.00 1.00 nan ... > > Csound mailing list > [hidden email] > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/Csnd-Problem-Reading-GEN01-Files-tp5748769p5748819.html
To start a new topic under Csound - General, email [hidden email] To unsubscribe from Csound, click here. NAML View this message in context: RE: [Csnd] Problem Reading GEN01 Files Sent from the Csound - General mailing list archive at Nabble.com. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2016-04-10 12:23 |
From | Victor Lazzarini |
Subject | Re: Problem Reading GEN01 Files |
yes, it runs here. Looks like something with your system, did you do anything to change it? It looks like the score reading is messed up. Try this: |
Date | 2016-04-10 12:53 |
From | Marco Stroppa <00000088a9b41854-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: Problem Reading GEN01 Files |
Attachments | _diskin.zip |
Hello! I did some tests today. I'm still using csound 6.04. I tried both the gen01 with a full path name (in quotes) and with an integer. Both cases work without problems on my computer (Macbook). In case you would like to see, I attach below my orc/sco files. Sorry if they look a little "vintage", but, normally, these files are generated by other programs as independent files, so I do not have to run them manually, or, if I do have, I use a simple terminal script (also included). Would it be possible that the problem appeared later? Good luck for your search...! Marco Victor Lazzarini <Victor.Lazzarini@NUIM.IE> schrieb am 13:23 Sonntag, 10.April 2016:
|
Date | 2016-04-10 13:53 |
From | mitchk |
Subject | Re: Problem Reading GEN01 Files |
Result is the same:
--Csound version 6.07 (double samples) Apr 9 2016 graphics suppressed, ascii substituted 0dBFS level = 32768.0 ftable 4: deferred alloc soundin cannot open soundin.0 ftable 4: Failed to open file f 4 0.00 0.00 1.00 nan ... INIT ERROR in instr 0: ftgen error i1 ftgen.iS 4 0 0 1 "sing.aif" 0 40 header init errors inactive allocs returned to freespace end of score. overall amps: 0.0 overall samples out of range: 0 2 errors in performance Elapsed time at end of performance: real: 0.004s, CPU: 0.004s This change in behavior may have coincided with me building the Dependencies List that is described in the "General Linux without Root access" build instructions. Even though I had several of those packages (e.g., fluid, python, java) previously installed through the Arch system, something might have gotten overwritten. Do you think I need to start from scratch to fix this?. Thanks, Mitch Date: Sun, 10 Apr 2016 04:24:11 -0700 From: [hidden email] To: [hidden email] Subject: Re: [Csnd] Problem Reading GEN01 Files yes, it runs here. Looks like something with your system, did you do anything to change it? It looks like the score reading is messed up. Try this: <CsoundSynthesizer> <CsOptions> </CsOptions> <CsInstruments> sr = 44100 kr = 4410 ksmps = 10 nchnls = 1 i1 ftgen 4, 0, 0, 1, “sing.aif", 0, 4, 0 instr 106 a1 loscil 10000, 440, 4 ; sample-based looping oscillator out a1 endin </CsInstruments> <CsScore> ;inst start duration i 106 0 2.3 </CsScore> </CsoundSynthesizer> ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 View this message in context: RE: [Csnd] Problem Reading GEN01 Files Sent from the Csound - General mailing list archive at Nabble.com. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2016-04-10 14:10 |
From | Victor Lazzarini |
Subject | Re: Problem Reading GEN01 Files |
Now that is interesting. Try this for me: S1 = "sing.aif" prints S1 i1 ftgen 4,0,0,1,S1,0,4,0 instead of the ftgen line Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2016-04-10 15:20 |
From | jpff |
Subject | Re: Problem Reading GEN01 Files |
JUst a silly idea -- in the " the ASCII character or one of the fancy Word versions? On Sun, 10 Apr 2016, Victor Lazzarini wrote: > The lines below are suspicious. It looks like Csound is reading the filename as a number and getting NaN (not a number). Can you > attach here (don’t copy in the body) your CSD file? I wonder about its contents. > ======================== > Dr Victor Lazzarini > Dean of Arts, Celtic Studies and Philosophy, > Maynooth University, > Maynooth, Co Kildare, Ireland > Tel: 00 353 7086936 > Fax: 00 353 1 7086952 > >> On 10 Apr 2016, at 10:11, Rory Walsh |
Date | 2016-04-10 15:47 |
From | Victor Lazzarini |
Subject | Re: Problem Reading GEN01 Files |
Hi Marco, it seems to work everywhere except in Mitch's system. So we're trying to figure out what's wrong there. best regards Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2016-04-10 17:48 |
From | jpff |
Subject | Re: Problem Reading GEN01 Files |
Could you try a simple experiment for me? Run the program with the command-line option -v added, and then mail me the output? Probably too detailed for the list ==John ff On Sun, 10 Apr 2016, mitchk wrote: > Result is the same: > > --Csound version 6.07 (double samples) Apr 9 2016 > graphics suppressed, ascii substituted > 0dBFS level = 32768.0 > ftable 4: > deferred alloc > soundin cannot open soundin.0 > ftable 4: Failed to open file > f 4 0.00 0.00 1.00 nan ... > INIT ERROR in instr 0: ftgen error > i1 ftgen.iS 4 0 0 1 "sing.aif" 0 40 > header init errors > inactive allocs returned to freespace > end of score. overall amps: 0.0 > overall samples out of range: 0 > 2 errors in performance > Elapsed time at end of performance: real: 0.004s, CPU: 0.004s > > This change in behavior may have coincided with me building the Dependencies > List that is described in the "General Linux without Root access" build > instructions. Even though I had several of those packages (e.g., fluid, > python, java) previously installed through the Arch system, something might > have gotten overwritten. Do you think I need to start from scratch to fix > this?. > > Thanks, > Mitch > > ______________________________________________________________________________ > Date: Sun, 10 Apr 2016 04:24:11 -0700 > From: [hidden email] > To: [hidden email] > Subject: Re: [Csnd] Problem Reading GEN01 Files > > yes, it runs here. Looks like something with your system, did you do anything > to change it? > It looks like the score reading is messed up. > > Try this: > > |
Date | 2016-05-05 10:59 |
From | Guillermo Senna |
Subject | Re: Problem Reading GEN01 Files |
Any news regarding this issue? I'm having the same problem with v6.07. On 10/04/16 13:48, jpff wrote: > Could you try a simple experiment for me? Run the program with the > command-line option -v added, and then mail me the output? Probably > too detailed for the list > ==John ff > > On Sun, 10 Apr 2016, mitchk wrote: > >> Result is the same: >> >> --Csound version 6.07 (double samples) Apr 9 2016 >> graphics suppressed, ascii substituted >> 0dBFS level = 32768.0 >> ftable 4: >> deferred alloc >> soundin cannot open soundin.0 >> ftable 4: Failed to open file >> f 4 0.00 0.00 1.00 nan ... >> INIT ERROR in instr 0: ftgen error >> i1 ftgen.iS 4 0 0 1 "sing.aif" 0 40 >> header init errors >> inactive allocs returned to freespace >> end of score. overall amps: 0.0 >> overall samples out of range: 0 >> 2 errors in performance >> Elapsed time at end of performance: real: 0.004s, CPU: 0.004s >> >> This change in behavior may have coincided with me building the >> Dependencies >> List that is described in the "General Linux without Root access" build >> instructions. Even though I had several of those packages (e.g., fluid, >> python, java) previously installed through the Arch system, something >> might >> have gotten overwritten. Do you think I need to start from scratch >> to fix >> this?. >> >> Thanks, >> Mitch >> >> ______________________________________________________________________________ >> >> Date: Sun, 10 Apr 2016 04:24:11 -0700 >> From: [hidden email] >> To: [hidden email] >> Subject: Re: [Csnd] Problem Reading GEN01 Files >> >> yes, it runs here. Looks like something with your system, did you do >> anything >> to change it? >> It looks like the score reading is messed up. >> >> Try this: >> >> |
Date | 2016-05-05 11:07 |
From | Victor Lazzarini |
Subject | Re: Problem Reading GEN01 Files |
This was fixed in git develop. What OS are you in? ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 5 May 2016, at 10:59, Guillermo Senna |
Date | 2016-05-05 11:13 |
From | Guillermo Senna |
Subject | Re: Problem Reading GEN01 Files |
Ubuntu Studio 16.04. I built Csound yesterday. I'll try again then. On 05/05/16 07:07, Victor Lazzarini wrote: > This was fixed in git develop. What OS are you in? > ======================== > Dr Victor Lazzarini > Dean of Arts, Celtic Studies and Philosophy, > Maynooth University, > Maynooth, Co Kildare, Ireland > Tel: 00 353 7086936 > Fax: 00 353 1 7086952 > >> On 5 May 2016, at 10:59, Guillermo Senna |
Date | 2016-05-05 11:19 |
From | Victor Lazzarini |
Subject | Re: Problem Reading GEN01 Files |
This was fixed a while ago. Maybe it’s a different problem. ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 5 May 2016, at 11:13, Guillermo Senna |
Date | 2016-05-05 11:40 |
From | Guillermo Senna |
Subject | Re: Problem Reading GEN01 Files |
Now it works. Probably it was picking the libraries from the wrong folder. Sorry. A few issues though. I'm seeing a few warnings: Csound version 6.07 (double samples) May 5 2016 libsndfile-1.0.25 csound->FileOpen2 failed:: No such file or directory csound->FileOpen2 failed:: No such file or directory WARNING: could not open library '/usr/local/lib/csound/plugins-6.0/libpy.so' (/usr/local/lib/csound/plugins-6.0/libpy.so: undefined symbol: PyFile_AsFile) Nevertheless, it is opening the files correctly. The real problem is loscil. Here is my .csd: |
Date | 2016-05-06 10:12 |
From | Guillermo Senna |
Subject | Re: Problem Reading GEN01 Files |
Could someone try the csd below with a 4-5 minutes wav file and see if loscil loops correctly? It might be a bug. Also, why can't you call that instrument with "i 1 0 -1"? Thanks. On 05/05/16 07:40, Guillermo Senna wrote: > Now it works. Probably it was picking the libraries from the wrong > folder. Sorry. > > A few issues though. I'm seeing a few warnings: > > Csound version 6.07 (double samples) May 5 2016 > libsndfile-1.0.25 > csound->FileOpen2 failed:: No such file or directory > csound->FileOpen2 failed:: No such file or directory > WARNING: could not open library > '/usr/local/lib/csound/plugins-6.0/libpy.so' > (/usr/local/lib/csound/plugins-6.0/libpy.so: undefined symbol: > PyFile_AsFile) > > Nevertheless, it is opening the files correctly. > > The real problem is loscil. Here is my .csd: > > |
Date | 2016-05-06 10:29 |
From | Victor Lazzarini |
Subject | Re: Problem Reading GEN01 Files |
Because Csound will close immediately, you need an f0 36000 to keep it open (if you have any score at all). The indefinite duration does not keep csound going. OTOH if you did not have a score, Csound would be open forever, and you could schedule your instrument from the orchestra. ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 6 May 2016, at 10:12, Guillermo Senna |
Date | 2016-05-06 10:39 |
From | Guillermo Senna |
Subject | Re: Problem Reading GEN01 Files |
Oh, I see. Thanks Victor. Although I'm wondering how can you call an instrument from the orchestra if you don't have a score to call that first "trigger" instrument. Anyway, I still think there is a problem with loscil. It is not looping correctly (at least in my computer). On 06/05/16 06:29, Victor Lazzarini wrote: > Because Csound will close immediately, you need an f0 36000 to keep it open (if you have any > score at all). The indefinite duration does not keep csound going. OTOH if you did not have a > score, Csound would be open forever, and you could schedule your instrument from the orchestra. > > ======================== > Dr Victor Lazzarini > Dean of Arts, Celtic Studies and Philosophy, > Maynooth University, > Maynooth, Co Kildare, Ireland > Tel: 00 353 7086936 > Fax: 00 353 1 7086952 > >> On 6 May 2016, at 10:12, Guillermo Senna |
Date | 2016-05-06 11:12 |
From | Rory Walsh |
Subject | Re: Problem Reading GEN01 Files |
Check out this article on scoreless Csound by Victor of all people ;) On 6 May 2016 at 10:39, Guillermo Senna <gsenna@gmail.com> wrote: Oh, I see. Thanks Victor. Although I'm wondering how can you call an |
Date | 2016-05-06 11:22 |
From | Victor Lazzarini |
Subject | Re: Problem Reading GEN01 Files |
I tried your CSD here (OSX, latest code) with “fox.wav” and it loops correctly. ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 6 May 2016, at 10:39, Guillermo Senna |
Date | 2016-05-06 11:29 |
From | Guillermo Senna |
Subject | Re: Problem Reading GEN01 Files |
That's great! It makes Csound behave more like a general programming language. Also +1 for the default table which I didn't know existed in Csound. Thanks Rory. On 06/05/16 07:12, Rory Walsh wrote: > Check out this article on scoreless Csound by Victor of all people ;) > > http://csoundjournal.com/issue20/scoreless.html > > On 6 May 2016 at 10:39, Guillermo Senna |
Date | 2016-05-06 11:33 |
From | Guillermo Senna |
Subject | Re: Problem Reading GEN01 Files |
fox.wav works here also, but I was trying with a 5 minutes long audio file. Is it possible to use loscil with an audio that long? I'd checked the size of the table and it was smaller than 2^24, so I don't think the size of the table was the problem. On 06/05/16 07:22, Victor Lazzarini wrote: > I tried your CSD here (OSX, latest code) with “fox.wav” and it loops correctly. > ======================== > Dr Victor Lazzarini > Dean of Arts, Celtic Studies and Philosophy, > Maynooth University, > Maynooth, Co Kildare, Ireland > Tel: 00 353 7086936 > Fax: 00 353 1 7086952 > >> On 6 May 2016, at 10:39, Guillermo Senna |
Date | 2016-05-06 13:37 |
From | Victor Lazzarini |
Subject | Re: Problem Reading GEN01 Files |
It could actually be the problem. Why don’t you try flooper2 instead? ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 6 May 2016, at 11:33, Guillermo Senna |
Date | 2016-05-07 11:07 |
From | Guillermo Senna |
Subject | Re: Problem Reading GEN01 Files |
Yes, I'm actually using soundin for what I'm doing. I just thought I'd report it to see if it was a bug or it was just my build. On 06/05/16 09:37, Victor Lazzarini wrote: > It could actually be the problem. > Why don’t you try flooper2 instead? > ======================== > Dr Victor Lazzarini > Dean of Arts, Celtic Studies and Philosophy, > Maynooth University, > Maynooth, Co Kildare, Ireland > Tel: 00 353 7086936 > Fax: 00 353 1 7086952 > >> On 6 May 2016, at 11:33, Guillermo Senna |