Multichannel Waveform~ Bug

realshafer's icon

Hi, I've been having a frustrating time working with multichannel display in waveform~. As per the help file, I've been using the @name attribute to specify the different channels. I've attached a patch where I've described some of the odd behavior I've been experiencing.

For those who can't download the patch, here's what I've commented inside the patch:

Upon startup, I get this error message:

waveform~: channel 1 out of range (buffer~ #0_soundplayer has 0 channels)

waveform~ displaying channel 1

Check out the inspector on both of these waveform~ objects, looking at the channel number. The top one is set to channel 0, and the bottom is set to channel 1!

My "name" attribute should have set those to channels 1 and 2, correct?

Try loading a stereo file and see if the waveform displays correctly.

On my computer, only the top waveform~ object displays, showing channel number 2. Unlocking and relocking the patch (or clicking on the waveform~ object) causes the bottom waveform~ to refresh showing channel number 1.

Clicking on my two "name" attribute message boxes doesn't do anything.

Sometimes I can't change the channel assignment in the inspector. They're stuck on channels 0 and 1.

Finally, try loading a different stereo file. The bottom waveform~ retains the previous file's waveform until you unlock/relock or click around in the patch.

What's going on here?? I'd appreciate any explanation or help.

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

waveform_error.maxpat
Max Patch
realshafer's icon

Hi, has anyone found a chance to download my patch and check it out? Can anyone confirm the waveform~ errors that I'm experiencing? Thanks!

realshafer's icon

I'm surprised no one has tried the patch and reported that these issues are occurring? Are these known issues with waveform~?

Ben Bracken's icon

I can reproduce some problems here and I'll take a closer look. As a workaround, you may want to use other attributes in the meantime, like @chanoffset.

Best,
-Ben

realshafer's icon

Hi Ben, thanks for your reply. I'm glad it's not just my computer. As far as I've researched, the @chanoffset parameter is restricted to 0 - 4. This is a problem if, for example, you load an 8-channel file. Does that make sense?

realshafer's icon

Ideally, what I'd like to be able to re-create in the patch window is the floating buffer display window (see attachment). Any suggestions?

Screen-shot-2014-01-09-at-3.16.49-PM.jpg
jpg
Ben Bracken's icon

As far as I'm aware, buffer~ only allows up to four channels, so this wouldn't work for a single buffer~. You would need to use multiple buffer~ objects.

-Ben

realshafer's icon

The image that I attached above shows a buffer~ with an 8 channel AIFF loaded in it?!