| 32 | /// Extension methods for MIDI note conversion and manipulation |
| 33 | #[allow(dead_code)] |
| 34 | pub trait MidiNoteIdMethods { |
| 35 | /// Converts a MIDI note ID to a complete MIDI note with note type and octave |
| 36 | fn as_note(&self) -> MidiNote; |
| 37 | |
| 38 | /// Extracts the note type from a MIDI note ID |
| 39 | fn as_note_kind(&self) -> MidiNoteKind; |
| 40 | |
| 41 | /// Calculates the frequency in Hz for the given MIDI note ID |
| 42 | fn as_frequency(&self) -> MidiFrequency; |
| 43 | } |
| 44 | |
| 45 | impl MidiNoteIdMethods for MidiNoteId { |
| 46 | fn as_note(&self) -> MidiNote { |
nothing calls this directly
no outgoing calls
no test coverage detected