atlastrafficmonitor/atlas-traffic-client — pull request #7 by BrianNewsom (2014-12-03 06:34:20+00:00)
Title: Work on effects

Hey all, specifically @ianks,

This is by no means where I want it to be, but I finally understand how to apply effects to a sound. It was far more simple than I was making it, so I'm glad to have figured that out. It doesn't necessarily need to be merged but I wanted you guys to look at it.

It is at least a simple POC for random composition - here I am just pulling notes out of a G Pentatonic scale, applying a little reverb and delay and then calling it good. My code is pretty awful though - specifically:
* I am trying to get the Note function to be a classlike object where I can write sub functions that will apply effects so I can modify an object rather than keep passing different variables through. For some reason I cannot make any this.functionNames for the object. This is just my unfamiliarity with JS.
* The way I created the random composition is by precreating the array, then popping it into the existing infrastructure. It should be done in a way in which we don't have to pre-generate an array but I couldn't figure that out.

Anyways, long way to go but here's some of the progress I've made.