Skip to content

Commit

Permalink
MidiImport - set tempo (LMMS#3409)
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine authored Mar 8, 2017
1 parent 5238158 commit 63b4b52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/MidiImport/MidiImport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@ bool MidiImport::readSMF( TrackContainer* tc )
}
}

// Update the tempo to avoid crash when playing a project imported
// via the command line
Engine::updateFramesPerTick();

// Song events
for( int e = 0; e < seq->length(); ++e )
{
Expand Down

0 comments on commit 63b4b52

Please sign in to comment.