Module: LaunchpadMk2

Defined in:
lib/launchpad_mk2.rb,
lib/launchpad_mk2/device.rb,
lib/launchpad_mk2/errors.rb,
lib/launchpad_mk2/logging.rb,
lib/launchpad_mk2/version.rb,
lib/launchpad_mk2/midi_codes.rb,
lib/launchpad_mk2/interaction.rb

Overview

All the fun of launchpad in one module!

See Launchpad::Device for basic access to launchpad input/ouput and Launchpad::Interaction for advanced interaction features.

The following parameters will be used throughout the library, so here are the ranges:

type

type of the button, one of :grid, :up, :down, :left, :right, :session, :user1, :user2, :mixer, :scene1 - :scene8

x/y

x/y coordinate (used when type is set to :grid), 0-7 (from left to right/bottom to top), mandatory when type is set to :grid

color

color of the LED (value between 0 and 127 inclusive)

optional, defaults to <tt>:off</tt>
state

whether the button is pressed or released, :down/:up

Defined Under Namespace

Modules: Logging, MidiCodes Classes: CommunicationError, Device, DeviceBusyError, Interaction, LaunchpadError, NoInputAllowedError, NoOutputAllowedError, NoSuchDeviceError, NoValidColorError, NoValidGridCoordinatesError

Constant Summary collapse

VERSION =
'0.0.1'