Rust, Midi, Programming.
eframe::App. struct SynthApp { synthesizer: Arc<Mutex<Synthesizer>>, midi_channel: i32, } impl SynthApp { fn note_on(&mut self, key: &str) { let note = match NOTE_KEY_MAP.get(key) { Some(note) => note, None => return, }; self.synthesizer .lock() .unwrap() .note_on(self.midi_channel, note.note,