From cded9fb735f3956b61dcd83a8b1b5a2716b515bf Mon Sep 17 00:00:00 2001 From: Oskar Wallgren Date: Wed, 8 Mar 2017 01:10:07 +0100 Subject: [PATCH] MidiImport - set tempo (#3409) --- plugins/MidiImport/MidiImport.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/MidiImport/MidiImport.cpp b/plugins/MidiImport/MidiImport.cpp index bc647d61b..85d244ca5 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 ) {