Question by
wheatles · Dec 11, 2017 at 03:00 AM ·
audioaudiosourcesnapshot
Switching Audio snapshots on button press
So, I'm making a digital musical instrument in Unity and would love to know what to script so that when I press numpad 4,5,6 respectively on my keyboard, it will switch between my 3 AudioMixer snapshots which have different pitches on them.
The goal is to change pitch of all audio on an Input. GetKeyDown so I can use one hand to adjust pitch and another to play notes on the keyboard.
Not looking for a fade off time on the pitch, I just want it so that as long the key assigned to controlling pitch is held down, all audio is pitched to the mixer snapshot that key is connected to.
Thank you in advance for any help, time is of the essence unfortunately.
Comment