Source code companion to a Designing Sound tutorial series on making interactive music systems in the Unity3d game engine.
Hopefully, this can serve as a jumping off point for making interactive and/or generative music systems for games. As much detail as possible is provided in the code comments, and some explanation of some of the thought processes and theory are available in the articles linked below.
Please feel free to use, modify, and redistribute this code as you’d like. Refer to the license for details.
- Part 1 - Design + Sampler
- Part 2 - Volume Envelopes
- Part 3 - Metronome
- Part 4 - Step Sequencer
- Part 5 - Wrapup + Game Parameters
Things Based on This System
Here are some examples of things you can make using the guts of this system. If you’ve made something based on this tutorial, please let me know via Twitter (@charlieHUGE).