pub fn midi_number(&self) -> isize {
        let base = self.note.name.chromatic_scale_degree() as isize;
        let offset = self.note.accidental.chromatic_offset();
        C_ZERO_MIDI + (CHROMATIC_SCALE as isize * self.octave) + base + offset
    }
/// Converts a [`PitchedNote`] to its corresponding number in MIDI, where A<sub>0</sub> (the lowest note
/// on a standard piano) is 21. The octave of the note is determined by its letter name, meaning for
/// example that C<sub>1</sub> is 24 and C&#9837;<sub>1</sub> is 23, even though B<sub>0</sub> is also 23.
Converts a [`PitchedNote`] to its corresponding number in MIDI, where A0 (the lowest note
on a standard piano) is 21. The octave of the note is determined by its letter name, meaning for
example that C1 is 24 and C♭1 is 23, even though B0 is also 23.
Converts a [ ` PitchedNote ` ] to its corresponding number in MIDI where A0 ( the lowest note on a standard piano ) is 21 . The octave of the note is determined by its letter name meaning for example that C1 is 24 and C♭1 is 23 even though B0 is also 23 .
pub fn midi_number(&self) -> isize {
        let base = self.note.name.chromatic_scale_degree() as isize;
        let offset = self.note.accidental.chromatic_offset();
        C_ZERO_MIDI + (CHROMATIC_SCALE as isize * self.octave) + base + offset
    }
pub fn midi_number ( & self ) -> isize { let base = self . note . name . chromatic_scale_degree ( ) as isize ; let offset = self . note . accidental . chromatic_offset ( ) ; C_ZERO_MIDI + ( CHROMATIC_SCALE as isize * self . octave ) + base + offset }
Converts a [`PitchedNote`] to its corresponding number in MIDI, where A<sub>0</sub> (the lowest note
on a standard piano) is 21.
Converts a [ ` PitchedNote ` ] to its corresponding number in MIDI where A<sub > 0< / sub > ( the lowest note on a standard piano ) is 21 .
&self