Re: [Cs-dev] Csound 5.08 localisation problem ?
Date | 2008-04-07 18:13 |
From | Dave Phillips |
Subject | Re: [Cs-dev] Csound 5.08 localisation problem ? |
Greetings, Victor wrote: >By the way, can you copy here your errors? I wonder if they >are the strtod() ones that we have discussed in the past weeks. >If so, you might fix them by setting the environment variable >LANG=C Tried that, still got no joy. :( However, I did discover two items of importance: 1) On my 32-bit box my OPCODEDIR variable was not set correctly, and 2) once that was corrected AlgoScore informed me that the opcodes were of an incompatible floating point type. I assume that means that a double-precision build will not work with AlgoScore. The full report from AlgoScore on the 32-bit machine: WARNING: not loading 'librtjack.so' (uses incompatible floating point type) WARNING: not loading 'libloscilx.so' (uses incompatible floating point type) WARNING: not loading 'libpvoc.so' (uses incompatible floating point type) WARNING: not loading 'libsystem_call.so' (uses incompatible floating point type) WARNING: not loading 'libshape.so' (uses incompatible floating point type) WARNING: not loading 'libpy.so' (uses incompatible floating point type) WARNING: not loading 'libftest.so' (uses incompatible floating point type) WARNING: not loading 'libhrtferX.so' (uses incompatible floating point type) WARNING: not loading 'libgrain4.so' (uses incompatible floating point type) WARNING: not loading 'libpvsbuffer.so' (uses incompatible floating point type) WARNING: not loading 'libudpsend.so' (uses incompatible floating point type) WARNING: not loading 'libjackTransport.so' (uses incompatible floating point type) WARNING: not loading 'libhrtfnew.so' (uses incompatible floating point type) WARNING: not loading 'libgabnew.so' (uses incompatible floating point type) WARNING: not loading 'libdssi4cs.so' (uses incompatible floating point type) WARNING: not loading 'libbarmodel.so' (uses incompatible floating point type) WARNING: not loading 'libmodal4.so' (uses incompatible floating point type) WARNING: not loading 'libimage.so' (uses incompatible floating point type) WARNING: not loading 'libharmon.so' (uses incompatible floating point type) WARNING: not loading 'libmutexops.so' (uses incompatible floating point type) WARNING: not loading 'libfluidOpcodes.so' (uses incompatible floating point type) WARNING: not loading 'libcompress.so' (uses incompatible floating point type) WARNING: not loading 'libcontrol.so' (uses incompatible floating point type) WARNING: not loading 'libpartikkel.so' (uses incompatible floating point type) WARNING: not loading 'libcs_pvs_ops.so' (uses incompatible floating point type) WARNING: not loading 'libstackops.so' (uses incompatible floating point type) WARNING: not loading 'libbabo.so' (uses incompatible floating point type) WARNING: not loading 'libcs_pan2.so' (uses incompatible floating point type) WARNING: not loading 'libeqfil.so' (uses incompatible floating point type) PortMIDI real time MIDI plugin for Csound WARNING: not loading 'libwidgets.so' (uses incompatible floating point type) WARNING: not loading 'libminmax.so' (uses incompatible floating point type) WARNING: not loading 'libcs_date.so' (uses incompatible floating point type) WARNING: not loading 'libphisem.so' (uses incompatible floating point type) WARNING: not loading 'libptrack.so' (uses incompatible floating point type) WARNING: not loading 'libudprecv.so' (uses incompatible floating point type) WARNING: not loading 'libphysmod.so' (uses incompatible floating point type) WARNING: not loading 'librtalsa.so' (uses incompatible floating point type) WARNING: not loading 'libvaops.so' (uses incompatible floating point type) WARNING: not loading 'libugakbari.so' (uses incompatible floating point type) WARNING: not loading 'libvbap.so' (uses incompatible floating point type) WARNING: not loading 'libstdutil.so' (uses incompatible floating point type) WARNING: not loading 'libstdopcod.so' (uses incompatible floating point type) WARNING: not loading 'libscansyn.so' (uses incompatible floating point type) WARNING: not loading 'libscoreline.so' (uses incompatible floating point type) WARNING: could not open library '/usr/local/lib/csound/plugins64//librtpa.so' (/usr/lib/libportaudio.so.2: undefined symbol: jack_port_lock) WARNING: not loading 'libpitch.so' (uses incompatible floating point type) 0dBFS level = 32768.0 Csound version 5.08 (float samples) Mar 20 2008 libsndfile-1.0.17 orchname: ./test.orc scorename: /tmp/filexJAzMv.sco rtmidi: PortMIDI module enabled orch compiler: 45 lines read error: no legal opcode, line 10: gisine ftgen 0, 0, 2048, 10, 5, 1 instr 1 error: input arg 'gisine' used before defined, line 13: a1 oscil p5*gkb, p4+gkc*100, gisine instr 3 error: illegal character -, line 22: a1 mirror a1, -0.3, 0.3 ^ error: illegal character ., line 22: a1 mirror a1, -0.3, 0.3 ^ error: illegal character ., line 22: a1 mirror a1, -0.3, 0.3 ^ error: no legal opcode, line 22: a1 mirror a1, -0.3, 0.3 instr 4 error: illegal character *, line 28: a1 pinkish k1*0.2 ^ error: illegal character ., line 28: a1 pinkish k1*0.2 ^ error: no legal opcode, line 28: a1 pinkish k1*0.2 error: no legal opcode, line 30: ktrig metro 50 error: input arg 'ktrig' used before defined, line 31: if ktrig == 1 then error: input arg 'a1' used before defined, line 36: outs a1, a1 error: input arg 'a1' used before defined, line 36: outs a1, a1 instr 5 13 syntax errors in orchestra. compilation invalid CSound: terminated with error On the 64-bit box I just get a nice message from Csound (also double precision) in my starting xterm : Csound tidy up: Segmentation fault Jonatan, can AlgoScore accommodate double-precision Csound ? Best, dp ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2008-04-07 18:31 |
From | Jonatan Liljedahl |
Subject | Re: [Cs-dev] Csound 5.08 localisation problem ? |
> However, I did discover two items of importance: 1) On my 32-bit box my OPCODEDIR variable was not set correctly, and 2) once that was corrected AlgoScore informed me that the opcodes were of an incompatible floating point type. I assume that means that a double-precision build will not work with AlgoScore. > > The full report from AlgoScore on the 32-bit machine: > > WARNING: not loading 'librtjack.so' (uses incompatible floating point type) > WARNING: not loading 'libloscilx.so' (uses incompatible floating point type) > WARNING: not loading 'libpvoc.so' (uses incompatible floating point type) ... > On the 64-bit box I just get a nice message from Csound (also double precision) in my starting xterm : > > Csound tidy up: Segmentation fault > > Jonatan, can AlgoScore accommodate double-precision Csound ? All AlgoScore does is to tell csound to render to a raw audiofile, it does not use any of csounds buffers directly, so AlgoScore shouldn't care if csound uses double-precision internally or not. The warnings about incompatible floating point type probably means that the precision on your plugins are not the same as the precision on your csound. Do you have any ~/.csoundrc with strange settings? Is your 'csound' binary the real binary or some script that sets up any variables? Does anyone else has any clue about what might be going on here? :) The errors about '.' and '-' being illegal characters looks like the localisation problem we discussed in the past, but AlgoScore does setlocale(LC_ALL, "C"); before each call to csoundCompile() so I don't see how this could happen. -- /Jonatan [ http://kymatica.com ] ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2008-04-07 19:47 |
From | Dave Phillips |
Subject | Re: [Cs-dev] [AlgoScore] Csound 5.08 localisation problem ? SOLVED |
Jonatan Liljedahl wrote: > The warnings about incompatible floating point type probably means that > the precision on your plugins are not the same as the precision on your > csound. And that was the problem. I had two versions of libcsound, AlgoScore was picking up the wrong one. Now I receive this error when I run the Csound test file: Csound version 5.08 (double samples) Mar 22 2008 0dBFS level = 1.0 ftable 101: orch now loaded audio buffered in 256 sample-frame blocks not writing to sound disk SECTION 1: registered jack port algoscore:csnd9_2 inactive allocs returned to freespace end of score. overall amps: 0.00000 0.00000 overall samples out of range: 0 0 0 errors in performance Elapsed time at end of performance: real: 0.029s, CPU: 0.020s no sound written to disk PortMIDI real time MIDI plugin for Csound WARNING: could not open library '/usr/local/lib/csound/plugins64//librtpa.so' (/usr/lib/libportaudio.so.2: undefined symbol: jack_port_lock) 0dBFS level = 32768.0 Csound version 5.08 (double samples) Mar 22 2008 libsndfile-1.0.17 orchname: ./test.orc scorename: /tmp/file0SWvqf.sco rtmidi: PortMIDI module enabled orch compiler: 45 lines read instr 1 instr 3 instr 4 instr 5 sorting score ... ... done Csound version 5.08 (double samples) Mar 22 2008 0dBFS level = 1.0 ftable 101: orch now loaded audio buffered in 256 sample-frame blocks writing 2048-byte blks of floats to /tmp/as19149csound9.raw (raw) SECTION 1: added region: '/tmp/as19149csound9.raw' 2 chnls 44100 Hz insert_score_event(): invalid instrument number or name insert_score_event(): invalid instrument number or name insert_score_event(): invalid instrument number or name insert_score_event(): invalid instrument number or name insert_score_event(): invalid instrument number or name inactive allocs returned to freespace end of score. overall amps: 0.00000 0.00000 0 errors in performance 1165 2048-byte soundblks of floats written to /tmp/as19149csound9.raw (raw) csound_bus[9]: update thread done exporting to file /home/dlphilp/src/AlgoScore-080406/export.wav signal_max: 0 Any suggestions ? Best, dp ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2008-04-07 20:14 |
From | Jonatan Liljedahl |
Subject | Re: [Cs-dev] [AlgoScore] Csound 5.08 localisation problem ? SOLVED |
Dave Phillips wrote: > Jonatan Liljedahl wrote: >> The warnings about incompatible floating point type probably means that >> the precision on your plugins are not the same as the precision on your >> csound. > And that was the problem. I had two versions of libcsound, AlgoScore was > picking up the wrong one. It searches for libcsound.so (or .a) in /usr/local/lib, /usr/lib, and the ones in CMAKE_LIBRARY_PATH and LIB variables. Good to hear that we are one step closer to the solution. :) > Now I receive this error when I run the Csound > test file: > > Csound version 5.08 (double samples) Mar 22 2008 > 0dBFS level = 1.0 > ftable 101: > orch now loaded > audio buffered in 256 sample-frame blocks > not writing to sound disk > SECTION 1: > registered jack port algoscore:csnd9_2 > inactive allocs returned to freespace > end of score. overall amps: 0.00000 0.00000 > overall samples out of range: 0 0 > 0 errors in performance > Elapsed time at end of performance: real: 0.029s, CPU: 0.020s > no sound written to disk > PortMIDI real time MIDI plugin for Csound > WARNING: could not open library > '/usr/local/lib/csound/plugins64//librtpa.so' > (/usr/lib/libportaudio.so.2: undefined symbol: jack_port_lock) Firstly, on my csound 5.08 I do not get this "PortMIDI real time MIDI plugin for Csound" message. Maybe this plugin is always loaded and my csound only does not print the message? What version of Csound do you use now? You could try disabling it by changing line 510 in AlgoScore/classes/cs.nas to add "-+rtmidi=null" like this: else var a = ["-+rtmidi=null","-m","6","-f","-h","-o",me.outfile,me.orc_file_found]; (You don't need to rebuild algoscore after this, it's scriptcode) The missing jack symbol probably means your csound was compiled with a different version of JACK than the one installed. ... > orch now loaded > audio buffered in 256 sample-frame blocks > writing 2048-byte blks of floats to /tmp/as19149csound9.raw (raw) > SECTION 1: > added region: '/tmp/as19149csound9.raw' 2 chnls 44100 Hz > insert_score_event(): invalid instrument number or name > insert_score_event(): invalid instrument number or name ... > Any suggestions ? Hopefully this is because the plugin error above. The "invalid instrument" message is printed by csound, but (unless you've changed the csound test file) I know that the events do use the same instrument numbers as defined in test.orc. If you're using a developer version of csound, try downgrading to the official 5.08 release. -- /Jonatan [ http://kymatica.com ] ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2008-04-08 09:44 |
From | jpff |
Subject | Re: [Cs-dev] [AlgoScore] Csound 5.08 localisation problem ? SOLVED |
Not just a different version of jack -- an older version of portaudio. I went through this with teh PA people a month or so back ==John ffitch ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2008-04-08 11:38 |
From | Dave Phillips |
Subject | Re: [Cs-dev] Csound 5.08 localisation problem ? |
Jonatan Liljedahl wrote: > All AlgoScore does is to tell csound to render to a raw audiofile, it > does not use any of csounds buffers directly, so AlgoScore shouldn't > care if csound uses double-precision internally or not. > > The warnings about incompatible floating point type probably means that > the precision on your plugins are not the same as the precision on your > csound. > I recompiled and reinstalled Cs 5.08 on my 32-bit box yesterday. As far as I can tell, the plugins behave perfectly everywhere (original CSDs, AVSynthesis, other orc/sco combinations) except with AlgoScore, but I'll do more testing to ascertain if I'm missing something else here (which is quite likely, I'm afraid). > Do you have any ~/.csoundrc with strange settings? Is your 'csound' > binary the real binary or some script that sets up any variables? > It's an ELF file, pure geekish when opened with vi. :) I'll recompile Csound without double-precision to see what happens then with AlgoScore. Best, dp ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2008-04-13 20:02 |
From | Dave Phillips |
Subject | [Cs-dev] AlgoScore/Csound problem resolved |
Greetings, I decided to abandon the double-precision build on my 32-bit system. I rebuilt and reinstalled Csound 5.08, and the AlgoScore Csound example worked perfectly. Best, dp ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |