buffer~ won't normalize in M4L

Theodore's icon

I'm working on a wavetable synth Max Instrument and can't get the "normalize" buffer~ message to work while the instrument is running in Live.

Basically, I'm just using waveform~ so that the user can draw arbitrary shapes and then I've got a "normalize 1" message going to the associated buffer~.

This works perfectly when the editor is open, but as soon as I close it the message doesn't seem to do anything. Other messages like "apply hamming", "clear", or "replace" all work, whether the editor is open or not.

Using Live 9.1.7 and Max 7.0.1

Any insight is greatly appreciated - thanks for your time.

Theodore's icon

It looks like I've solved my own problem.

Some of the audio files I was importing into the buffer~ were 2 channel, but my waveform~ was only displaying the first channel.

So basically, when I would draw something into the waveform~, the 2nd channel was still filled with the original sound - which already reached peak amplitude. So "normalize 1." appeared to have no effect.

chapelier fou's icon

Hi,
I seem to have the same problem, but to me it seems to do nothing at all. Clicking on the buffer object to display the waveform, I see no effect when doing this from Live, whereas it just works when the editor is open.

chapelier fou's icon

Well, the max window says :
"buffer~ normalize requires positive, non-zero argument"
which is super weird since I send the message "normalize 1"

chapelier fou's icon

Well.
needed to send "normalize 1." when using in Live.
"normalize 1" works in max, though...
That's ok but looks like a bug to me.