Class: MicroMIDI::Instructions::Process
- Inherits:
-
Object
- Object
- MicroMIDI::Instructions::Process
- Includes:
- MIDIMessage, MIDIMessage::Process
- Defined in:
- lib/micromidi/instructions/process.rb,
lib/micromidi/instructions/shorthand.rb
Instance Method Summary collapse
- #band_pass_filter(message, property, bandwidth, options = {}) ⇒ Object (also: #only_in, #only, #bp, #bpf)
- #filter(message, property, bandwidth, options = {}) ⇒ Object (also: #f, #mbf)
- #high_pass_filter(message, property, min, options = {}) ⇒ Object (also: #only_above, #except_below, #hp, #hpf)
-
#initialize(state) ⇒ Process
constructor
A new instance of Process.
- #limit(message, property, range, options = {}) ⇒ Object (also: #l)
- #low_pass_filter(message, property, max, options = {}) ⇒ Object (also: #only_below, #except_above, #lp, #lpf)
- #notch_filter(message, property, bandwidth, options = {}) ⇒ Object (also: #band_reject_filter, #except_in, #except, #br, #nf)
- #transpose(message, property, factor, options = {}) ⇒ Object (also: #tp)
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(, property, bandwidth, = {}) BandPassFilter.process(, property, bandwidth, ) 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(, property, bandwidth, = {}) Filter.process(, property, bandwidth, ) 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(, property, min, = {}) HighPassFilter.process(, property, min, ) end |
#limit(message, property, range, options = {}) ⇒ Object Also known as: l
20 21 22 |
# File 'lib/micromidi/instructions/process.rb', line 20 def limit(, property, range, = {}) Limit.process(, property, range, ) 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(, property, max, = {}) LowPassFilter.process(, property, max, ) 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(, property, bandwidth, = {}) NotchFilter.process(, property, bandwidth, ) end |
#transpose(message, property, factor, options = {}) ⇒ Object Also known as: tp
16 17 18 |
# File 'lib/micromidi/instructions/process.rb', line 16 def transpose(, property, factor, = {}) Transpose.process(, property, factor, ) end |