Sha256: 124770ca21fc4da0fb74c5ed048815912b6e626cf598c27f416b5136325f117c

Contents?: true

Size: 1.32 KB

Versions: 7

Compression:

Stored size: 1.32 KB

Contents

module SurfaceMaster
  module Launchpad
    module MIDICodes
      # Module defining MIDI status codes.
      # TODO: Some of these are fairly generic?  Can we hoist them?
      module Status
        NIL           = 0x00
        OFF           = 0x80
        ON            = 0x90
        MULTI         = 0x92
        CC            = 0xB0
      end

      # Module defininig MIDI data 1 (note) codes for control buttons.
      module Control
        UP            = 0x68
        DOWN          = 0x69
        LEFT          = 0x6A
        RIGHT         = 0x6B
        SESSION       = 0x6C
        USER1         = 0x6D
        USER2         = 0x6E
        MIXER         = 0x6F
      end

      # Module defininig MIDI data 1 (note) codes for scene buttons.
      # TODO: Rename to match Mk2...
      module Scene
        SCENE1        = 0x59
        SCENE2        = 0x4f
        SCENE3        = 0x45
        SCENE4        = 0x3b
        SCENE5        = 0x31
        SCENE6        = 0x27
        SCENE7        = 0x1d
        SCENE8        = 0x13
      end

      # Module defining MIDI data 2 (velocity) codes.
      module Velocity
        TEST_LEDS     = 0x7C
      end

      # Module defining MIDI data 2 codes for selecting the grid layout.
      module GridLayout
        XY            = 0x01
        DRUM_RACK     = 0x02
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
surface_master-0.6.0 lib/surface_master/launchpad/midi_codes.rb
surface_master-0.5.1 lib/surface_master/launchpad/midi_codes.rb
surface_master-0.5.0 lib/surface_master/launchpad/midi_codes.rb
surface_master-0.4.1 lib/surface_master/launchpad/midi_codes.rb
surface_master-0.4.0 lib/surface_master/launchpad/midi_codes.rb
surface_master-0.2.1 lib/surface_master/launchpad/midi_codes.rb
surface_master-0.2.0 lib/surface_master/launchpad/midi_codes.rb