Class: MicroMIDI::Instructions::Process

Inherits:
Object
  • Object
show all
Defined in:
lib/micromidi/instructions/process.rb,
lib/micromidi/instructions/shorthand.rb

Overview

Commands that deal with processing MIDI messages

Instance Method Summary collapse

Constructor Details

#initialize(state) ⇒ Process

Returns a new instance of Process.

Parameters:



9
10
11
# File 'lib/micromidi/instructions/process.rb', line 9

def initialize(state)
  @state = state
end

Instance Method Details

#band_pass_filter(message, property, bandwidth, options = {}) ⇒ MIDIMessage Also known as: only_in, only, bp, bpf

Band pass filter a message value

Parameters:

  • message (MIDIMessage)
  • property (Symbol, String)
  • bandwidth (Range)
  • options (Hash) (defaults to: {})

Returns:

  • (MIDIMessage)


73
74
75
# File 'lib/micromidi/instructions/process.rb', line 73

def band_pass_filter(message, property, bandwidth, options = {})
  MIDIFX.band_pass_filter(message, property, bandwidth, options)
end

#filter(message, property, bandwidth, options = {}) ⇒ MIDIMessage Also known as: f, mbf

Filter a message value

Parameters:

  • message (MIDIMessage)
  • property (Symbol, String)
  • bandwidth (Range)
  • options (Hash) (defaults to: {})

Returns:

  • (MIDIMessage)


39
40
41
# File 'lib/micromidi/instructions/process.rb', line 39

def filter(message, property, bandwidth, options = {})
  MIDIFX.filter(message, property, bandwidth, options)
end

#high_pass_filter(message, property, min, options = {}) ⇒ MIDIMessage Also known as: only_above, except_below, hp, hpf

High pass filter a message value

Parameters:

  • message (MIDIMessage)
  • property (Symbol, String)
  • min (Fixnum)
  • options (Hash) (defaults to: {})

Returns:

  • (MIDIMessage)


49
50
51
# File 'lib/micromidi/instructions/process.rb', line 49

def high_pass_filter(message, property, min, options = {})
  MIDIFX.high_pass_filter(message, property, min, options)
end

#limit(message, property, range, options = {}) ⇒ MIDIMessage Also known as: l

Limit a message value

Parameters:

  • message (MIDIMessage)
  • property (Symbol, String)
  • range (Range)
  • options (Hash) (defaults to: {})

Returns:

  • (MIDIMessage)


29
30
31
# File 'lib/micromidi/instructions/process.rb', line 29

def limit(message, property, range, options = {})
  MIDIFX.limit(message, property, range, options)
end

#low_pass_filter(message, property, max, options = {}) ⇒ MIDIMessage Also known as: only_below, except_above, lp, lpf

Low pass filter a message value

Parameters:

  • message (MIDIMessage)
  • property (Symbol, String)
  • max (Fixnum)
  • options (Hash) (defaults to: {})

Returns:

  • (MIDIMessage)


61
62
63
# File 'lib/micromidi/instructions/process.rb', line 61

def low_pass_filter(message, property, max, options = {})
  MIDIFX.low_pass_filter(message, property, max, options)
end

#notch_filter(message, property, bandwidth, options = {}) ⇒ MIDIMessage Also known as: band_reject_filter, except_in, except, br, nf

Band reject filter a message value

Parameters:

  • message (MIDIMessage)
  • property (Symbol, String)
  • bandwidth (Range)
  • options (Hash) (defaults to: {})

Returns:

  • (MIDIMessage)


85
86
87
# File 'lib/micromidi/instructions/process.rb', line 85

def notch_filter(message, property, bandwidth, options = {})
  MIDIFX.notch_filter(message, property, bandwidth, options)
end

#transpose(message, property, factor, options = {}) ⇒ MIDIMessage Also known as: tp

Transpose a message value

Parameters:

  • message (MIDIMessage)
  • property (Symbol, String)
  • factor (Fixnum)
  • options (Hash) (defaults to: {})

Returns:

  • (MIDIMessage)


19
20
21
# File 'lib/micromidi/instructions/process.rb', line 19

def transpose(message, property, factor, options = {})
  MIDIFX.transpose(message, property, factor, options)
end