Skip to content

Commit

Permalink
MidiImport - set tempo (#3409)
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine authored Mar 8, 2017
1 parent 7a58cc3 commit cded9fb
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 cded9fb

Please sign in to comment.