Class: MicroMIDI::Instructions::Process
- Inherits:
-
Object
- Object
- MicroMIDI::Instructions::Process
- Defined in:
- lib/micromidi/instructions/process.rb,
lib/micromidi/instructions/shorthand.rb
Overview
Commands that deal with processing MIDI messages
Instance Method Summary collapse
-
#band_pass_filter(message, property, bandwidth, options = {}) ⇒ MIDIMessage
(also: #only_in, #only, #bp, #bpf)
Band pass filter a message value.
-
#filter(message, property, bandwidth, options = {}) ⇒ MIDIMessage
(also: #f, #mbf)
Filter a message value.
-
#high_pass_filter(message, property, min, options = {}) ⇒ MIDIMessage
(also: #only_above, #except_below, #hp, #hpf)
High pass filter a message value.
-
#initialize(state) ⇒ Process
constructor
A new instance of Process.
-
#limit(message, property, range, options = {}) ⇒ MIDIMessage
(also: #l)
Limit a message value.
-
#low_pass_filter(message, property, max, options = {}) ⇒ MIDIMessage
(also: #only_below, #except_above, #lp, #lpf)
Low pass filter a message value.
-
#notch_filter(message, property, bandwidth, options = {}) ⇒ MIDIMessage
(also: #band_reject_filter, #except_in, #except, #br, #nf)
Band reject filter a message value.
-
#transpose(message, property, factor, options = {}) ⇒ MIDIMessage
(also: #tp)
Transpose a message value.
Constructor Details
#initialize(state) ⇒ Process
Returns a new instance of Process.
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
73 74 75 |
# File 'lib/micromidi/instructions/process.rb', line 73 def band_pass_filter(, property, bandwidth, = {}) MIDIFX.band_pass_filter(, property, bandwidth, ) end |
#filter(message, property, bandwidth, options = {}) ⇒ MIDIMessage Also known as: f, mbf
Filter a message value
39 40 41 |
# File 'lib/micromidi/instructions/process.rb', line 39 def filter(, property, bandwidth, = {}) MIDIFX.filter(, property, bandwidth, ) end |
#high_pass_filter(message, property, min, options = {}) ⇒ MIDIMessage Also known as: only_above, except_below, hp, hpf
High pass filter a message value
49 50 51 |
# File 'lib/micromidi/instructions/process.rb', line 49 def high_pass_filter(, property, min, = {}) MIDIFX.high_pass_filter(, property, min, ) end |
#limit(message, property, range, options = {}) ⇒ MIDIMessage Also known as: l
Limit a message value
29 30 31 |
# File 'lib/micromidi/instructions/process.rb', line 29 def limit(, property, range, = {}) MIDIFX.limit(, property, range, ) end |
#low_pass_filter(message, property, max, options = {}) ⇒ MIDIMessage Also known as: only_below, except_above, lp, lpf
Low pass filter a message value
61 62 63 |
# File 'lib/micromidi/instructions/process.rb', line 61 def low_pass_filter(, property, max, = {}) MIDIFX.low_pass_filter(, property, max, ) 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
85 86 87 |
# File 'lib/micromidi/instructions/process.rb', line 85 def notch_filter(, property, bandwidth, = {}) MIDIFX.notch_filter(, property, bandwidth, ) end |
#transpose(message, property, factor, options = {}) ⇒ MIDIMessage Also known as: tp
Transpose a message value
19 20 21 |
# File 'lib/micromidi/instructions/process.rb', line 19 def transpose(, property, factor, = {}) MIDIFX.transpose(, property, factor, ) end |