[sharing is surfing] waveform~ for Mira (kind of)

    Jul 22 2013 | 2:40 pm
    Hi there
    for those of us who don't have the chance to surf real waves in the ocean this summer, here is a small waveform~ to surf with your fingertips on your iPad screen. Waiting for a 'real' waveform~ support in Mira, here is an abstraction that display a buffer~ content (waveform) in a multislider. Just like in waveform~, you can select display start and length.
    up to you to to find something fun to do when multitouching a waveform :-)
    happy surfing

    • Jul 22 2013 | 3:14 pm
      That looks pretty sweet.
      I don't know enough jitter to pull that off, but I think it would better looking if it was only half the waveform, fully shown or even better, half the waveform, fully shown, with an inverted multislider underneath it. So it would look like a 'real' waveform (even though it'd only be the top half of it).
    • Jul 22 2013 | 3:35 pm
      This is really really awesome. I've made a multislider-as-waveform~ abstraction before, but it didn't include any kind of downsampling. As you can imagine, hilariously ill-defined drawing was the result. Would you mind if I included this in the example patches for mira (all due credit assigned, of course)?
    • Jul 22 2013 | 3:58 pm
      thanks !
      yes Rodrigo, it would probably look better with only half of the waveform (displaying absolute value of peak amplitude of each segment) ; but when displaying very short waveform (for ex : tri.aif) this would would probably look wrong :-s
      Sam : please feel free to use this patch wherever you want ; it's my pleasure to contribute to Mira's advancement ! (this code comes straight from defunct MMF-fantastick (RIP) ; it's cool to see some part of it continue existing thru Mira :-)
    • Jul 22 2013 | 4:45 pm
      @Sam : does it mean your not planning to add support for waveform~ in near future ?...
    • Jul 22 2013 | 4:54 pm
      Not sure. It's complicated by the fact that waveform~ is a very old and somewhat frowsy object, so it's not totally clear how it should talk to Mira. All I know is that short term this is the best workaround I've seen.
    • Jul 22 2013 | 5:50 pm
      It'd be amazing if there was a waveform(sans tilde) object that was a purely display object (in Max). I don't think I've seen a patch that uses waveform to select/edit a waveform in many many years. It's always just a vizualizer and dropfile identifier.
    • Jul 22 2013 | 6:08 pm
      Same for the sonogram/spectrogram modes of spectroscope~.
    • Jul 24 2013 | 2:53 pm
      I just posted a new version of ejies which has a ej.buffer2l which get the samples out of buffer, with an example of use for Mira.
    • Jul 24 2013 | 4:23 pm
      wow, that's really cool :) Emmanuel being epic again.
    • Jul 24 2013 | 6:05 pm
      wow +1 ! very nice, thanks Emmanuel :-)
    • Dec 12 2016 | 3:34 pm
      Hi guys For Emmanuel: I tried ejies ej.buffer2l in maxforlive but i can't make it work! Maybe it doesn't work in M4L environment? For Mathieu: How i can display different channels with you mira.waveform?
      Thanks anyway for sharing this really good patches!
    • Dec 12 2016 | 4:50 pm
      hi here is another version of this patch with a channel selector :
    • Dec 12 2016 | 11:37 pm
      Thanks a lot! I found that the ej.buffer2l works in M4L but it seems that it works just when i replace the buffer content with the replace message, i tried live drop and drop file but they doesn't work.... i don't know why!