Skip to content

Commit 5e0646d

Browse files
committed
fix some channels get omitted
1 parent 90af280 commit 5e0646d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/import_midi/import_midi.gml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function import_midi() {
6363
while (note > 57) note -= 12
6464
}
6565
if (stop = 0) {
66-
if (channel = 9 || midi_eventuntil[t, e] = -1){
66+
if (channel = 9 || midi_eventuntil[t, e] = -1 || pos - noteuntil = 0){
6767
if (channelheight[channel] < w_midi_maxheight || w_midi_maxheight = 20) {
6868
switch (midi_channelins[channel]) {
6969
case 0: {ins1notes[note, pos] = 1 break}
@@ -149,7 +149,7 @@ function import_midi() {
149149
while (note > 57) note -= 12
150150
}
151151
if (ins > -1 && stop = 0) {
152-
if (channel = 9 || midi_eventuntil[t, e] = -1) {
152+
if (channel = 9 || midi_eventuntil[t, e] = -1 || pos - noteuntil = 0) {
153153
switch (midi_channelins[channel]) {
154154
case 0: {ins1notes[note, pos] = 1 break}
155155
case 1: {ins2notes[note, pos] = 1 break}

0 commit comments

Comments
 (0)