An editable Envelope view.
The breakpoints are color coded as follows:
| blue | normal |
| red | sustain node |
| green | loop node |
| parent |
The parent view. |
| bounds | |
| env |
The envelope. An instance of Env. |
| pointsPerSegment |
The resolution in points per segment. Default value is 10. |
| parent | |
| bounds |
The following methods are usually not used directly or are called by a primitive. Programmers can still call or override these as needed.
If the Env object is modified directly, this needs to be called to update the GUI.
method: maxLevel Changes maximum level shown in editor.
| level |
An instance of Float. |
Changes minimum time (sec) shown in editor. Negative times are okay because Env uses inter-node durations.
| sec |
An instance of Float. Seconds. |
The following methods are usually not used directly or are called by a primitive. Programmers can still call or override these as needed.
| x | |
| y | |
| modifiers | |
| buttonNumber | |
| clickCount |
| e |
| level |
| time | |
| level |
| argEnv | |
| argPPS | |
| setMinMax |
| segNum |
Make a basic editor:
Controlling a Synth