# Velocity when setting SamplerSound

**URL:** <https://forum.juce.com/t/velocity-when-setting-samplersound/23992>\
**Category:** General JUCE discussion\
**Created:** [August 31, 2017, 10:46am UTC](https://forum.juce.com/t/velocity-when-setting-samplersound/23992 "2017-08-31T10:46:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichieT88](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@RichieT88](https://forum.juce.com/u/RichieT88)\
**Post date:** [August 31, 2017, 10:46am UTC](https://forum.juce.com/t/velocity-when-setting-samplersound/23992/1 "2017-08-31T10:46:22Z")

</div>

I was wondering if anybody knew of a way I can have the MIDI velocity which comes in from the host define the sample which is loaded in SamplerSound, I have 3 different samples per note, depending on velocity so I would need to work with ranges

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [September 6, 2017, 11:37am UTC](https://forum.juce.com/t/velocity-when-setting-samplersound/23992/2 "2017-09-06T11:37:55Z")

</div>

I think you’d need to overload the Synthesiser::noteOn method and do some custom stuff in there.
