MPush:
Filter:
Modality-toolkit/Classes (extension) | Libraries/Modality

MPush
ExtensionExtension

Helper methods to interface with the Ableton Push

Description

MKtl class that simplifies interfacing the Ableton Push 1 controller. Otherwise behaves as its parent MKtl.

Currently only implements an interface to set color LEDs.

NOTE: Currently no support for the display. For the Push 2, please just use the standard MKtl for now and refer to https://github.com/Ableton/push-interface/blob/master/doc/AbletonPush2MIDIDisplayInterface.asc#LEDs to set its LEDs.

Class Methods

.new

Arguments:

name

a name

multiIndex

should be 1, unless you have several, then it is 3, 5, etc.

.buttonLight

returns a 7bit CC-number representing the color specified by given arguments.

Arguments:

color

A Symbol representing the color.

intensity

can be either \dim, \full or \half (2nd row only)

blink

can be either \steady, \slow or \fast (not yet implemented for 2nd row)

row

either 0 or 1.

.padLight

returns a 7bit velocity representing the color specified by the given arguments.

Arguments:

color

A Symbol representing the color.

intensity

can be either \dim, \full or \half

blink

can be either \steady, \slow or \fast (not yet implemented)

.lights

dictionary with light definitions.

Instance Methods

.lightsOff

turn off all lights.

.setBtLight

.setCtlLight

.setPadLight

Arguments:

elem

element to be set. should be of type specified by method

color

A Symbol representing the color.

intensity

can be either \dim, \full or \half

blink

can be either \steady, \slow or \fast (not implemented for pads)

set light of a specific element

Examples