Skip to content

Commit 879f2bb

Browse files
committed
Ensure MIDI CC & Pressure messages go to correct midi output (midi_out or split_out)
1 parent b4f9e14 commit 879f2bb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/core.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,11 +1056,8 @@ def cb_midi_in(self, data, timestamp, force_channel=None):
10561056
# self.midi_write(self.split_out, data, timestamp)
10571057
# else:
10581058
# self.midi_write(self.midi_out, data, timestamp)
1059-
elif note and note.location is not None:
1060-
col = note.location.x
1061-
row = note.location.y
1062-
split_chan = self.channel_from_split(col, row)
1063-
if split_chan:
1059+
elif note and note.split is not None:
1060+
if note.split:
10641061
self.midi_write(self.split_out, data, timestamp)
10651062
else:
10661063
self.midi_write(self.midi_out, data, timestamp)

0 commit comments

Comments
 (0)