Selector Example
Posted: Wed Aug 25, 2010 10:25 pm
This example shows how to use the selector module.
First to make the equivalent of:
If x = 1 then y = 2
Else
If x = 2 then y = 5
Etc..
In this part the input integer (eg. x) controlled by a slider select one of 10 possible outputs.
In the second part we use the Selector to select from two different audio oscillators:
0 = No Sound
1 = OSC 1
2 = OSC 2
3= OSC 1+2
Remember the ‘select’ module works for almost all data types, Floats, Integers, Bools, Audio, graphics etc.
First to make the equivalent of:
If x = 1 then y = 2
Else
If x = 2 then y = 5
Etc..
In this part the input integer (eg. x) controlled by a slider select one of 10 possible outputs.
In the second part we use the Selector to select from two different audio oscillators:
0 = No Sound
1 = OSC 1
2 = OSC 2
3= OSC 1+2
Remember the ‘select’ module works for almost all data types, Floats, Integers, Bools, Audio, graphics etc.