Releases: Sonoport/soundmodels
Releases · Sonoport/soundmodels
v2.7.1
v2.7.0
new
keyword is now optional on model constructors.- model constructors now accept parameters wrapped in a single options object instead. e.g.:
new Looper({
context: window.audioContext,
onAudioEnd: function () {}
})
v2.6.3
Trigger
constructor can now accept a single options-object argument (key names correspond to existing argument names).numberOfVoices
added as an option toTrigger
.
v2.6.1
- Requiring
soundmodels
' model(s) or effect(s) now accepts a singular or plural namespace. Valid:require('soundmodels/effect/SomeEffect')
require('soundmodels/effects/SomeEffect')
require('soundmodels/model/SomeModel')
require('soundmodels/models/SomeModels')
v2.6.0
- Fix minor JSHint compliance issues.
- Fix(?)
require('../core/webAudioDispatch')
torequire('../core/WebAudioDispatch')
in 4 models (Not entirely clear whether any prior behaviour was broken). - SoundQueue#stop now follows same arity as BaseSound#release, thus allowing the user to control the release parameters of all currently playing voices. (previously: stop(when), now: stop(when, fadeTime, resetOnRelease)).
- Potentially breaking: SoundQueue#pause now defaults release fade time of voices to pseudo-instant 0.01 seconds, instead of BaseSound#release's default of 0.5 seconds.
- Add a
toggle
method to Trigger model (Todo for future: Add toggle method to all other models, write tests).