[BGM] Unbreak full loops

This commit is contained in:
Luke Hubmayer-Werner 2024-07-18 14:59:57 +09:30
parent efca0b8e8c
commit 24eab16356
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ static func render_channels(tracks: Array, inst_map: Array, _debug_name := 'none
data += midi_events_bytes_t_event_start.data_array + midi_events_bytes_t_end.data_array + midi_events_bytes3.data_array + midi_events_bytes_adsr.data_array + midi_events_bytes_t_note_start.data_array data += midi_events_bytes_t_event_start.data_array + midi_events_bytes_t_end.data_array + midi_events_bytes3.data_array + midi_events_bytes_adsr.data_array + midi_events_bytes_t_note_start.data_array
var smp_loop_start = -1 var smp_loop_start = -1
var smp_loop_end = -1 var smp_loop_end = -1
if highest_channel_p_return > 0: if highest_channel_p_return >= 0:
smp_loop_start = curve_master_tempo.get_integral(highest_channel_p_return + 100) * 32000 smp_loop_start = curve_master_tempo.get_integral(highest_channel_p_return + 100) * 32000
smp_loop_end = curve_master_tempo.get_integral(longest_channel_p_end + 100) * 32000 smp_loop_end = curve_master_tempo.get_integral(longest_channel_p_end + 100) * 32000
return [data, target_time_length, [smp_loop_start, smp_loop_end]] return [data, target_time_length, [smp_loop_start, smp_loop_end]]