-Fixed #82, metronome visibility issue

This commit is contained in:
Harry van Haaren 2014-05-12 14:11:01 +01:00
parent c37376ce76
commit c698e631d4

View file

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