Sha256: 839baa8c12ec7035aaa7313154a804cb8f806a000670c34a563ff077901b215e

Contents?: true

Size: 928 Bytes

Versions: 1

Compression:

Stored size: 928 Bytes

Contents

module LaunchpadMk2
  
  # Module defining constants for MIDI codes.
  module MidiCodes
    
    # Module defining MIDI status codes.
    module Status
      NIL           = 0x00
      OFF           = 0x80
      ON            = 0x90
      CC            = 0xB0
    end
    
    # Module defininig MIDI data 1 (note) codes for control buttons.
    module ControlButton
      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.
    module SceneButton
      SCENE1        = 0x59
      SCENE2        = 0x4F
      SCENE3        = 0x45
      SCENE4        = 0x3B
      SCENE5        = 0x31
      SCENE6        = 0x27
      SCENE7        = 0x1D
      SCENE8        = 0x13
    end
    
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
launchpad_mk2-0.0.1 lib/launchpad_mk2/midi_codes.rb