pub fn transpose(note: u8, semitones: i32) -> u8
Transpose a MIDI note by semitones (clamped to 0-127).