polybuffer~ and waveform~, some light please.
Hello gang,
I'm trying to use waveform~ object to control some wave~ objects, I'm using exclusively stereo audio files inside a polybuffer~ object and i want to se both channels in waveform~, i know the way to do this with a buffer~ but i can't find the way to do it with polybuffer~ i can save, but when i reopen the patch i have the following message in Max's console:
waveform~: waveform~: channel 1 out of range (buffer~ wow.1 has 0 channels)
waveform~: waveform~ displaying channel 1
Here is a simplified example of with i'm trying to do:
Thank you in advance for any help.
Leo
It probably reads the polybuffer~ before the sample gets loaded? So, there is no second channel yet to be read, so it gives the error.
Once the samples get loaded its probably fine (not 100% sure).
Put like this it gives no errors, because the buffers get set before the wavetable~s read the buffer (probably)
EDIT: The patcher above doesn't give errors because of Max top->bottom priority.
Nik
Thank you Nikolas K for your answer, but it doesn't solve the problem. Be careful after you open the patch and receive the error message Max automatically blocks the waveform~ attribute: @chanoffset, you have to re-instanciate the object (waveform~) in order to be able to select the second channel inside the file in polybuffer~. When you re-instanciate the object, save and reload you have that error message again and the @chanoffset attribute is blocked, so sorry but this is false:
EDIT: The patcher above doesn’t give errors because of Max top->bottom priority.
Maybe using a more visually stereo audio file i would be easier to see.
Thank you again Nikolas K
Yes, I noticed now.
So, something like that:
The second waveform is set to also to channel 1, so the error will not appear, but will change to show channel 2 right away (the sample being stereo).
Hope this helps
Nikolas, thank you very much again but thats a method i already try and it doesn't work either.
Remember you have to save a re-open the patch to test.
Maybe waveform~ just can't read from polybuffer~