Class Midi.Pattern

A timed collection of MIDI notes.

Constructors

Pattern()

Properties

size (integer) The number of MIDI notes in this pattern

Methods

void add(Midi.Note note, float measure)

add a midi.note to this pattern.

Midi.Note note(integer index)

return the note at the given index

void notes(function handler)

void print()

Midi.Pattern slice(float start, float end)

void transpose(integer amount)

Method Documentation


void add(Midi.Note note, float measure)

Add a Midi.Note to this pattern.

Parameters


Midi.Note note(integer index)

Return the note at the given index

Parameters

Returns

Midi.Note


void notes(function handler)

Parameters


void print()


Midi.Pattern slice(float start, float end)

Parameters

Returns

Midi.Pattern


void transpose(integer amount)

Parameters



Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.