OSC.cpp
// get the current averaged output
// (average derived from (HISTORY_SIZE * historyWriteWait) frames)
get the current averaged output
(average derived from (HISTORY_SIZE * historyWriteWait) frames)
get the current averaged output ( average derived from ( HISTORY_SIZE * historyWriteWait ) frames )
float OSC::getHistoricalAverage()
{
	float sum = 0;
	for(int i=0;i<OSC_HISTORY_SIZE; i++)
		sum += history[i];
	float avg = static_cast<float>(sum / OSC_HISTORY_SIZE);
	return avg;
}
float OSC :: getHistoricalAverage ( ) { float sum = 0 ; for ( int i = 0 ; i < OSC_HISTORY_SIZE ; i ++ ) sum += history [ i ] ; float avg = static_cast < float > ( sum / OSC_HISTORY_SIZE ) ; return avg ; }
get the current averaged output
(average derived from (HISTORY_SIZE * historyWriteWait) frames)
get the current averaged output ( average derived from ( HISTORY_SIZE * historyWriteWait ) frames )