Traffic Light sequence
How would i go about creating a simple traffic light sequence in Max Msp? Examples would be greatly recieved. I have attached my patch, however it goes out of time surely there is a more simple way? I was thinking a using select but how would i apply that to the sequence
Are we doing your homework? It's getting to be that time of year.... :-)
Case for studying pattrstorage =)
i think it stands to reason(if one is calm enough to transcend bitter prejudices built up from past forum experiences) that if this is the kind of homework assigned this late in the school year/semester, it would have to be given by one of the worst and slowest teachers of max ever.
regardless, even if it is an assignment, i doubt anyone would learn any less by seeing a solution like this:
You might want to tweak the timing of each light, i just guessed by my experience that red lights are the longest and yellow is the shortest but i have no idea by what exact ratio or system.
Hope it helps no more than it needs to ;)
________________________________
*Never fear, Noob4Life was never here!*
cheers, and for those thinking this is homework im afraid im at a sixth form college and im learning Max Msp for fun because it looks like an awesome piece of software and ive already finished my Music Technology assignments :)
[EDITED: i stand corrected as below]
(there, i feel better)
________________________________
*Never fear, Noob4Life was never here!*
bearandom, if you're *really* interested in traffic control, you'll have to get topological and implement Hold On Line and Main Street Green algorithms and swap them out according to time of day
Actually, those two basic states of operation have some interesting analogs when you think of directing the flow of attention in a generalized control algorithm for, say, processing audio and aggregating effects (In a previous life I did some work on the traffic control system for a major world city that shall remain nameless, save to say that I have had to drive around in it and experience the work as a programmer and a user).