Class: Pachelbel::GainNode
- Defined in:
- lib/project/Pachelbel.rb
Instance Attribute Summary
Attributes inherited from AudioNode
Instance Method Summary collapse
-
#gain ⇒ Object
API Attributes.
- #gain=(value) ⇒ Object
Methods inherited from AudioNode
#_audio_context=, #_index=, #_js_snippet, #connect, #disconnect, #run_js
Instance Method Details
#gain ⇒ Object
API Attributes
128 129 130 |
# File 'lib/project/Pachelbel.rb', line 128 def gain run_js("#{_js_snippet}.gain.value;").to_f end |
#gain=(value) ⇒ Object
132 133 134 |
# File 'lib/project/Pachelbel.rb', line 132 def gain=(value) run_js("#{_js_snippet}.gain.value = #{value.to_f};").to_f end |