(→Unity) |
|||
Line 23: | Line 23: | ||
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. 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. The bang from the threshold we then send to a message box, containing a predefined OSC message string ( /goOnBang $1 ). | ||
===Setting the threshold=== | |||
To use a constant audiostream, and trigger things with it, you need something called "Envelope Follower". Therefore we used a sub-patch which comes with to standard max-externals. | |||
This patch detects peaks in the audio-signal, if you want to use a peak above a certain level you have to look at the gain and set the threshold then. | |||
<gallery> | <gallery> |