notes-Mitchell57

Note

The Note object stores pitch values as Midi index, and provides methods that allow for construction and extrapolation from ‘verbal’ and relational declaration

Constructors

Note(int midi)

Note(string name)

Note(char key, char sign, int octave)


Descriptors

note.midi()

note.frequency(float root=440.0)

note.name()

note.key()

note.octave()

note.distanceTo(Note b)


Modifiers

note.set(string name)

note.set(int midi)

note.set(char key, [char sign, int octave])

note.setOctave(int octave)

note.setKey(string name)

note.setKey(char key, [char sign])


Extrapolators

note.octaveUp(int num)

note.octaveDown(int num)

note.interval(type)

note.interval(int num)

note.chord(string chordType, int octave)

note.scale(scale_type type)