Class

Note

Note(midiVal)

Stores midi value as its character representation including its octave and if it is sharp

Constructor

# new Note(midiVal)

Constructs a Note from a provided a given midiVal and converts it to a string which can be accessed
Parameters:
Name Type Description
midiVal Number Midi value of note to store

View Source vendors/P5/Drawer.js, line 162

Methods

# numToNote() → {NotePackage}

Converts the stored midi value to its character representation

View Source vendors/P5/Drawer.js, line 196

A tuple with the character part and the octave
NotePackage

# updateNote(note)

Updates the note stored to the new note
Parameters:
Name Type Description
note Number New midi value to store

View Source vendors/P5/Drawer.js, line 170