Skip to content

Commit 23b4db0

Browse files
authored
3.4.6: Fix for pressed button determination of MK1 (#10)
1 parent 70ee95a commit 23b4db0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "launchpad.js",
3-
"version": "3.4.5",
3+
"version": "3.4.6",
44
"description": "A javascript api to control your Novation launchpads",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/launchpads/MK1/LaunchpadMK1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export class LaunchpadMK1 extends BaseLaunchpad {
164164
// we use divide and use the rest of 16 because
165165
// there's 16 (virtual) buttons in a row.
166166
note % 16, // x
167-
Math.floor(note / 16), // y
167+
Math.floor(note / 16) + 1, // y
168168
];
169169
}
170170

0 commit comments

Comments
 (0)