Changing waveform speed to match tempo

Scotty220's icon

Hi,

I'm trying to match the tempo of my patch to any waveform imported through the buffer. I thought that I had done the correct math to do this but it doesn't seem to work. I'm using waveform~ to calculate the length of the file, and divide that by the amount of bars it is long * my tempo. I then output that into a sig~ 1 which then goes to my groove~. I was certain this would work. Would it and my math is just wrong, or am i just wrong in thinking it would work

Cheers

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

Scotty220's icon

Never mind I worked it out. For anyone wondering I used this formula. Seems to work well for me.

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