Fix division by zero on metronome update

This commit is contained in:
Robert Wruck 2011-06-21 22:21:51 -07:00 committed by Jonathan Moore Liles
parent c7a54f2c4d
commit 6a09ce1c9c
1 changed files with 3 additions and 2 deletions

View File

@ -199,9 +199,10 @@ for ( int i = pack->children(); i-- ; )
}
Function {update( void )} {open return_type void
} {
code {bpb( transport.beats_per_bar );
code {if ( transport.beats_per_bar ) {
bpb( transport.beats_per_bar );
tpb( transport.ticks_per_beat );
beat( transport.beat - 1 );
tick( transport.tick - 1 );} {}
tick( transport.tick - 1 );}} {}
}
}