OSC.cpp
// push current data to table that keeps an array of historical data
// (used for meter visualization)
push current data to table that keeps an array of historical data
(used for meter visualization)
push current data to table that keeps an array of historical data ( used for meter visualization )
void OSC::pushHistory(float g)
{
	if(g < 0) 
		g = g * -1.0;
	history[historyWriteIndex] = g; 
	historyWriteIndex++;
	if(historyWriteIndex >= OSC_HISTORY_SIZE)
		historyWriteIndex = 0;
}
void OSC :: pushHistory ( float g ) { if ( g < 0 ) g = g * -1.0 ; history [ historyWriteIndex ] = g ; historyWriteIndex ++ ; if ( historyWriteIndex >= OSC_HISTORY_SIZE ) historyWriteIndex = 0 ; }
push current data to table that keeps an array of historical data
(used for meter visualization)
push current data to table that keeps an array of historical data ( used for meter visualization )
// flip sign when negative // store value