Expand description
Sample-free General MIDI synthesizer.
rumpl renders Standard MIDI Files without any SoundFont or sample
library: every instrument is synthesized from oscillators, envelopes,
filters, FM, and Karplus-Strong plucked strings.
The library entry points are:
midi::loadโ parse a.midfile into amidi::Sequence.output::render::render_to_wavโ render a sequence offline to WAV.output::play::playโ play a sequence in real time. Only available with theplayfeature, which uses cpal and on Linux needs the ALSA development headers (libasound2-dev).
To use it as a library without the CLI dependencies:
rumpl = { version = "0.2", default-features = false, features = ["play"] }let seq = rumpl::midi::load(std::path::Path::new("song.mid"))?;
rumpl::output::render::render_to_wav(
&seq,
std::path::Path::new("song.wav"),
44_100,
0.8,
3.0,
)?;