Returns the noteEnvelope, which is used to calculate the color and size of active notes.
The release property of the envelope is unused, as this drawer does not keep track of notes once they've been deactivated.
Default (no argument) instance of ADSREnvelope.
Returns the amount that the keys increase in size when hit.
Sets the stroke cap.
Called by the rendering engine on every frame.
When overriding this method, ensure that the p5 instance is configured properly. For example, rectangles may be drawn incorrectly if a previous CanvasDrawer had modified p5.rectMode(). CanvasDrawer classes are not obligated/expected to use the default p5 attributes.
See the p5 documentation on attributes for more information: https://p5js.org/reference/#Attributes
Invoked by the rendering engine to generate a frame.
ArcWheel generates a twelve-segment circle. Each segment is an arc, with each arc representing a note on the chromatic scale.