Simplyfy code

main
Georg Krause 2019-04-17 09:59:38 +02:00
parent 4c0d6f1b0f
commit dd22b92240
1 changed files with 5 additions and 6 deletions

View File

@ -204,13 +204,12 @@ void TimeManager::setTransportState( TRANSPORT_STATE s )
void TimeManager::process(Buffers* buffers)
{
if(_bpmChangeQueued) {
_fpbLag += _nextFpb - _fpbLag;
cout << "Lag: " << _fpbLag << " Next: " << _nextFpb << " Actual: " << _fpb << "\n";
_fpbLag = _nextFpb;
cout << "Lag: " << _fpbLag << " Next: " << _nextFpb
<< " Actual: " << _fpb << "\n";
setFpb(_fpbLag);
if (abs((int)_fpbLag - (int)_nextFpb) <= 1) {
_bpmChangeQueued = false;
cout << "finish\n";
}
_bpmChangeQueued = false;
cout << "finish\n";
}
// time signature?
//buffers->transportPosition->beats_per_bar = 4;