Class: Pachelbel::GainNode

Inherits:
AudioNode show all
Defined in:
lib/project/Pachelbel.rb

Instance Attribute Summary

Attributes inherited from AudioNode

#audio_context

Instance Method Summary collapse

Methods inherited from AudioNode

#_audio_context=, #_index=, #_js_snippet, #connect, #disconnect, #run_js

Instance Method Details

#gainObject

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