Skip to content

Releases: Sonoport/soundmodels

v2.7.1

29 Feb 07:43
Compare
Choose a tag to compare
  • Reorganise directory structure to support source files that can be required directly
  • Include both source files and release bundles to npm & bower
  • update gulp build and dependencies

v2.7.0

22 Feb 08:25
Compare
Choose a tag to compare
  • 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

19 Feb 07:37
Compare
Choose a tag to compare
  • Trigger constructor can now accept a single options-object argument (key names correspond to existing argument names).
  • numberOfVoices added as an option to Trigger.

v2.6.1

15 Feb 09:39
Compare
Choose a tag to compare
  • 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

15 Feb 08:21
Compare
Choose a tag to compare
  • Fix minor JSHint compliance issues.
  • Fix(?) require('../core/webAudioDispatch') to require('../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).