SAMPLER with easy (2 buttons) sample switch system

odonjohn's icon

Hello I am encountering problem buildind this simple idea.
Final result should be an infinite-turns potentiometer for sample selection as in a groovebox (korg etc).
30-50 samples.

I tryed starting with this

Max Patch
Copy patch and select New From Clipboard in Max.

but the track stay in midi format, not sending any sound..

odonjohn's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Allright I passed thru all these little problems now.

here I ve got a sampler working for some different samples.
Wont be hard to build the easy switch system on it but now appears some new "problems" I need to resolv.

First is when playing the sample repeatedly fast. Clicks/noise sounds occurs because of the sample beeing cutted for re-playing. What is the way to go to avoid this ?

Second is : how to implement an adsr~ ?

I tryed play~ and line~ but it looks hard to get to a "Pitch" livedial and 2 livedials for the "Attack" and the "Release". What is the easyest way to get these 3 functions ? I dont need a sample "start". Just a fading attack.