Module culsynth::midi_const

source ·
Expand description

This module contains u8 constants for MIDI note numbers, using standard musical notation. For example, midi_const::Db4 is the note a semitone above middle C, and midi_const::A4 == 69u8 is A440.

Note that these are constants but use a lowercase b to denote flats for visual similarity with musical notation, breaking the convention for const values in Rust. No constants are provided for sharps - use the enharmonic flat.

Constants§