Forums > MaxMSP

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

April 15, 2011 | 2:50 pm

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

a.

– Pasted Max Patch, click to expand. –

April 16, 2011 | 1:11 am

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…

Ben

– Pasted Max Patch, click to expand. –

April 16, 2011 | 1:13 am

Sorry – I copied the last one from presentation… whoops – here it is again:

– Pasted Max Patch, click to expand. –

Viewing 3 posts - 1 through 3 (of 3 total)