> For the complete documentation index, see [llms.txt](https://man572142s-organization.gitbook.io/broaudio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://man572142s-organization.gitbook.io/broaudio/core-features/library-manager/design-the-sound/velocity.md).

# Velocity

## Introduction

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 ](https://youtu.be/EjCPiVFwZfQ?si=N5moA_od9JvAOCz-)(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.

## How To Use?

Set the [PlayMode](/broaudio/core-features/library-manager/design-the-sound.md#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)](/broaudio/reference/api-documentation/interface/iaudioplayer.md#public-methods) to the [method chain](/broaudio/reference/api-documentation.md#the-method-chaining-design).

```csharp
BroAudio.Play(_hit).SetVelocity(60);
```

{% embed url="<https://youtu.be/MnK2cHQMA64?si=SABBsPxwuB-via_z>" %}
