Skip to content

v1.0.2

Latest

Choose a tag to compare

@sethbrasile sethbrasile released this 02 Dec 03:15
· 86 commits to master since this release
2df10b2

Negative pan now moves a sound to the left, and an oscillator created with gain: 0 starts silent.

  • changePanTo and a sampler’s pan accept -1 through 1. In 1.0.1 a negative value played centered.
  • Zero is applied wherever you set it: an oscillator’s gain and frequency, and a filter’s frequency, q and gain. In 1.0.1 a zero was treated as unset and the Web Audio default was used.
  • You can set filter resonance. q reaches the filter’s Q when the oscillator starts, and oscillator.update('lowpass.q', 2) changes it while the oscillator plays. In 1.0.1 q was mapped to a property the filter node doesn’t have.

The release was tested across Ember 2.18 through 7.4. CI results

The README now introduces EZ Web Audio, a standalone TypeScript library designed as a natural replacement for Ember Audio, including in existing Ember apps. Ember Audio remains maintained.

Upgrading from 1.0.1

Coming from 1.0.0? Read the 1.0.1 notes first. Audio now loads through window.fetch, so apps that import fetch from 'fetch' need to add ember-fetch, and tests that mock requests need to intercept window.fetch.

You don’t need to change any code. Two cases sound different.

If you passed a negative pan and want to keep the centered sound you heard in 1.0.1, use 0.

If you passed 0 for an oscillator’s gain or frequency, or for a filter’s frequency, 1.0.1 played the Web Audio default instead: gain 1, 440 Hz for the oscillator and 350 Hz for the filter. Remove the 0 to keep that sound.

Package on npm · Changes since 1.0.1 · Changes since 1.0.0