Help with waveform~

Noise Wrangler's icon

Hello everyone,
I'm selecting random slices of constant length in a buffer at regular intervals. I'm trying to display these slices in waveform~ but the length of the slices seems to change at every selection. And I can't see a clear pattern. I've created a small patcher that reproduces my problem.
I'm fairly new with Max so I'm sure I'm missing something.
Many thanks!
JP

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

mizu's icon

adding a pack seems to work

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

hth
zzz

Noise Wrangler's icon

Great idea, thanks!

Your use of trigger made me think that it could be an order of inputs problem. And indeed, by just using the trigger and providing the start before the end, it works.

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

mizu's icon

fun !
displacing the +550 box works too : myself forgetting often when patching too fast..:-))
bzzz

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


Noise Wrangler's icon

That's because of the right to left processing order, so in your patch, now the start time is defined before the end time (just like with the trigger box).

By the way, the trick of putting a list in the start inlet is rather useful, so thanks for that :)

Also: support told me that the problem occurs mostly when the new end time is before the previous start time, which is impossible.