387
edits
Line 25: | Line 25: | ||
===Grabbing the Audio Input=== | ===Grabbing the Audio Input=== | ||
<br><br> | |||
[[File:Max01.png|500px]] | [[File:Max01.png|500px]] | ||
<br><br> | |||
In Max you can grab any audio input. In our case we use a microphone connected to an audio interface. <br> The audio signal is then converted into a float value stream. With a threshold patch, we can set the minimum of input to trigger a bang.<br>The bang from the threshold we then send to a message box, containing a predefined OSC message string ( /goOnBang $1 ). | In Max you can grab any audio input. In our case we use a microphone connected to an audio interface. <br> The audio signal is then converted into a float value stream. With a threshold patch, we can set the minimum of input to trigger a bang.<br>The bang from the threshold we then send to a message box, containing a predefined OSC message string ( /goOnBang $1 ). | ||
<br> | |||
When a peak is detected, the Max patch also sends a message ( /Ben/x $1 ) to Unity via OSC. <br>"$1" is a variable which is replaced by a float "1.3". This value is defines the amount of height, and therefore how high the dancefloor gets lifted. | When a peak is detected, the Max patch also sends a message ( /Ben/x $1 ) to Unity via OSC. <br>"$1" is a variable which is replaced by a float "1.3". This value is defines the amount of height, and therefore how high the dancefloor gets lifted. | ||
<br><br><br><br> | |||
===Setting the threshold=== | ===Setting the threshold=== |
edits