Class: Browser::Audio::Node::BiquadFilter
- Defined in:
- opal/browser/audio/node.rb
Constant Summary collapse
- TYPES =
i(lowpass highpass bandpass lowshelf highshelf peaking notch allpass)
Instance Method Summary collapse
-
#initialize(audio_context) ⇒ BiquadFilter
constructor
A new instance of BiquadFilter.
- #type ⇒ Object
- #type=(type) ⇒ Object
Methods inherited from Base
#connect, #disconnect, #method_missing, #respond_to_missing?
Constructor Details
#initialize(audio_context) ⇒ BiquadFilter
Returns a new instance of BiquadFilter.
95 96 97 |
# File 'opal/browser/audio/node.rb', line 95 def initialize(audio_context) super `#{audio_context.to_n}.createBiquadFilter()` end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Browser::Audio::Node::Base
Instance Method Details
#type ⇒ Object
107 108 109 |
# File 'opal/browser/audio/node.rb', line 107 def type `#@native.type` end |
#type=(type) ⇒ Object
99 100 101 102 103 104 105 |
# File 'opal/browser/audio/node.rb', line 99 def type=(type) unless TYPES.include?(type) raise ArgumentError, "type #{type} doesn't exists" end `#@native.type = type` end |