Skip to content

Commit c287a70

Browse files
committed
preparations for Pro-MK3 implementation
1 parent 329a0c7 commit c287a70

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ First [Mk3][21] and [X][22] Launchpad code snippets running now (4/2020).
2525

2626

2727
---
28-
## STATUS 2020/04/xx:
28+
## STATUS 2020/05/xx:
2929

3030
What's hot, what's not?
3131

@@ -70,6 +70,10 @@ Successfully tested with Ubuntu 18.04-LTS+. Requires compiling your own PyGame t
7070
---
7171
## NEWS
7272

73+
### CHANGES 2020/05/XX:
74+
75+
- changed default search string for the original Pro from "Pro" to "Launchpad Pro", for compatibility with Pro-Mk3
76+
7377
### CHANGES 2020/04/XX:
7478

7579
- added Mk3 Launchpad pull request #48; most of the Mk3 functionality available
@@ -1101,7 +1105,7 @@ Functions requiring a color code have a "...ByCode" naming style.
11011105
LaunchpadMk2() -> "Mk2"
11021106
LaunchpadMk3() -> "Mk3"
11031107
LaunchpadLPX() -> "X"
1104-
LaunchpadPro() -> "Pro"
1108+
LaunchpadPro() -> "Launchpad Pro"
11051109
LaunchControl() -> "Control MIDI"
11061110
LaunchControlXL() -> "Control XL"
11071111
LaunchKeyMini() -> "Launchkey" (should work for all variants)
@@ -1165,7 +1169,7 @@ Functions requiring a color code have a "...ByCode" naming style.
11651169

11661170
# open the 1st "Pro"
11671171
lp = launchpad.LaunchpadPro() # notice the "Pro" class!
1168-
lp.Open() # equals Open( 0, "Pro" )
1172+
lp.Open() # equals Open( 0, "Launchpad Pro" )
11691173
11701174
# open the 1st "XL" with user template 3
11711175
lp = launchpad.LaunchControlXL( template = 3 )
@@ -1188,7 +1192,7 @@ Functions requiring a color code have a "...ByCode" naming style.
11881192
LaunchpadMk2() -> "Mk2"
11891193
LaunchpadMk3() -> "Mk3"
11901194
LaunchpadLPX() -> "X"
1191-
LaunchpadPro() -> "Pro"
1195+
LaunchpadPro() -> "Launchpad Pro"
11921196
LaunchControl() -> "Control MIDI"
11931197
LaunchControlXL() -> "Control XL"
11941198
LaunchKeyMini() -> "Launchkey"
@@ -1200,7 +1204,7 @@ Functions requiring a color code have a "...ByCode" naming style.
12001204
lp = lauchpad.Launchpad() # Launchpad "Mk1" or "Classic" class
12011205
if lp.Check( 0, "Pro" ): # check for "Pro"
12021206
lp = launchpad.LaunchpadPro() # "reload" the new class for the "Pro"
1203-
lp.Open() # equals lp.Open( 0, "Pro" )
1207+
lp.Open() # equals lp.Open( 0, "Launchpad Pro" )
12041208

12051209
Search patterns are case insensitive.
12061210

launchpad_py/launchpad.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,10 +748,10 @@ def Open( self, number = 0, name = "Pro" ):
748748
#-------------------------------------------------------------------------------------
749749
#-- Checks if a device exists, but does not open it.
750750
#-- Does not check whether a device is in use or other, strange things...
751-
#-- Uses search string "Pro", by default.
751+
#-- Uses search string "Launchpad Pro", by default.
752752
#-------------------------------------------------------------------------------------
753753
# Overrides "LaunchpadBase" method
754-
def Check( self, number = 0, name = "Pro" ):
754+
def Check( self, number = 0, name = "Launchpad Pro" ):
755755
return super( LaunchpadPro, self ).Check( number = number, name = name )
756756

757757

0 commit comments

Comments
 (0)