Repository navigation
Negative pan now moves a sound to the left, and an oscillator created with gain: 0 starts silent.
changePanToand a sampler’spanaccept-1through1. In 1.0.1 a negative value played centered.- Zero is applied wherever you set it: an oscillator’s
gainandfrequency, and a filter’sfrequency,qandgain. In 1.0.1 a zero was treated as unset and the Web Audio default was used. - You can set filter resonance.
qreaches the filter’sQwhen the oscillator starts, andoscillator.update('lowpass.q', 2)changes it while the oscillator plays. In 1.0.1qwas 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.