Rust fluidlite bindings
This project aims provide safe Rust bindings to fluidlite C library.
FluidLite is a very light version of FluidSynth designed to be hardware, platform and external dependency independant. It only uses standard C libraries.
It also adds support for SF3 files (SF2 files compressed with ogg vorbis) and an additional setting to remove the constraint of channel 9 (drums): fluid_settings_setstr(settings, "synth.drums-channel.active", "no"); you can still select bank 128 on any channel to use drum kits.
FluidLite keeps very minimal functionnalities (settings and synth), therefore MIDI file reading, realtime MIDI events and audio output must be implemented externally.
Crates
- fluidlite Safe bindings
- fluidlite-sys Unsafe bindings (generated using bindgen)
- fluidlite-lib Bundled library
Features
- generate-bindings Force generate bindings on build instead of using pre-generated
Example
use ;
use AsByteSlice;
use ;
let settings = new.unwrap;
let synth = new.unwrap;
synth.sfload.unwrap;
let mut buffer = ;
let mut file = create.unwrap;
synth.note_on.unwrap;
synth.write.unwrap;
file.write.unwrap;
synth.note_off.unwrap;
synth.write.unwrap;
file.write.unwrap;