Class: Sound

Sound()

Represents a sound that can be played.

Constructor

new Sound()

Source:

Members

arpLoopEnd

The arpTics index we will stop looping at id useArpLoop is true.
Source:

arpLoopStart

The arpTics index we will start looping at if useArpLoop is true.
Source:

arpTics

Array of arp values for the duration of the sound. Each value is the number of notes above or below the note of the sound. Length of the array must always be 32.
Source:

infiniteGain

The gain node of the current infinite sound.
Source:

infiniteNote

The note of the current infinite sound.
Source:

infiniteOsc

The oscillator node of the current infinite sound.
Source:

infiniteStartTime

The start time of the current infinite sound.
Source:

infiniteTicDuration

The duration of a tic in the current infinite sound.
Source:

infiniteTicsPlayed

The number of tics played in the current infinite sound.
Source:

infiniteVolume

The volume of the current infinite sound.
Source:

isPlayingInfiniteSound

Is an infinite sound currently playing on this sound?
Source:

lastArpTic

The last arp tic played.
Source:

lastPitchTic

The last pitch tic played.
Source:

lastVolumeTic

The last volume tic played.
Source:

pitchLoopEnd

The pitchTics index we will stop looping at if usePitchLoop is true.
Source:

pitchLoopStart

The pitchTics index we will start looping at if usePitchLoop is true.
Source:

pitchScale

The pitch scale used by the pitchTics. Value is in cents.
Source:

pitchTics

Array of pitch values for the duration of the sound. Each value must be -10 to 10. Length of the array must always be 32.
Source:

releaseLength

Number of tics to ramp down playing of the sound. Must always be at least 1.
Source:

releaseMode

The ramp type used when ramping down after stopping a sound. 'linear' uses a linear ramp 'expo' uses an exponential ramp
Source:

useArpLoop

Should we loop over the arpTics when playing a sound? If false the last arp tic will be played infinitely once reaching it.
Source:

usePitchLoop

Should we loop over the pitchTics when playing a sound? If false the last pitch tic will be played infinitely once reaching it.
Source:

useVolumeLoop

Should we loop over the volumeTics when playing a sound? If false the last volume tic will be played infinitely once reaching it.
Source:

volumeLoopEnd

The volumeTics index we will stop looping at if useVolumeLoop is true.
Source:

volumeLoopStart

The volumeTics index we will start looping at if useVolumeLoop is true.
Source:

volumeTics

Array of volume values for the duration of the sound. Each value must be 0 to 15. Length of the array must always be 32.
Source:

wave

The Wave index used by this sound. 0 is Sine. 1 is Triangle. 2 is Square. 3 is Sawtooth.
Source: