class MicroMIDI::Instructions::Process

Commands that deal with processing MIDI messages

Public Class Methods

new(state) click to toggle source

@param [State] state

# File lib/micromidi/instructions/process.rb, line 9
def initialize(state)
  @state = state
end

Public Instance Methods

band_pass_filter(message, property, bandwidth, options = {}) click to toggle source

Band pass filter a message value @param [MIDIMessage] message @param [Symbol, String] property @param [Range] bandwidth @param [Hash] options @return [MIDIMessage]

# 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
Also aliased as: only_in, only, bp, bpf
band_reject_filter(message, property, bandwidth, options = {})
Alias for: notch_filter
bp(message, property, bandwidth, options = {})
Alias for: band_pass_filter
bpf(message, property, bandwidth, options = {})
Alias for: band_pass_filter
br(message, property, bandwidth, options = {})
Alias for: notch_filter
except(message, property, bandwidth, options = {})
Alias for: notch_filter
except_above(message, property, max, options = {})
Alias for: low_pass_filter
except_below(message, property, min, options = {})
Alias for: high_pass_filter
except_in(message, property, bandwidth, options = {})
Alias for: notch_filter
f(message, property, bandwidth, options = {})
Alias for: filter
filter(message, property, bandwidth, options = {}) click to toggle source

Filter a message value @param [MIDIMessage] message @param [Symbol, String] property @param [Range] bandwidth @param [Hash] options @return [MIDIMessage]

# File lib/micromidi/instructions/process.rb, line 39
def filter(message, property, bandwidth, options = {})
  MIDIFX.filter(message, property, bandwidth, options)
end
Also aliased as: f, mbf
high_pass_filter(message, property, min, options = {}) click to toggle source

High pass filter a message value @param [MIDIMessage] message @param [Symbol, String] property @param [Fixnum] min @param [Hash] options @return [MIDIMessage]

# 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
Also aliased as: only_above, except_below, hp, hpf
hp(message, property, min, options = {})
Alias for: high_pass_filter
hpf(message, property, min, options = {})
Alias for: high_pass_filter
l(message, property, range, options = {})
Alias for: limit
limit(message, property, range, options = {}) click to toggle source

Limit a message value @param [MIDIMessage] message @param [Symbol, String] property @param [Range] range @param [Hash] options @return [MIDIMessage]

# File lib/micromidi/instructions/process.rb, line 29
def limit(message, property, range, options = {})
  MIDIFX.limit(message, property, range, options)
end
Also aliased as: l
low_pass_filter(message, property, max, options = {}) click to toggle source

Low pass filter a message value @param [MIDIMessage] message @param [Symbol, String] property @param [Fixnum] max @param [Hash] options @return [MIDIMessage]

# 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
Also aliased as: only_below, except_above, lp, lpf
lp(message, property, max, options = {})
Alias for: low_pass_filter
lpf(message, property, max, options = {})
Alias for: low_pass_filter
mbf(message, property, bandwidth, options = {})
Alias for: filter
nf(message, property, bandwidth, options = {})
Alias for: notch_filter
notch_filter(message, property, bandwidth, options = {}) click to toggle source

Band reject filter a message value @param [MIDIMessage] message @param [Symbol, String] property @param [Range] bandwidth @param [Hash] options @return [MIDIMessage]

# File lib/micromidi/instructions/process.rb, line 85
def notch_filter(message, property, bandwidth, options = {})
  MIDIFX.notch_filter(message, property, bandwidth, options)
end
Also aliased as: band_reject_filter, except_in, except, br, nf
only(message, property, bandwidth, options = {})
Alias for: band_pass_filter
only_above(message, property, min, options = {})
Alias for: high_pass_filter
only_below(message, property, max, options = {})
Alias for: low_pass_filter
only_in(message, property, bandwidth, options = {})
Alias for: band_pass_filter
tp(message, property, factor, options = {})
Alias for: transpose
transpose(message, property, factor, options = {}) click to toggle source

Transpose a message value @param [MIDIMessage] message @param [Symbol, String] property @param [Fixnum] factor @param [Hash] options @return [MIDIMessage]

# File lib/micromidi/instructions/process.rb, line 19
def transpose(message, property, factor, options = {})
  MIDIFX.transpose(message, property, factor, options)
end
Also aliased as: tp