SoundClipChord¶
Overview¶
SoundClipChord plays a chord built from the given sound.
@author Michael Kauzmann (PhET Interactive Simulations)
Class SoundClipChord¶
Constructor¶
new SoundClipChord( sound : WrappedAudioBuffer, providedOptions? : SoundClipChordOptions )¶
Instance Methods¶
play()¶
Play the chord.
stop()¶
Stop the chord if it's playing. This is mostly here to complete the TSoundPlayer interface.
dispose()¶
Release any memory references in order to avoid memory leaks.
Instance Properties¶
isPlayingProperty : TReadOnlyProperty<boolean>¶
(readonly)
flag indicating whether this is currently playing
Type SoundClipChordOptions¶
- soundClipOptions?: SoundClipOptions | null
options passed along to each SoundClip used in the chord - arpeggiate?: boolean
When true, the chord will play with a delay between each note, starting with the first note in chordPlaybackRates and ending with the last. - arpeggiateTime?: number
in seconds, the total time that it will take the chord to arpeggiate - chordPlaybackRates?: number[]
playback rates for the notes in the chord - & SoundGeneratorOptions
Source Code¶
See the source for SoundClipChord.ts in the tambo repository.