💪Velocity
Last updated
Last updated
Velocity helps determine which clip should be played in a given scenario. The concept originates from the MIDI keyboards in music production world. These devices capture the velocity (the force with which a note is played) and use it to trigger different audio samples based on this value. This feature was designed in a similar way.
Set the PlayMode to "Velocity" and set the value for each clip from low to high. These values will then be used as the bottom of a certain velocity range. Say if you have 2 clips set as 0 and 50, when the given velocity is 30, the first clip will be played, and if the given velocity is 60, the second clip will be played.
To give a velocity, simplicity just add .SetVelocity(velocity) to the method chain.