Skip to content

Sound module

syeyoung edited this page Jul 16, 2020 · 1 revision

Sound Module

Sound module contains blocks defined in sound tab. Not to be confused with music module

Sound module can be imported via

Require "Sound";

Defined Functions

Sound::stopAll() : Stop all sounds

Sound::startPlay(name: Text) : start playing sound name.

Sound::addPitchEffect(effect: Text) : add to pitch effect

Sound::getVolume() : get Volume (Expression only)

Sound::playWait(name: Text) : start playing sound name and wait until play finishes

Sound::addPanEffect(effect: Text) : add to pan effect

Sound::setVolume(volume: Text) : set volume to volume

Sound::setPanEffect(effect: Text) : set pan effect

Sound::setPitchEffect(effect: Text) : set pitch effect

Sound::clearEffects() : clear all sound effects

Sound::addVolume(volume: Text) : add to volume

Defined Events

N/A

Clone this wiki locally