sinshu / rustysynth

A SoundFont MIDI synthesizer written in pure Rust
Other
108 stars 20 forks source link

Example MIDI synthesizer #20

Open cfrantz opened 3 days ago

cfrantz commented 3 days ago

Demonstrate how to use the rustysynth library together with midir and tinyaudio to create a basic MIDI synthesizer.

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