[Csnd] Mc Curdy example doesn't work

Dear community,
I wanted to try this example of the McMcurdy Collection:
http://iainmccurdy.org/CsoundRealtimeExamples/AdditiveSynthesis/StretchedHarmonicPartials.csd
Unfortunately it doesn’t work, I’ve got:

csound StretchedHarmonicPartials.csd
Reading options from $HOME/.csound6rc
UnifiedCSD: StretchedHarmonicPartials.csd

error: syntax error, unexpected INTEGER_TOKEN (token “255”)
from file StretchedHarmonicPartials.csd (1), line 18:

FLcolor 255 <<<
Unexpected untyped word FLcolor when expecting a variable
Parsing failed due to invalid input!
Stopping on parser failure
cannot compile orchestra
end of score. overall amps: 0.0
overall samples out of range: 0
1 errors in performance

What must be done to get that patch working?
Thanks,
Stefan

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

What operating system are you using? I don’t think the fltk opcodes ship on all systems now, and this example clearly users them…

Stefan,

Check your version has the FLTK opcodes by doing:

csound -z

and looking through the alphabetical list.

If they aren’t there, as Rory is guessing, the issue is that your build of csound wasn’t made to contain them. The solution in that case is to rebuild, or use a pre-built version that does contain them.

Hi there,
It’s true, I don’t have the fltk opcodes. How can I build them or where could I find a actual pre-built version containing these opcodes?

Hi Stefan,

That’s a question where the answer depends on your OS and its packaging system. It’s always recommended to use a package first, since building csound can be…difficult.

However, if you have no such luck for whatever reason, do follow the build documentation for csound in the manual.