lib/minim/src/ddf/minim/ugens/Wavetable.java
/**
	 * Normalizes the Wavetable by finding the largest amplitude in the table
	 * and scaling the table by the inverse of that amount. The result is that
	 * the largest value in the table will now have an amplitude of 1 and
	 * everything else is scaled proportionally.
	 * 
	 * @example Synthesis/WavetableMethods
	 * 
	 * @related Wavetable
	 */
Normalizes the Wavetable by finding the largest amplitude in the table
and scaling the table by the inverse of that amount. The result is that
the largest value in the table will now have an amplitude of 1 and
everything else is scaled proportionally.



@related Wavetable
Normalizes the Wavetable by finding the largest amplitude in the table and scaling the table by the inverse of that amount . The result is that the largest value in the table will now have an amplitude of 1 and everything else is scaled proportionally . @related Wavetable
public void normalize()
	{
		float max = Float.MIN_VALUE;
		for ( int i = 0; i < waveform.length; i++ )
		{
			if ( Math.abs( waveform[i] ) > max )
				max = Math.abs( waveform[i] );
		}
		scale( 1 / max );
	}
public void normalize ( ) { float max = Float . MIN_VALUE ; for ( int i = 0 ; i < waveform . length ; i ++ ) { if ( Math . abs ( waveform [ i ] ) > max ) max = Math . abs ( waveform [ i ] ) ; } scale ( 1 / max ) ; }
Normalizes the Wavetable by finding the largest amplitude in the table
 and scaling the table by the inverse of that amount.
Normalizes the Wavetable by finding the largest amplitude in the table and scaling the table by the inverse of that amount .