Open cfrantz opened 3 days ago
Demonstrate how to use the rustysynth library together with midir and tinyaudio to create a basic MIDI synthesizer.
rustysynth
midir
tinyaudio
List MIDI input devices:
$ cargo run --example midi_input -- --list 0: Midi Through:Midi Through Port-0 14:0 1: MPKmini2:MPKmini2 MIDI 1 32:0
Use the MPKmini to play the "Church Organ" instrument from an SF2 soundfont:
$ cargo run --example midi_input -- \ --port 1 \ --sf2 /usr/share/sounds/sf2/TimGM6mb.sf2 \ --program 20
Demonstrate how to use the
rustysynth
library together withmidir
andtinyaudio
to create a basic MIDI synthesizer.List MIDI input devices:
Use the MPKmini to play the "Church Organ" instrument from an SF2 soundfont: