RESCALE option on MIDI function generator example?

Hi,

I’m new to Cabbage and somewhat new to CSound. I’ve saved the MIDI function generator example that comes with Cabbage to a VST. The script comments mention “RESCALE rescales the function to lie between the given limits” however I do not see RESCALE in the script. What am I missing? I would like to rescale the output from (0 to 1) to (0 to 127) for use as a MIDI controller.

Thank you,
d. vyd

I think that the feature described in the comments was subsequently removed. I’m not sure why. Anyway here is a new version with rescaling reintroduced.FunctionGenerator.csd (14.3 KB)