Wavetable function ( int arg0 ) { float [ ] loc0 = new float [ arg0 + 1 ] ; for ( int loc1 = 0 ; loc1 < arg0 ; loc1 += 2 ) { loc0 [ loc1 ] = ( float ) 1 / ( loc1 + 1 ) ; loc0 [ loc1 + 1 ] = 0 ; } return WavetableGenerator . gen10 ( tableSize , loc0 ) ; }
builds an approximation of a perfect square wave by summing together harmonically related sine waves . concode_field_sep Wavetable SINE concode_elem_sep Wavetable SAW concode_elem_sep Wavetable PHASOR concode_elem_sep Wavetable SQUARE concode_elem_sep Wavetable TRIANGLE concode_elem_sep int tSby4 concode_elem_sep int tableSize concode_elem_sep int tSby2 concode_elem_sep Wavetable QUARTERPULSE concode_field_sep Wavetable add concode_elem_sep Wavetable square concode_elem_sep Wavetable randomNHarms concode_elem_sep Wavetable randomNOddHarms concode_elem_sep Wavetable saw concode_elem_sep Wavetable pulse concode_elem_sep Wavetable sawh concode_elem_sep Wavetable triangleh concode_elem_sep Wavetable randomNoise concode_elem_sep Wavetable triangle