Forums > MaxMSP

Traffic Light sequence

November 30, 2010 | 1:28 am

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


November 30, 2010 | 2:16 am

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


November 30, 2010 | 4:28 am

Case for studying pattrstorage =)


November 30, 2010 | 8:12 am

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


November 30, 2010 | 9:54 am

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


November 30, 2010 | 9:53 pm

[EDITED: i stand corrected as below]

(there, i feel better)

________________________________
*Never fear, Noob4Life was never here!*


November 30, 2010 | 10:27 pm

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


Viewing 7 posts - 1 through 7 (of 7 total)