Why my waveform~ display doesn't changes as it supposed to do?

alfonso santimone's icon

hi guys,
i'm trying to do a simple sampler player.
you can populate the umenu dragging a folder containing only samples in the relevant box.
but the wave display does not change.
it changes only when i un-lock the patch.
what am i doing wrong?

thanks

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

a.

Ben Carey's icon

Hi alfonso,

The reason why you didn't see the full sample is that you were using [prepend read] instead of [prepend replace]. Read will read the sample you have selected to the buffer but only for the length set by the buffer... so if you have a 4 second sample and a 2 second buffer it will cut it to 2 seconds. Use the replace message instead. I have fixed this in your patch and added a couple of extras also - the startloop message is needed to begin playing (you were only using loop $1...) and if you're keen on looping the samples I've replaced groove~ with the grooveduck abstraction- it avoids clicks at loop points - check the helpfile for more info.

Hope this helps...

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

Ben

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

Sorry - I copied the last one from presentation... whoops - here it is again: