[Cs-dev] syntax error with csound 5.08
Date | 2008-03-11 12:11 |
From | Jonatan Liljedahl |
Subject | [Cs-dev] syntax error with csound 5.08 |
I just got a report from an AlgoScore user that csound reports syntax errors on a valid orchestra. He compiles csound from CVS. The same orch works fine on csound 5.07.0 for me. It seems it doesn't like floating point values: orch compiler: 45 lines read instr 1 error: numeric syntax '0.3', line 14: a1 linen a1, p3*0.3, p3, p3*0.3 error: numeric syntax '0.3', line 14: a1 linen a1, p3*0.3, p3, p3*0.3 error: numeric syntax '0.2', line 16: outs a1*0.2, a1*0.2 error: numeric syntax '0.2', line 16: outs a1*0.2, a1*0.2 instr 3 error: numeric syntax '0.3', line 22: a1 mirror a1, -0.3, 0.3 error: numeric syntax '-0.3', line 22: a1 mirror a1, -0.3, 0.3 instr 4 -- /Jonatan [ http://kymatica.com ] ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2008-03-11 12:29 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] syntax error with csound 5.08 |
This a locale setting problem, happens with GTK for instance. Try inserting a setlocale(LC_ALL, "C"); before the call to Compile() Victor At 12:11 11/03/2008, you wrote: >I just got a report from an AlgoScore user that csound reports syntax >errors on a valid orchestra. He compiles csound from CVS. The same orch >works fine on csound 5.07.0 for me. It seems it doesn't like floating >point values: > >orch compiler: >45 lines read > instr 1 >error: numeric syntax '0.3', line 14: > a1 linen a1, p3*0.3, p3, p3*0.3 >error: numeric syntax '0.3', line 14: > a1 linen a1, p3*0.3, p3, p3*0.3 >error: numeric syntax '0.2', line 16: > outs a1*0.2, a1*0.2 >error: numeric syntax '0.2', line 16: > outs a1*0.2, a1*0.2 > instr 3 >error: numeric syntax '0.3', line 22: > a1 mirror a1, -0.3, 0.3 >error: numeric syntax '-0.3', line 22: > a1 mirror a1, -0.3, 0.3 > instr 4 > >-- >/Jonatan [ http://kymatica.com ] > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Microsoft >Defy all challenges. Microsoft(R) Visual Studio 2008. >http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2008-03-11 12:42 |
From | Jonatan Liljedahl |
Subject | Re: [Cs-dev] syntax error with csound 5.08 |
Ok, I see.. Need I do it before each Compile() or could I just put it right after initializing GTK? Should the Csound syntax really change depending on what locale setting the user has? Sounds a bit strange imho. Victor Lazzarini wrote: > This a locale setting problem, happens with GTK for instance. > Try inserting a > > setlocale(LC_ALL, "C"); > > before the call to Compile() > > Victor > > At 12:11 11/03/2008, you wrote: >> I just got a report from an AlgoScore user that csound reports syntax >> errors on a valid orchestra. He compiles csound from CVS. The same orch >> works fine on csound 5.07.0 for me. It seems it doesn't like floating >> point values: >> >> orch compiler: >> 45 lines read >> instr 1 >> error: numeric syntax '0.3', line 14: >> a1 linen a1, p3*0.3, p3, p3*0.3 >> error: numeric syntax '0.3', line 14: >> a1 linen a1, p3*0.3, p3, p3*0.3 >> error: numeric syntax '0.2', line 16: >> outs a1*0.2, a1*0.2 >> error: numeric syntax '0.2', line 16: >> outs a1*0.2, a1*0.2 >> instr 3 >> error: numeric syntax '0.3', line 22: >> a1 mirror a1, -0.3, 0.3 >> error: numeric syntax '-0.3', line 22: >> a1 mirror a1, -0.3, 0.3 >> instr 4 >> >> -- >> /Jonatan [ http://kymatica.com ] -- /Jonatan [ http://kymatica.com ] ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2008-03-12 02:30 |
From | Felipe Sateler |
Subject | Re: [Cs-dev] syntax error with csound 5.08 |
Attachments | None None None |