toInt method

int toInt()

Converts the pitch to the corresponding MIDI note.

Implementation

int toInt() => octave * 12 + step.value;