Assignment 4- What have I done?

I thought it would be cool to have an effect triggered by a certain frequency or amplitude in a song, so I recreated the frequency crossover patch from class and decided to have that be the manipulated variable in my attempt at an effect automation patch. I added an amplitude gate to the pfft~ sub patch that only allowed sounds through that were over a certain amplitude and sent the resulting 1/0 back to the main patch, where it would then activate a random number generator and a counter that in turn controlled the gain on each of the signals that were coming out of the frequency crossover processing. This sounds like it doesn’t make any sense at all as I’m typing it, so here’s the finished product:

https://soundcloud.com/user186794567/coby-spectral

And my code:

https://gist.github.com/anonymous/ef7aab70161be0846284623791ac6616

https://gist.github.com/anonymous/ac489ab3534398d4ce3f3acb4756d73d

 

It’s not quite the level of control I would like, but it’s a start and I definitely feel more comfortable working in the frequency domain now.