set the new frequency , maintaining the phase concode_field_sep double n0 concode_elem_sep double n1 concode_elem_sep double k concode_elem_sep double fs concode_field_sep double getK concode_elem_sep void getSamples concode_elem_sep void getSamples concode_elem_sep double getFs concode_elem_sep void addSamples concode_elem_sep void addSamples
void function ( double arg0 ) { double loc0 = 2.0 * Math . PI * arg0 / fs ; k = getK ( arg0 ) ; double loc1 = Math . acos ( n0 ) ; if ( n1 > n0 ) loc1 = 2 * Math . PI - loc1 ; n0 = Math . cos ( loc1 ) ; n1 = Math . cos ( loc0 + loc1 ) ; }