Rust, Midi, Programming.
OutputDeviceParameters = OutputDeviceParameters { channels_count: 2, sample_rate: 44100, channel_sample_count: 441, // サンプルのmaxの長さ }; #[derive(Debug)] pub struct MidiNote { pub note: i32, pub velocity: i32, } pub static NOTE_KEY_MAP: Map<&'static str, MidiNote> = phf_map! { "A" => MidiNote { note: