Giter Site home page Giter Site logo

tsf-rs's Introduction

rust bindings for TinySoundFont โ€ƒ Latest 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.

tsf-rs's People

Contributors

chriscoomber avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jmyhrman

tsf-rs's Issues

Compile to WASM

Hi Chris,

thanks for this! Does the code support WASM as a compilation target so it can be loaded in a browser?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.