The collection of notes that make up the arpeggio shape.
The difference between the start
and end
values.
Attempts to set this to a negative value will result in an error being thrown.
The value which the range ends at.
Attempts to set this to a value less than start
will result in an error being thrown.
The value which the range starts at.
Attempts to set this to a value greater than end
will result in an error being thrown.
Returns the name of this type. This can be used rather than instanceof which is sometimes unreliable.
Adds a note to the arpeggio. The start parameter can take an array of values, allowing for multiple notes to be added at once for the same pitch.
Returns the Arpeggio object which the note(s) is being added to.
What beat within the arpeggio that the note starts on. Can take an array of multiple note starts
How many beats the note lasts
A function which takes in a chord object as a parameter, and should return a MIDI pitch value (valid values range from 0 - 127). The most common way to use this is something like c => c.getPitch(0)
The note's velocity, valid values range from 0 - 127
Which channel to play the note on, valid values range from 0 - 15, or null to allow whatever is playing the arpeggio to decide.
Mainly intended for use by the Arpeggiator. Returns the collection of ArpeggioNote objects which end within the given beat range.
The beat to start searching from.
The beat to end the search at.
Mainly intended for use by the Arpeggiator. Returns the collection of ArpeggioNote objects which start within the given beat range.
The beat to start searching from.
The beat to end the search at.
Accepts a value and returns what percentage of the way into the range that the value is.
The returned value can be negative, or greater than 100%, if the passed in value is less than the range start, or greater than the range end.
The value to compare against the range.
Generated using TypeDoc
The Shimi Arpeggio object can contain a collection of ArpeggioNote objects.
Once an Arpeggio has been defined, it can be passed into an Arpeggiator object to be played.
Example arpeggio definition: