Traffic Light sequence

Nov 30, 2010 at 1:28am

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

#53632
Nov 30, 2010 at 2:16am

Are we doing your homework? It’s getting to be that time of year…. :-)

#192822
Nov 30, 2010 at 4:28am

Case for studying pattrstorage =)

#192823
Nov 30, 2010 at 8:12am

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:

– Pasted Max Patch, click to expand. –

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!*

#192825
Nov 30, 2010 at 9:54am

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 :)

#192826
Nov 30, 2010 at 9:53pm

[EDITED: i stand corrected as below]

(there, i feel better)

________________________________
*Never fear, Noob4Life was never here!*

#192827
Nov 30, 2010 at 10:27pm

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

http://ieeexplore.ieee.org/Xplore/login.jsp?url=http%3A%2F%2Fieeexplore.ieee.org%2Fiel5%2F6%2F5213945%2F05213961.pdf%3Ftp%3D%26arnumber%3D5213961%26punumber%3D6&authDecision=-203

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).

#192828

You must be logged in to reply to this topic.