Cycling through outputs
Posted Sep 04, 2013
Basically, I want to create 2 buttons that cycle forwards and backwards through some possible outputs (ie cycling through about 6 music tracks to play). Problem is, I have no clue how. I'm thinking probably math_counters and logic_cases, but I don't know. I tried searching, but I didn't exactly know what to search for this specific case.
Anyway, help is much appreciated.
Registered users don’t see ads!
Register now!
Posted Sep 05, 2013
Replied
33 minutes
later
A math_counter will fire the outValue output with it's value whenever it changes. Send this to a logic_case's inValue input to let you set numbers. I'd set the case match options to go from 1-6, then use the outputs to play the music. Set the max/min of the counter to 0 and 7, then onHitMax and onHitMin you can setValue the value to 1 or 6 so it loops back. The input buttons could stop all the music then add or subtract 1 from the counter after a small delay.
Posted Sep 05, 2013
Replied
4 minutes
later
Ok, thank you. I'll be trying this out tomorrow.