-Fixed #82, metronome visibility issue

main
Harry van Haaren 2014-05-12 14:11:01 +01:00
parent c37376ce76
commit c698e631d4
1 changed files with 3 additions and 2 deletions

View File

@ -264,6 +264,7 @@ void GMasterTrack::setTapTempo( bool b )
void GMasterTrack::setBarBeat(int b, int beat)
{
// FIXME: hard coded 4/4 time here
if ( beat % 4 == 0 )
{
bar = bar % 4 + 1;
@ -276,8 +277,8 @@ void GMasterTrack::setBarBeat(int b, int beat)
beatLights[i]->value( 0 );
// beat starts at 4
for( int i = 0; i < num; i++)
beatLights[3-i]->value( 1 );
// FIXME: hard coded 4/4 time
beatLights[ 3 - beat%4 ]->value( 1 );
}
Avtk::Volume* GMasterTrack::getInputVolume()