Class: MicroMIDI::Instructions::Process

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

Instance Method Summary collapse

Constructor Details

#initialize(state) ⇒ Process

Returns a new instance of Process.



12
13
14
# File 'lib/micromidi/instructions/process.rb', line 12

def initialize(state)
  @state = state
end

Instance Method Details

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



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

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

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



24
25
26
# File 'lib/micromidi/instructions/process.rb', line 24

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

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



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

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

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



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

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

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



34
35
36
# File 'lib/micromidi/instructions/process.rb', line 34

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

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



46
47
48
# File 'lib/micromidi/instructions/process.rb', line 46

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

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



16
17
18
# File 'lib/micromidi/instructions/process.rb', line 16

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