GUI.cpp
// helper function to set bpm text display
helper function to set bpm text display
helper function to set bpm text display
void GUI::refreshBPMText()
{
	ss.str("");
	ss << currentBPM;
	string strNewBPM = ss.str();
	if(strNewBPM.length()==1)
		strNewBPM = "  " + strNewBPM;
	else if(strNewBPM.length()==2)
		strNewBPM = " " + strNewBPM;
	BPMText.setString(strNewBPM);	
}
void GUI :: refreshBPMText ( ) { ss . str ( " " ) ; ss << currentBPM ; string strNewBPM = ss . str ( ) ; if ( strNewBPM . length ( ) == 1 ) strNewBPM = " " + strNewBPM ; else if ( strNewBPM . length ( ) == 2 ) strNewBPM = " " + strNewBPM ; BPMText . setString ( strNewBPM ) ; }
helper function to set bpm text display
helper function to set bpm text display
// convert the BPM value to string // now set the string