We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 987d416 commit ca67696Copy full SHA for ca67696
2 files changed
src/core.py
@@ -571,7 +571,7 @@ def note_on(self, data, timestamp, width=None, curve=True, mpe=None, force_chann
571
if note:
572
if note.location is None:
573
note.location = ivec2(0)
574
- note.location.x = col
+ note.location.x = col_full
575
note.location.y = row
576
note.pressure = vel
577
note.midinote = data[1]
@@ -870,6 +870,7 @@ def cb_midi_in(self, data, timestamp, force_channel=None):
870
note.y_bend = 0.0
871
data[1], data[2] = compose_pitch_bend(note.bend + note.y_bend / pb_range)
872
873
+
874
if skip:
875
pass
876
elif msg == 11 and data[1] == 64: # sustain pedal
@@ -879,13 +880,23 @@ def cb_midi_in(self, data, timestamp, force_channel=None):
879
880
else:
881
self.midi_write(self.midi_out, data, timestamp)
882
elif self.is_split(): # everything else (if split)...
- note = self.notes[ch]
883
+ # print('ch', ch)
884
+ try:
885
+ note = self.notes[ch]
886
+ except:
887
+ note = None
888
if ch == 0:
889
890
self.midi_write(self.split_out, data, timestamp)
- elif note.location is not None:
- col = self.notes[ch].location.x
- row = self.notes[ch].location.y
891
+ # else:
892
+ # split_chan = 1 if ch >= 8 else 0
893
+ # if split_chan:
894
+ # self.midi_write(self.split_out, data, timestamp)
895
896
+ # self.midi_write(self.midi_out, data, timestamp)
897
+ elif note and note.location is not None:
898
+ col = note.location.x
899
+ row = note.location.y
900
split_chan = self.channel_from_split(col, row)
901
if split_chan:
902
@@ -1659,13 +1670,14 @@ def setup_rpn(self, on=True):
1659
1670
def split_rpn(self, on=True):
1660
1671
"""Sets up RPN for hardware split (used on LinnStrument 200)"""
1661
1672
if self.options.hardware_split:
1662
- self.rpn(200, 1 if on else 0)
1673
+ self.rpn(200, 1 if on else 0) # split active
1663
1674
1675
+ # lights
1664
1676
self.send_cc(0, 20, 0)
1665
1677
self.send_cc(0, 21, 1)
1666
1678
self.send_cc(0, 22, 7 if on else 0)
1667
1679
1668
- self.rpn(200, 7)
1680
+ self.rpn(200, 0)
1669
1681
1682
def rpn(self, num, value):
1683
if not self.linn_out:
src/options.py
@@ -6,7 +6,8 @@ class Options:
6
# lights: str = "4,7,3,7,3,3,7,3,7,3,7,3"
7
8
# LinnStrument light numbers
9
- lights: str = "4,7,3,7,3,3,7,3,7,3,7,3"
+ # lights: str = "4,7,3,7,3,3,7,3,7,3,7,3"
10
+ lights: str = "1,9,9,2,2,3,3,5,8,8,11,11"
11
# Same as above, for split
12
split_lights: str = "4,7,5,7,5,5,7,5,7,5,7,5"
13
@@ -17,7 +18,9 @@ class Options:
17
18
mark_color: str = "red"
19
20
# Color scheme using webcolors
- colors: str = "cyan,green,green,green,green,green,green,green,green,green,green,green"
21
+ # colors: str = "cyan,green,green,green,green,green,green,green,green,green,green,green"
22
+ # split_colors: str = "cyan,blue,blue,blue,blue,blue,blue,blue,blue,blue,blue,blue"
23
+ colors: str = "red,darkred,orange,goldenrod,yellow,green,darkolivegreen,blue,darkslateblue,indigo,darkorchid,pink"
24
split_colors: str = "cyan,blue,blue,blue,blue,blue,blue,blue,blue,blue,blue,blue"
25
26
# MPE Settings
0 commit comments