diff --git a/plugins/MidiImport/MidiImport.cpp b/plugins/MidiImport/MidiImport.cpp index bc647d61be3..85d244ca589 100644 --- a/plugins/MidiImport/MidiImport.cpp +++ b/plugins/MidiImport/MidiImport.cpp @@ -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 ) {