What beat within the clip that the note starts on.
How many beats the note lasts.
The MIDI pitch of the note, valid values range from 0 - 127. Can also take pitch names, see the pitch method for more information.
The note's velocity, valid values range from 0 - 127, or a function that maps beats to values.
Which channel to play the note on, valid values range from 0 - 15, or null to allow whatever is playing the clip to decide.
Provides way of identifying notes so they can be easily retrieved later.
Provides way of identifying notes so they can be easily retrieved later.
Which channel to play the note on, valid values range from 0 - 15, or null to allow whatever is playing the clip to decide.
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 MIDI pitch of the note, valid values range from 0 - 127.
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.
The note's velocity, valid values range from 0 - 127, or an ITween object to allow for values that change over time.
An example of using a tween for velocity to make a note swell in volume as it's played:
clipNote.velocity = Tween.linear(1, 127)
The createNote method is primarily intended for use by the ClipPlayer to generate a new Note object from the ClipNote.
This is the preferred channel to use if the ClipNote doesn't specify one.
How far into the note we should start from
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.
Static
loadGenerated using TypeDoc
ClipNote represents a note to be played within a clip, specifying the start and end time of the note within the clip, as well as all the information like pitch, velocity, channel, etc. needed to play the note.