tsf 0.2.0

Safe interface for TinySoundFont, a software synthesizer for SoundFont2 files
Documentation
  • Coverage
  • 35.29%
    6 out of 17 items documented0 out of 13 items with examples
  • Size
  • Source code size: 28.66 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 697.25 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 22s Average build duration of successful builds.
  • all releases: 22s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • chriscoomber/tsf-rs
    4 1 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • chriscoomber

rust bindings for TinySoundFontLatest Version

TinySoundFont is a software synthesizer for SoundFont2 sound bank files.

Essentially it can render audio data in 32-bit float or 16-bit (short) int frames. It renders that audio using a loaded soundfont and programmatically-driven note information (soundfont bank and preset, MIDI note number and velocity; and optionally understands MIDI channels).

Example

See the tests in lib.rs for example usage, but we defer mostly to the documentation/examples given in the TinySoundFont repository linked above (though these are in C).

In progress

Only some functions in tsf.h have nice bindings here. It is a work in progress to add the rest. They shouldn't be too difficult based on the ones that have already been done, so feel free to submit a PR with the ones you need! (Or, submit an issue for the ones you need, and a maintainer will look at it if they have time.)

Build requirements

Unfortunately, this library comes with some non-standard build requirements, due to the fact that tsf-sys uses both cc and bindgen. This means that you will need to do some extra setup, even just if this is a dependency (or a dependency of a dependency...).

See the README for tsf-sys for more information.