Help with waveform~

    MaxMSPbugs/issues

    Noise Wrangler's icon
    Noise Wrangler's icon
    Noise Wrangler
    Feb 02 2023 | 8:07 pm
    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 Patcher
    In Max, select New From Clipboard.
    Show Text

    • mizu's icon
      mizu's icon
      mizu
      Feb 03 2023 | 12:43 am
      adding a pack seems to work
      Max Patcher
      In Max, select New From Clipboard.
      hth zzz
      Share
    • Noise Wrangler's icon
      Noise Wrangler's icon
      Noise Wrangler
      Feb 03 2023 | 10:12 am
      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 Patcher
      In Max, select New From Clipboard.
    • mizu's icon
      mizu's icon
      mizu
      Feb 04 2023 | 11:49 am
      fun ! displacing the +550 box works too : myself forgetting often when patching too fast..:-)) bzzz
      Max Patcher
      In Max, select New From Clipboard.
    • Noise Wrangler's icon
      Noise Wrangler's icon
      Noise Wrangler
      Feb 04 2023 | 12:34 pm
      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.