Feel free to look at the code and use it There are comments inside. This is not finished
This system is semi-dynamic. I need a longer track. But essentially each part of it is playing individual and changing periodically, this is the core framework for a dynamic music system!