JS::WebAudio::Synth class of PicoRuby
Singleton methods
new
JS::WebAudio::Synth.new(?voice_count: Integer, ?master_volume: Float, ?context: js_node_t?) -> void
Instance methods
active_voices
instance.active_voices() -> ::Array[Voice::voice_snapshot_t]
channel_state
instance.channel_state(?source: source_t, channel: Integer) -> snapshot_t
cleanup_finished_voices
instance.cleanup_finished_voices() -> nil
cleanup_task_running?
instance.cleanup_task_running?() -> bool
close
instance.close() -> self
handle
instance.handle(MIDIBASE::event_t event, ?source: source_t, ?priority: Integer, ?timestamp_us: Integer?, **MIDIBASE::context_value_t context) -> bool
handle_midi
instance.handle_midi(MIDIBASE::event_t event, source_t source, Integer priority, Integer? timestamp_us) -> bool
noise_buffer
instance.noise_buffer() -> js_node_t
reset
instance.reset() -> bool
resume
instance.resume() -> self
stop
instance.stop() -> self
stopped?
instance.stopped?() -> bool
update_tone
instance.update_tone(?source: source_t, channel: Integer, **tone_attributes_t attributes) -> snapshot_t
voice_analysers
instance.voice_analysers() -> ::Array[js_node_t]
voice_ended
instance.voice_ended(Voice voice, Integer generation) -> bool?
Attr accessors
allocator (reader)
instance.allocator -> MIDIBASE::VoiceAllocator
context (reader)
instance.context -> js_node_t
mix_analyser (reader)
instance.mix_analyser -> js_node_t