I’m having some strange behaviour with a Pbindef when using
\midinote. The problem is that from time-to-time the
Pbindef doesn’t recognise the
\midinote argument as a midinote. However, if I change the name of the
Pbindef, as an example
Pbindef(\melody, \instrument, \aSynthDef) becomes
Pbindef(\m, \instrument, \aSynthDef), then everything works. However, if I go back to using the name
\melody the problem is still there!
SynthDef has a freq argument, which I’m using in
Formant.ar, so if I understand correctly that should work, or is there a problem when swapping
\midinote in a Pbindef?
I can post the SynthDef and Pbindef, but since they seem to work when first initialised then the strange behaviour doesn’t always appear straight away.
Hope that makes sense.
Thanks in advance.