JS::WebAudio::Voice class of PicoRuby

Type aliases

status_t

:idle | :active | :releasing

voice_snapshot_t

{
        id: Integer,
        source: js_node_t,
        channel: Integer?,
        note: Integer,
        status: Voice::status_t
      }

Singleton methods

new

JS::WebAudio::Voice.new(Synth owner, js_node_t context, Integer id) -> void

Instance methods

cleanup_finished

instance.cleanup_finished(Float now) -> bool

ended

instance.ended(Integer generation) -> void

release

instance.release() -> self

silence

instance.silence() -> self

snapshot

instance.snapshot() -> voice_snapshot_t

start

instance.start(source_t source, Channel channel, Integer note, Integer velocity) -> self

update_pitch

instance.update_pitch() -> void

update_tone

instance.update_tone(::Array[tone_key_t] changed_keys) -> void

Attr accessors

id (reader)

instance.id -> Integer

analyser (reader)

instance.analyser -> js_node_t

source (reader)

instance.source -> source_t

channel (reader)

instance.channel -> Channel?

note (reader)

instance.note -> Integer

generation (reader)

instance.generation -> Integer

status (reader)

instance.status -> status_t
Tags: class