boolean expression error?
Date | 2016-05-20 17:30 |
From | "Joe ." |
Subject | boolean expression error? |
This is the stuff I wrote, which reads fine. An imitation of the beginning of Milton Babbitt's "images" if anyone is interested. I wanted to try it with poscil, to see if it would work, so I changed iAmpConverter and iCPSconverter to aAmpConverter and aCPSconverter. after that the console reads: error: error: boolean expression '>' with arg types ac not found, line 2 from file C:/Users/Chen/AppData/Local/Temp/csound-tmpjkWo5628.csd (1) Parsing failed to syntax errors Stopping on parser failure cannot compile orchestra
This seems to be about <CsOptions>. again, its completely fine when the values are a-rate. I'm not sure how that change would influence the reading of tags. Help is appreciated. Thanks. <CsoundSynthesizer> <CsOptions> </CsOptions> <CsInstruments> sr = 192000 ksmps = 10 nchnls = 2 0dbfs = 1
#define AmplitudeCPSconverters # iAmpConverter = ampdb (p4) if iAmpConverter > 1 then prints "\ ============================================%n\ =============== OUT OF RANGE ===============%n\ ============================================%n" print iAmpConverter endif if p5 < 20 then iCPSconverter cps2pch p5, 12 else iCPSconverter = p5 endif #
instr 1 $AmplitudeCPSconverters giFt ftgen 0, 0, 8192, 10, 1, 0.3 aEnvelope linseg \ 0, p6, 0.7*iAmpConverter, p3*p7, iAmpConverter*p8, p3-p6-(p3*p7)-(p9*p3), iAmpConverter*p8, p9*p3, 0 aVibrato poscil iCPSconverter*0.0025, 5, giFt, -1 aSignal poscil iAmpConverter*aEnvelope, iCPSconverter+aVibrato, giFt, -1 aDistune poscil iAmpConverter*aEnvelope, iCPSconverter*0.995, giFt, -1 aOut = aSignal + aDistune outs aOut, aOut endin </CsInstruments> <CsScore> t 0 80 ;i p2 p3 p4 p5 p6 p7 p8 p9 ;i initTime Dur Ampdb Freq Atk Dec Sust FinDec i1 0 4 -6 6.05 0.45 0.4 0.6 0.01 i1 0 1.75 . 8 . 0.4 0.1 0.25 i1 0 7.125 . 8.08 . 0.4 0.6 0.1 i1 1.75 1.3333 . 8.07 0.1 0.4 0.9 0.01 i1 7.125 0.125 . 8.08 0.01 0.4 0.6 0.01 i1 3.083 2.75 . 8.1 0.3 0.5 0.9 0.3 i1 6.5 4.5 -12 11.06 0.01 0.4 0.6 0.3 i1 7.25 3.75 . 10.11 0.01 0.4 0.6 0.3 i1 8.91666 2.08333 -6 7.03 0.005 0.4 0.85 0.3 </CsScore> </CsoundSynthesizer> /* Joe */ |
Date | 2016-05-20 17:36 |
From | jpff |
Subject | Re: boolean expression error? |
Please run with -v option and report. i cannot see the problem but the double newline persists. Could you attach the input suitaly encoded? ==John ff On Sat, 21 May 2016, Joe . wrote: > > This is the stuff I wrote, which reads fine. An imitation of the beginning of > Milton Babbitt's "images" if anyone is interested. I wanted to try it with > poscil, to see if it would work, so I changed iAmpConverter and iCPSconverter > to aAmpConverter and aCPSconverter. after that the console reads: > > > error: error: boolean expression '>' with arg types ac not found, line 2 > > from file C:/Users/Chen/AppData/Local/Temp/csound-tmpjkWo5628.csd (1) > > Parsing failed to syntax errors > > Stopping on parser failure > > cannot compile orchestra > > > This seems to be about |
Date | 2016-05-20 17:51 |
From | jpff |
Subject | Re: boolean expression error? |
PS Works for me without error if I suppress the double newlines. Odd to create the same table for every note though. 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-05-20 17:54 |
From | jpff |
Subject | Re: boolean expression error? |
Looks to me more like line 2 of yoiur macro and a missig i in what you actuallly ran 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-05-20 18:01 |
From | "Joe ." |
Subject | Re: boolean expression error? |
This is the code that runs the error, where I change everything to a-rate, which I understand will not work at all. I just don't know why it would produce that specific error. I'm not sure what you mean by line 2 of my macro missing an i. Do you mean the line "if iAmpConverter > 1 then"? I'm not sure what you mean by double newlines either. For me there are only empty lines between giFt and aEnvelope/ aDistune and Outs. Thanks for your patience with me. I'm swimming a bit. <CsoundSynthesizer> <CsInstruments> <CsOptions> -v </CsOptions> sr = 192000 ksmps = 10 nchnls = 2 0dbfs = 1
#define AmplitudeCPSconverters # aAmpConverter = ampdb (p4) if aAmpConverter > 1 then prints "\ ============================================%n\ =============== OUT OF RANGE ===============%n\ ============================================%n" print aAmpConverter endif if p5 < 20 then aCPSconverter cps2pch p5, 12 else aCPSconverter = p5 endif #
instr 1 $AmplitudeCPSconverters giFt ftgen 0, 0, 8192, 10, 1, 0.3 aEnvelope linseg \ 0, p6, 0.7*aAmpConverter, p3*p7, aAmpConverter*p8, p3-p6-(p3*p7)-(p9*p3), aAmpConverter*p8, p9*p3, 0 aVibrato poscil aCPSconverter*0.0025, 5, giFt, -1 aSignal poscil aAmpConverter*aEnvelope, aCPSconverter+aVibrato, giFt, -1 aDistune poscil aAmpConverter*aEnvelope, aCPSconverter*0.995, giFt, -1 aOut = aSignal + aDistune outs aOut, aOut endin </CsInstruments> <CsScore> t 0 80 ;i p2 p3 p4 p5 p6 p7 p8 p9 ;i initTime Dur Ampdb Freq Atk Dec Sust FinDec i1 0 4 -6 6.05 0.45 0.4 0.6 0.01 i1 0 1.75 . 8 . 0.4 0.1 0.25 i1 0 7.125 . 8.08 . 0.4 0.6 0.1 i1 1.75 1.3333 . 8.07 0.1 0.4 0.9 0.01 i1 7.125 0.125 . 8.08 0.01 0.4 0.6 0.01 i1 3.083 2.75 . 8.1 0.3 0.5 0.9 0.3 i1 6.5 4.5 -12 11.06 0.01 0.4 0.6 0.3 i1 7.25 3.75 . 10.11 0.01 0.4 0.6 0.3 i1 8.91666 2.08333 -6 7.03 0.005 0.4 0.85 0.3 </CsScore> </CsoundSynthesizer> /* Joe */ On Sat, May 21, 2016 at 12:51 AM, jpff <jpff@codemist.co.uk> wrote: PS Works for me without error if I suppress the double newlines. Odd to create the same table for every note though. |
Date | 2016-05-20 18:09 |
From | Victor Lazzarini |
Subject | Re: boolean expression error? |
You can’t use a-vars in boolean expressions, only i or k. They are vectors, not scalars ======================== 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 20 May 2016, at 18:01, Joe . |
Date | 2016-05-20 18:13 |
From | "Joe ." |
Subject | Re: boolean expression error? |
got it. Thanks. It directs the error at whichever line <CsOptions> is on though, which is why I asked about the error. Also, to Mr. Ffitch, yeah it was strange to create the same table every note. Already changed it. Joe /* Joe */ On Sat, May 21, 2016 at 1:09 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: You can’t use a-vars in boolean expressions, only i or k. They are vectors, not scalars |
Date | 2016-05-20 18:19 |
From | "Joe ." |
Subject | Re: boolean expression error? |
Never mind. I know what the problem is now. Thanks to all. /* Joe */ On Sat, May 21, 2016 at 1:13 AM, Joe . <not007ful@gmail.com> wrote:
|