Not sure how the values are sent between pd and csound for the current envelope not to work? Theres a toggle in the pd patch with sends a value to the sustain of the madsr in csound. Im expecting there to be silence until the toggle is pressed, the the synth operates as if its not there? pd:csound.zip
PD to csound (envelope)
@Fauveboy Knowing nothing about cSound...... so just a guess.
It looks like you have specified a value of 0.5 for kenvon, after telling it to receive a value.....
kenvon invalue "env"
kenv madsr 0.5 0 kenvon 0.5
or you should be sending "env" and not "kenvon"
or both are errors?
I think its send values to the right place now but the csound compiler isnt happy with madsr, "unable to find matching arg types..Possibly something to do with the starting value on env?