Chunity: ChucK For Unity
Use Chunity to generate procedural audio natively from within Unity.
by Music, Computing, Design Group at Stanford
★★★★★ star rating
Price History +
Chunity is a plugin for using the ChucK programming language inside Unity!
ChucK is a programming language for real-time sound synthesis and music creation. It presents a unique time-based, concurrent programming model that's precise and expressive (we call this "strongly-timed"), dynamic control rates, and the ability to add and modify code on-the-fly. In addition, ChucK supports MIDI, OpenSoundControl, and HID devices. It's fun and easy to learn, and offers composers, researchers, performers, and game designers a powerful programming tool for building and experimenting with complex audio synthesis/analysis programs and real-time interactive music.
Chunity is the bridge between ChucK and Unity. It embeds ChucK as a native audio plugin in Unity. It also includes tools for communicating between ChucK and Unity using ChucK global variables. You can pass ints, floats, strings, and arrays between ChucK and Unity. You can also trigger events in ChucK, and use ChucK events to trigger callbacks in Unity! This can be used for calling Unity code with accurate timing down to the sample level.
Learn more about Chunity, including documentation, tutorials, example projects, and the original NIME paper describing Chunity:
http://chuck.stanford.edu/chunity/
Learn more about using ChucK in general:
In particular, you may want to download miniAudicle, the official IDE for ChucK files. This is not necessary as ChucK code can also be written inline in your Unity C# code. However, miniAudicle also provides syntax highlighting and the ability to run ChucK files independently of Unity for greater flexibility of testing your code. Download miniAudicle here:
http://chuck.stanford.edu/release/
Join the ChucK Community on Discord (FYI there is a #chunity channel):