# RackAFX single sample to JUCE audio buffer example?

**URL:** <https://forum.juce.com/t/rackafx-single-sample-to-juce-audio-buffer-example/27262>\
**Category:** General JUCE discussion\
**Created:** [April 16, 2018, 5:29pm UTC](https://forum.juce.com/t/rackafx-single-sample-to-juce-audio-buffer-example/27262 "2018-04-16T17:29:45Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [April 17, 2018, 4:32pm UTC](https://forum.juce.com/t/rackafx-single-sample-to-juce-audio-buffer-example/27262/13 "2018-04-17T16:32:00Z")

</div>

I answered here:

> [@Problems with the method addVoice\[SOLVED\]](https://forum.juce.com/t/problems-with-the-method-addvoice-solved/19418/5):
>
> The methods are members of the sound, so you need to implement them there (it is part of the interface the sound has to satisfy). The [docs](https://docs.juce.com/develop/classSynthesiserSound.html#abc192aba46964c8539206db1e6f6f747) say: virtual bool SynthesiserSound::appliesToNote (int midiNoteNumber) - pure virtual Returns true if this sound should be played when a given midi note is pressed. The Synthesiser will use this information when deciding which sounds to trigger for a given note. Which means, if your sound can play all notes, you can simply return true in every case, …

---

_[View the full topic](https://forum.juce.com/t/rackafx-single-sample-to-juce-audio-buffer-example/27262)._
