GithubHelp home page GithubHelp logo

akai-apc-key-25-led-feedback-fix's Introduction

AKAI APC Key 25 LED Feedback fix

Solution to fix bug in AKAI APC light feedback

AKAI APC Key 25 problem/bug:

In Ableton Live I midi mapped some of the grid buttons of the APC Key 25 to toggle controls, it works fine but the led colors do not change so you can't know whether the midi mapped controls are ON or OFF.

Doing some reaserch on the internet I found out that Ableton sends the midi information through the "Remote" midi ports but the AKAI does not react to it.

Each button of the APC Key grid corresponds to a note, the midi message to change the led color is:
NOTE_ON + <note_of_the_button> + VELOCITY_VALUE

The velocity value defines which color the led should be:

  • 0=off,
  • 1=green,
  • 2=green blink,
  • 3=red,
  • 4=red blink,
  • 5=yellow,
  • 6=yellow blink,
  • 7-127=green

Ableton Live sends the following message when the midi mapped control is OFF:
NOTE_OFF + <note_of_the_button> + 64

This python script detects when this type of messages are sent by Ableton Live to the Midi Remote Output Ports using a virtual midi port, then I translate those to midi messages that makes the APC Key 25 change the led color correctly:
NOTE_ON + <note_of_the_button> + 3 (RED COLOR)

Ableton Live configuration

You have to use a virtual midi port (in my case I use the Mac OSX default "IAC Driver (Bus 1)") and enable "Remote" in its Output port in Ableton Live's settings:

plot

Mac OSX .plist (in order to run it in background and forget about it)

I've added a .plist config that should be placed in ~/Library/LaunchAgents/ folder in order run the script when the computer starts and keep it running in background.
It must be updated with the virtual environment python binary path (can be created using virtualenv midi_apc_env; pip install -r requirements.txt) and the path of the apc_led_feedback.py script.

Libraries used

MIDO: https://github.com/mido/mido

Some links from sources that helped me understand and fix this problem

https://www.youtube.com/watch?v=RYMRiGQtTz0
https://forum.ableton.com/viewtopic.php?t=149974

NOTE: I do not have time to provide any support on this

akai-apc-key-25-led-feedback-fix's People

Contributors

rogribas avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.