Skip to content

Commit 2503394

Browse files
committed
Fix incorrect blocks on branch schematic export
Fixes #313
1 parent b97699c commit 2503394

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/branch_export/branch_export.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function branch_export() {
7272
}
7373
if accepted = 1 {
7474
nblocknote[a, ticks] = o.song_key[sch_exp_range_start + b, sch_exp_layer[a]]
75-
nblockins[a, ticks] = o.song_ins[sch_exp_range_start + b, sch_exp_layer[a]] - 100002
75+
nblockins[a, ticks] = ds_list_find_index(o.instrument_list, o.song_ins[sch_exp_range_start + b, sch_exp_layer[a]])
7676
nblockvel[a, ticks] = o.song_vel[sch_exp_range_start + b, sch_exp_layer[a]]
7777
nblockkey[a, ticks] = nblocknote[a, ticks] - 33
7878
sch_exp_totalnoteblocks ++

0 commit comments

Comments
 (0)