From 3b35ff2edae28633a75ad336b42df56f439b8dd6 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Sat, 1 Aug 2015 19:16:41 -0700 Subject: [PATCH] Updated midi_processing to fix RPG Maker loops --- .../midi_processing/midi_container.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Frameworks/midi_processing/midi_processing/midi_container.cpp b/Frameworks/midi_processing/midi_processing/midi_container.cpp index dfd1bceee..c100c063a 100644 --- a/Frameworks/midi_processing/midi_processing/midi_container.cpp +++ b/Frameworks/midi_processing/midi_processing/midi_container.cpp @@ -1085,26 +1085,17 @@ void midi_container::scan_for_loops( bool p_xmi_loops, bool p_marker_loops, bool if ( event.m_type == midi_event::control_change && ( event.m_data[ 0 ] == 110 || event.m_data[ 0 ] == 111 ) ) { - if ( event.m_data[ 0 ] == 110 || - ( event.m_data[ 0 ] == 111 && event.m_data[ 1 ] > 1 ) ) + if ( event.m_data[ 0 ] == 110 ) { emidi_commands_found = true; break; } - if ( event.m_data[ 1 ] == 0 ) { if ( m_timestamp_loop_start[ subsong ] == ~0UL || m_timestamp_loop_start[ subsong ] > event.m_timestamp ) { m_timestamp_loop_start[ subsong ] = event.m_timestamp; } } - else - { - if ( m_timestamp_loop_end[ subsong ] == ~0UL || m_timestamp_loop_end[ subsong ] < event.m_timestamp ) - { - m_timestamp_loop_end[ subsong ] = event.m_timestamp; - } - } } }