JS::WebAudio module of PicoRuby

Type aliases

source_t

MIDIBASE::Router::source_t

js_node_t

untyped

tone_value_t

String | Integer | Float

validated_tone_value_t

String | Float

tone_key_t

:waveform | :attack | :decay | :sustain | :release | :detune | :cutoff | :resonance

tone_t

{
      waveform: String,
      attack: Float,
      decay: Float,
      sustain: Float,
      release: Float,
      detune: Float,
      cutoff: Float,
      resonance: Float
    }

tone_attributes_t

Hash[tone_key_t, tone_value_t]

snapshot_t

{
      source: js_node_t,
      channel: Integer,
      volume: Integer,
      expression: Integer,
      pan: Integer,
      pitch_bend: Integer,
      tone: tone_t,
      percussion: bool
    }

Singleton methods

create_context

JS::WebAudio.create_context() -> js_node_t

supported?

JS::WebAudio.supported?() -> bool
Tags: