Giter Club home page Giter Club logo

fluidsynthunity's Introduction

FluidSynth Unity

FluidSynth ported to C# through Midi Player Tool Kit (Unity Asset) with Unity bindings. Comes with NVorbis OGG Vorbis decoder.

All parts are heavily modified: stripped down and optimized. Stripping down relates to playing MIDI files, stereo sound and other features that were not needed for Omnibullet. The goal was to optimize performance and the binary size.

This allows the system to load the whole sound font under 1ms, keep the memory usage down and work with good latency. (Although if you want a good latency, you may need to get creative with the API: The toy API used in the sample example project uses Unity's OnAudioFilterRead which has terrible latency. Omnibullet uses a different approach based on dynamically generated AudioClips to reach near zero latency.)

How to use

See the samples. This is not a plug and play package, you may still need to do some coding.

Install

Open Packages/manifest.json with your favorite text editor. Add following line to the dependencies block:

{
  "dependencies": {
    "cz.omnibullet.fluidsynth-unity": "https://github.com/ArbitraryCombination/FluidSynthUnity.git"
  }
}

License

The project builds upon multiple separately licensed components:

Note that while the modifications are under 0BSD, you still must follow the terms and conditions of other licenses.

Contributing

  1. Fork this repository (For further details, see https://docs.github.com/en/github/getting-started-with-github/fork-a-repo)
  2. Develop changes to a new branch to your forked repository
  3. Create a Pull Request from your forked repository against this repository
  • Pull request description should answer these questions: "What has been changed" and "What is this for"

Developing

One way to develop this Unity package is to create a new Unity Project and copy this package to its Assets folder.

This way .meta files (required by Unity) are generated automatically. Assets available in the package can now be tested and developed inside the project.

After making changes you can test your package by eg. installing it via Git URL:

Open Packages/manifest.json with your favorite text editor. Add following line to the dependencies block:

    {
        "dependencies": {
            "com.arbitrary-combination.FluidSynthUnity": "https://github.com/ArbitraryCombination/FluidSynthUnity.git"
        }
    }

For further details, see Unity docs about custom packages.

fluidsynthunity's People

Contributors

darkyenus avatar

Stargazers

 avatar  avatar

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.