diff --git a/Frameworks/midi_processing/midi_processing/midi_container.cpp b/Frameworks/midi_processing/midi_processing/midi_container.cpp index c365fecdf..d090b58da 100644 --- a/Frameworks/midi_processing/midi_processing/midi_container.cpp +++ b/Frameworks/midi_processing/midi_processing/midi_container.cpp @@ -338,7 +338,9 @@ void midi_container::initialize( unsigned p_form, unsigned p_dtx ) m_timestamp_end[ 0 ] = 0; m_timestamp_loop_start.resize( 1 ); m_timestamp_loop_end.resize( 1 ); - } + } + int port = 0; + limit_port_number(port); } void midi_container::add_track( const midi_track & p_track )