src/main/java/net/sourceforge/jaad/aac/sbr/HFGeneration.java
private static void calc_chirp_factors(SBR sbr, int ch) {
		int i;

		for(i = 0; i<sbr.N_Q; i++) {
			sbr.bwArray[ch][i] = mapNewBw(sbr.bs_invf_mode[ch][i], sbr.bs_invf_mode_prev[ch][i]);

			if(sbr.bwArray[ch][i]<sbr.bwArray_prev[ch][i])
				sbr.bwArray[ch][i] = (sbr.bwArray[ch][i]*0.75f)+(sbr.bwArray_prev[ch][i]*0.25f);
			else
				sbr.bwArray[ch][i] = (sbr.bwArray[ch][i]*0.90625f)+(sbr.bwArray_prev[ch][i]*0.09375f);

			if(sbr.bwArray[ch][i]<0.015625f)
				sbr.bwArray[ch][i] = 0.0f;

			if(sbr.bwArray[ch][i]>=0.99609375f)
				sbr.bwArray[ch][i] = 0.99609375f;

			sbr.bwArray_prev[ch][i] = sbr.bwArray[ch][i];
			sbr.bs_invf_mode_prev[ch][i] = sbr.bs_invf_mode[ch][i];
		}
	}
private static void calc_chirp_factors(SBR sbr, int ch) {
		int i;

		for(i = 0; i<sbr.N_Q; i++) {
			sbr.bwArray[ch][i] = mapNewBw(sbr.bs_invf_mode[ch][i], sbr.bs_invf_mode_prev[ch][i]);

			if(sbr.bwArray[ch][i]<sbr.bwArray_prev[ch][i])
				sbr.bwArray[ch][i] = (sbr.bwArray[ch][i]*0.75f)+(sbr.bwArray_prev[ch][i]*0.25f);
			else
				sbr.bwArray[ch][i] = (sbr.bwArray[ch][i]*0.90625f)+(sbr.bwArray_prev[ch][i]*0.09375f);

			if(sbr.bwArray[ch][i]<0.015625f)
				sbr.bwArray[ch][i] = 0.0f;

			if(sbr.bwArray[ch][i]>=0.99609375f)
				sbr.bwArray[ch][i] = 0.99609375f;

			sbr.bwArray_prev[ch][i] = sbr.bwArray[ch][i];
			sbr.bs_invf_mode_prev[ch][i] = sbr.bs_invf_mode[ch][i];
		}
	}
private static void calc_chirp_factors ( SBR sbr , int ch ) { int i ; for ( i = 0 ; i < sbr . N_Q ; i ++ ) { sbr . bwArray [ ch ] [ i ] = mapNewBw ( sbr . bs_invf_mode [ ch ] [ i ] , sbr . bs_invf_mode_prev [ ch ] [ i ] ) ; if ( sbr . bwArray [ ch ] [ i ] < sbr . bwArray_prev [ ch ] [ i ] ) sbr . bwArray [ ch ] [ i ] = ( sbr . bwArray [ ch ] [ i ] * 0.75f ) + ( sbr . bwArray_prev [ ch ] [ i ] * 0.25f ) ; else sbr . bwArray [ ch ] [ i ] = ( sbr . bwArray [ ch ] [ i ] * 0.90625f ) + ( sbr . bwArray_prev [ ch ] [ i ] * 0.09375f ) ; if ( sbr . bwArray [ ch ] [ i ] < 0.015625f ) sbr . bwArray [ ch ] [ i ] = 0.0f ; if ( sbr . bwArray [ ch ] [ i ] >= 0.99609375f ) sbr . bwArray [ ch ] [ i ] = 0.99609375f ; sbr . bwArray_prev [ ch ] [ i ] = sbr . bwArray [ ch ] [ i ] ; sbr . bs_invf_mode_prev [ ch ] [ i ] = sbr . bs_invf_mode [ ch ] [ i ] ; } }
/* FIXED POINT: bwArray = COEF
/ * FIXED POINT : bwArray = COEF