Module: MIDIEvents

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

Defined Under Namespace

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

Constant Summary collapse

VERSION =
'0.6.1'.freeze
ChannelPressure =
ChannelAftertouch
Controller =

shortcut

ControlChange
PolyAftertouch =
PolyphonicAftertouch
PolyPressure =
PolyphonicAftertouch
PolyphonicPressure =
PolyphonicAftertouch

Class Method Summary collapse

Class Method Details

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

Shortcut to MIDIMessage::Context.with

Parameters:

  • options (Hash) (defaults to: {})
  • block (Proc)

Options Hash (options):

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


154
155
156
# File 'lib/midi-events/context.rb', line 154

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