Skip to content

Commit 5b56ae3

Browse files
committed
changed XY button numbers' SysEx cmd
1 parent a4bbac9 commit 5b56ae3

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ Functions requiring a color code have a "...ByCode" naming style.
11021102
LaunchpadMk3() -> "Mk3"
11031103
LaunchpadLPX() -> "X"
11041104
LaunchpadPro() -> "Pro"
1105-
LaunchControl() -> "Control"
1105+
LaunchControl() -> "Control MIDI"
11061106
LaunchControlXL() -> "Control XL"
11071107
LaunchKeyMini() -> "Launchkey" (should work for all variants)
11081108
It is sufficient to search for a part of the string, e.g.
@@ -1114,7 +1114,8 @@ Functions requiring a color code have a "...ByCode" naming style.
11141114
By default, Launchpad.py uses the template "User 1".
11151115
Simply don't touch this and you're safe.
11161116
Notice that these values are internally remapped to 0..15, as they
1117-
appear in the Novation documentation.
1117+
appear in the Novation documentation. The buttons on the HW are labeled "1..8",
1118+
that is why Launchpad.py uses 1..16 rather than 0..15.
11181119
1.. 8 -> select user template 1..8
11191120
9..16 -> select factory template 1..8
11201121

@@ -1188,6 +1189,7 @@ Functions requiring a color code have a "...ByCode" naming style.
11881189
LaunchpadMk3() -> "Mk3"
11891190
LaunchpadLPX() -> "X"
11901191
LaunchpadPro() -> "Pro"
1192+
LaunchControl() -> "Control MIDI"
11911193
LaunchControlXL() -> "Control XL"
11921194
LaunchKeyMini() -> "Launchkey"
11931195

launchpad_py/launchpad.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,12 +1895,13 @@ def LedCtrlXY( self, x, y, red, green ):
18951895
color = self.LedGetColor( 3, 3 )
18961896

18971897
if y == 0:
1898-
index = [ 9, 10, 11, 12, 25, 26, 27, 28, 116, 117 ][x]
1898+
# index = [ 9, 10, 11, 12, 25, 26, 27, 28, 116, 117 ][x]
1899+
index = [ 0, 1, 2, 3, 4, 5, 6, 7, 10, 11 ][x]
18991900
else:
19001901
if x == 8:
1901-
index = 114
1902+
index = 8
19021903
elif x == 9:
1903-
index = 115
1904+
index = 9
19041905
else:
19051906
return
19061907

0 commit comments

Comments
 (0)