MCPcopy Create free account
hub / github.com/audulus/rui / MidiNoteIdMethods

Interface MidiNoteIdMethods

examples/synth/src/midi_keyboard.rs:34–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32/// Extension methods for MIDI note conversion and manipulation
33#[allow(dead_code)]
34pub 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
45impl MidiNoteIdMethods for MidiNoteId {
46 fn as_note(&self) -> MidiNote {

Callers

nothing calls this directly

Implementers 1

midi_keyboard.rsexamples/synth/src/midi_keyboard.rs

Calls

no outgoing calls

Tested by

no test coverage detected