Simple sampler class

Hi all,

Can anybody please point me to a simple sampler class ?

What I need is to play some samples recorded on the fly (already know how to do this) using a midi keyboard…

Many thanks for all your suggestions

AF

This is best done with one of the following Ugens:

BufRd.ar() 
PlayBuf.ar()

Which one depends on what you’re trying to do. @elifieldsteel does a great job breaking them down here, but I’m guessing PlayBuf is what you’re after here.

And when you say

“What I need is to play some samples recorded on the fly (already know how to do this) using a midi keyboard…”

what do you mean? You already know how to do the MIDI part or something else? I would figure out how many buffers you need, where you want them on the keyboard, and then assign MIDI note on values to the buffer numbers. I hope that helps.

Just make sure that your code frees the buffers (I like to put this at the beginning) so you don’t keep piling up the same buffers on the server.

This may help:

http://doc.sccode.org/Tutorials/A-Practical-Guide/PG_Cookbook05_Using_Samples.html

…also this, however it requires adjusting the specifications from the QuNeo:

http://sccode.org/1-4US

It’s not entirely clear what you are looking for but Fredriks redSampler Quark is great for simple playback and keeping track of many samples.

Hi,

many thanks for these suggestions…

All the best

AF