I’m trying to build a custom opcode and so far I’ve been able to write and compile one but when I try to use it in csoundqt I get the following error message: error: syntax error, unexpected T_IDENT (token “newopc”) from file /Users/ghostchamb3r/CSD files/testys.csd (1), line 17:
asig newopc <<<
The csound code is:
-odac --opcode-lib="/Users/ghostchamb3r/CSD files/newopc.dylib"
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 64
nchnls = 2
0dbfs = 1
instr 1
icps cpsmidi
iamp ampmidi 1
asig newopc icps, iamp
outs asig*0.5, asig*0.5
endin
</CsInstruments>
<CsScore>
</CsScore>
</CsoundSynthesizer>
I’m wondering if perhaps the dylib file for it needs to be placed in a different directory? Any help would be mucho appreciated!