Time-stretch groove~ object not playing full sample

jamesjonesjr529's icon

Hi Max Community,

I'm running Max 7. I'm loading a buffer~ object with wav files using a replace message (i.e bang message: "replace [filename.wav]). Without the timestretch attribute, I have no issue with playback from the groove~ object with tempo changes. I'd prefer to not have the pitch change with the tempo. However, when I turnon the timestretch attribute (groove~ buffername 2 @timestretch 1) the samples are cuttoff in them middle of playback. When I check the info output from the buffer, it looks like it's loading the entire sample.

Is this a glitch? Is anyone seeing this? Am I missing something? The samples I'm using are typical songs like 3-6 minutes long.

Thanks,

James

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

hey, i can't reproduce (osx 10.10.5, max 7.0.5 32bit). Could you provide an example patch with the bug ? Here's mine (no bug when i change speed)

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

Here's an example of it not working. Song ends before sample complete. I couldn't attach song since the file was too big but i get the same glitch with any song.

jamesjonesjr529's icon

osx 10.10.5, max 7.0.6 32 bit

jamesjonesjr529's icon

Your patch helped me figure it out! Thanks man. I need to send a loop 1 message to the groove~ function so that it doesn't end when the signal reaches 1. Weird that I only have this issue when timestretch is turned on.

Thanks,

vichug's icon

so the problem only appears when loop is not set on 1 then ?

edit : i can reproduce now :)) with no loop 1