387
edits
| Line 41: | Line 41: | ||
| ===Trigger Text and Mute Audio Sources in Unity=== | ===Trigger Text and Mute Audio Sources in Unity=== | ||
| <br><br> | |||
| [[File:Max03.png|500px]] | [[File:Max03.png|500px]] | ||
| <br><br> | |||
| We use the detected peaks in the mic signal, to trigger messages and mute the beat-loop in Unity. | We use the detected peaks in the mic signal, to trigger messages and mute the beat-loop in Unity. | ||
| Therefore we send the OSC message ( /goOnBang $1 ) to the PC running Unity, via OSC.<br> | Therefore we send the OSC message ( /goOnBang $1 ) to the PC running Unity, via OSC.<br> | ||
| When the player pauses for 350ms, the beat-loop stops, and the message - "Give It To Me Baby" - appears on the screen.<br>   | When the player pauses for 350ms, the beat-loop stops, and the message - "Give It To Me Baby" - appears on the screen.<br>   | ||
| When another peak is detected, the Max patch sends a signal to Unity, which tells it to go on, with playing the beat-loop and the message on the screen disappears. | When another peak is detected, the Max patch sends a signal to Unity, which tells it to go on, with playing the beat-loop and the message on the screen disappears. | ||
| <br><br><br><br> | |||
| =Unity= | =Unity= | ||
edits