Rumpl
Sample-free General MIDI player and renderer. Every voice is generated algorithmically — no SoundFont, no sample library, no FluidSynth. Expect a chiptune / analog-synth aesthetic.
Install
Or from a local checkout:
Usage
Flags:
--gain <f32>— master gain (default0.8)--sample-rate <u32>— render sample rate (default44100)--tail <f32>— render seconds of release tail after last note-off (default3.0)
Library
rumpl can also be used as a library.
Disable the default features to skip the CLI dependencies:
= { = "0.2", = false, = ["play"] }
use Path;
let seq = load?;
play?; // gain, tail seconds; blocks until done
To render to a file instead:
rumpl::output::render::render_to_wav(&seq, Path::new("song.wav"), 44_100, 0.8, 3.0)?.
play needs the play feature, which uses cpal
(on Linux this requires the ALSA headers, e.g. libasound2-dev).
render_to_wav is always available.
See docs.rs/rumpl for the API.
How it works
midlyparses the SMF; events are merged across tracks and stamped with absolute sample indices via the tempo map.- A 64-voice synth maps each MIDI program to a static
Patch(oscillator stack, ADSR, filter, LFO). Channel 10 uses a separate per-key drum patch table. - Output goes to
cpalforplayorhoundforrender.