Module: MIDIMessage

Included in:
ChannelMessage, SystemExclusive
Defined in:
lib/midi-message.rb,
lib/midi-message/parser.rb,
lib/midi-message/context.rb,
lib/midi-message/message.rb,
lib/midi-message/messages.rb,
lib/midi-message/constant.rb,
lib/midi-message/note_message.rb,
lib/midi-message/system_message.rb,
lib/midi-message/type_conversion.rb,
lib/midi-message/channel_message.rb,
lib/midi-message/system_exclusive.rb

Defined Under Namespace

Modules: ChannelMessage, Constant, Message, NoteMessage, SystemExclusive, SystemMessage, TypeConversion Classes: ChannelAftertouch, Context, ControlChange, NoteOff, NoteOn, Parser, PitchBend, PolyphonicAftertouch, ProgramChange, SystemCommon, SystemRealtime

Constant Summary collapse

VERSION =
"0.4.9"
ChannelPressure =
ChannelAftertouch
Controller =

shortcut

ControlChange
PolyAftertouch =
PolyphonicAftertouch
PolyPressure =
PolyphonicAftertouch
PolyphonicPressure =
PolyphonicAftertouch

Class Method Summary collapse

Class Method Details

.parse(*args) ⇒ MIDIMessage

Shortcut to Parser.parse


85
86
87
# File 'lib/midi-message/parser.rb', line 85

def self.parse(*args)
  Parser.parse(*args)
end

.with_context(options = {}, &block) ⇒ Object Also known as: with

Shortcut to MIDIMessage::Context.with

Options Hash (options):

  • :channel (Fixnum)
  • :velocity (Fixnum)

146
147
148
# File 'lib/midi-message/context.rb', line 146

def self.with_context(options = {}, &block)
  Context.with(options, &block)
end