A command line MIDI player with an embedded synthesizer.
First add my bucket to scoop:
scoop bucket add insomnia https://github.com/insomnimus/scoop-bucket
Update scoop:
scoop update
Install the app:
scoop install plmidi
Grab a binary for your platform from the releases page.
$PLMIDI_DEFAULT_SOUNDFONT: (Optional) Path to the default soundfont file. The file doesn't need to exist.
--features=system: Enable playback through MIDI out devices registered on the system.--features=system-jack: Same withsystembut uses the Jack backend.--features=winrt: Same withsystemexcept it uses the WinRT backend. Note that currently WinRT does not recognize OmniMidi or Virtual Midi Synth so I wouldn't recommend it.--features=fluid: Enable fluidlite as a built-in MIDI synthesizer (requires libfluidlite and pkg-config to be present on your system).--features=fluid-bundled: Enable fluidlite as a built-in MIDI synthesizer; use the bundled library. This feature is enabled by default.
You need an up to date rust toolchain installed.
On *NIX systems, you also need alsa development libraries:
# Debian and derivatives
apt install libasound2-dev
# RHEL and derivatives
dnf install alsa-lib-develTo use the jack backend, you also need jack development libraries:
# Debian and derivatives
apt install libjack-jackd2-dev
# RHEL and derivatives
dnf install jack-audio-connection-kit-develYou can install from crates.io:
cargo install plmidi --features system
Or, you can clone it:
# to install after a git clone
git clone https://github.com/insomnimus/plmidi
cd plmidi
cargo install --path .
# To enable the system apis via the `jack` backend:
cargo install --path . --features system-jack
# To disable built-in fluidsynth support:
cargo install --path . --features system --no-default-featuresplmidi foo.mid- (If the
systemfeature is enabled)plmidi --device 2 foo.mid - (If the
fluidfeature is enabled)plmidi --fluidsynth ~/soundfonts/some-soundfont.sf2 foo.mid
- On windows, the fluidlite backend doesn't seem to respect sample rates, thus rates higher than 441.khz cause pitch-shifted sped-up sounds.