Skip to content

tweaked to ignore out of range clips #1599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Macropad_Ableton/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# SPDX-License-Identifier: MIT
# Ableton Live Macropad Launcher
# In Ableton, choose "Launchpad Mini Mk3" as controller with MacroPad 2040 as in and out
# Use empty fifth scene to allow "unlaunching" of tracks with encoder modifier
import board
from digitalio import DigitalInOut, Pull
import keypad
Expand Down Expand Up @@ -156,7 +157,7 @@
"\n"
)
# send neopixel lightup code to key, text to display
if msg_in.note < 84 and msg_in.note > 50:
if msg_in.note in LP_PADS:
pixels[LP_PADS[msg_in.note]] = LP_COLORS[msg_in.velocity]
pixels.show()
if msg_in.velocity == 21: # active pad is indicated by Live as vel 21
Expand Down