Skip to content

Commit 062a262

Browse files
committed
Reset note count per instrument when creating a new song
Fixes #89
1 parent a9e5490 commit 062a262

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/reset/reset.gml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ with (obj_instrument) {
116116
user_instruments = 0
117117
instrument = instrument_list[| 0]
118118

119+
// Reset note count per instrument
120+
for (a = 0; a < ds_list_size(instrument_list); a++) {
121+
var ins = instrument_list[| a]
122+
ins.num_blocks = 0
123+
}
124+
119125
// Macros
120126
stereo_reverse = 0
121127
tremolotype = 0

0 commit comments

Comments
 (0)