Breaking Changes: Monophonic Envelope Mode
I've just pushed a change to the GitHub repository which allows monophonic usage (with / or without retriggering) for envelopes. However this was a rather intrusive change which might lead to backward incompatibility if:
- an envelope is controlled via script AND
- you used magic numbers for the parameters (like
Attack). This is because the parameters
Retriggermust be stored before the other envelope parameters leading to a index change of the parameters. If you were using the enum values from the envelope object (eg
SimpleEnvelope.Attack, then everything is fine because they simply contain the new value (I highly recommend using these enum properties to avoid problems like this in the future).
But monophonic envelopes are fun :)
Is there a list of enum values for other modules?
You can get the enums either by looking in the ModuleBrowser or using the autocomplete popup (I prefer the latter one).
hmmm when I use
Console.print(SimpleEnvelope.Attack);it comes up with undefined.
Have you created a module called
SimpleEnvelopeusing the script variable declaration stuff?
The enums are constant properties of the object you created to access modules
Oh right I see, I thought they were global constants. Are there enums for sampler attributes too?