pattern <- Midi.Pattern()
// [add some notes]
pattern[0] // the first Midi.NoteEvent
foreach(event in pattern) {
// event.note, event.measure
}
Pattern() |
add(Midi.Note note, float measure) | add a Midi.Note to this pattern. |
add(Midi.Pattern pattern, float measure) | add the notes from another Midi.Pattern to this pattern. |
filter(function filter) | filter the notes in this pattern to create a new Midi.Pattern |
len() | the number of MIDI notes in this pattern |
sequence() | create a sequence from the note on/off events in this pattern |
slice(float start, float end) | |
transpose(integer amount) | returns a new pattern object containing the notes from this pattern transposed by the given amount. |
Add a Midi.Note to this pattern.
Add the notes from another Midi.Pattern to this pattern.
Filter the notes in this pattern to create a new Midi.Pattern
The number of MIDI notes in this pattern
Create a sequence from the note on/off events in this pattern
Returns a new pattern object containing the notes from this pattern transposed by the given amount.