PropertyMultiClip¶
Overview¶
A sound generator that plays sounds each time a property changes to a new value.
@author John Blanco (PhET Interactive Simulations)
Class PropertyMultiClip¶
Constructor¶
new PropertyMultiClip( property : Property<T>, valueToSoundMap : Map<T, WrappedAudioBuffer>, providedOptions? : PropertyMultiClipOptions )¶
Instance Methods¶
dispose()¶
dispose function
Type PropertyMultiClipOptions¶
- linkLazily?: boolean
Controls whether the linkage to the property is "lazy", meaning that the first sound isn't played until a change of value occurs. If set to false, this will attempt to play a sound when the link is initially set up. - & MultiClipOptions
Source Code¶
See the source for PropertyMultiClip.ts in the tambo repository.