Christopher Willis-Ford
068aca6136
chore: lint fixes
2023-12-15 14:44:01 -08:00
Eric Rosenbaum
3dff623735
Remove extra wait time in set volume
2019-09-25 13:50:40 -04:00
adroitwhiz
c1182e5106
Don't setValueAtTime in volume effect
2019-05-01 03:23:17 -04:00
Eric Rosenbaum
59ff2ad927
Merge pull request #101 from mzgoddard/clipless-firefox
...
schedule stop DECAY in the future for firefox
2018-06-25 15:39:17 -04:00
Michael "Z" Goddard
e01a32a83d
use AudioEngine.currentTime and DECAY_WAIT in PanEffect, etc
2018-06-25 14:27:21 -04:00
Michael "Z" Goddard
ee73fd7a8a
rename DECAY_* constants to DECAY_WAIT and DECAY_DURATION
2018-06-25 14:01:15 -04:00
Michael "Z" Goddard
fb355abb7d
schedule stop DECAY in the future for firefox
...
Firefox at this time cannot smoothly schedule audio parameter changes
to happen immediately. Immediately scheduled changes clip when firefox
tries to catch up. Smoothly fading out a sound immediately instead of
clipping the end of the sound, in firefox at this time clips the sound
between where the fade out starts and where firefox catches up and
finishes the scheduled fade.
2018-06-25 13:15:19 -04:00
Michael "Z" Goddard
97e2996090
add missing docs: SoundPlayer, AudioEngine, Effect.name
2018-06-22 14:43:37 -04:00
Michael "Z" Goddard
c12a1a4766
comment SoundBank and EffectChain
2018-06-21 16:56:11 -04:00
Michael "Z" Goddard
7cef4e60a8
pass main EffectChain to SoundBank from Engine.createBank
2018-06-21 16:56:11 -04:00
Michael "Z" Goddard
d40564d61a
make EffectChain standalone
...
- EffectChain knows of audioEngine so it can create Effects
- EffectChain connects to the target specified by .connect(target)
- EffectChain can connect to other Effects or EffectChains
- EffectChain can clone itself and connect to the original's target
- Add EffectChain.update to mirror Effects API
- Use deepest setting first in setEffectsFromTarget
2018-06-21 16:56:10 -04:00
Corey Frang
f5c219ceb3
First Draft SoundBank + EffectChain
2018-06-21 16:56:10 -04:00
Corey Frang
18cb9787ae
wip: greenplayer tests
2018-06-21 16:01:35 -04:00
Michael "Z" Goddard
16883f60f8
support null AudioPlayer in Effect
...
Support null AudioPlayer so Effect chains can be declared without it.
2018-06-11 16:16:13 -04:00
Michael "Z" Goddard
0059ff53e1
start audio param transition at now
...
Explicitly start the param transitions at the audio context's now time.
2018-06-11 16:16:13 -04:00
Michael "Z" Goddard
841b029d7f
streamline connecting Effects
...
- Add sanity checks to connect
2018-06-08 12:39:30 -04:00
Michael "Z" Goddard
1d9e530df2
add VolumeEffect
2018-06-06 14:40:21 -04:00
Michael "Z" Goddard
8a75061a19
fix Effect bugs
2018-06-06 14:38:26 -04:00
Michael "Z" Goddard
618239654f
fixup! extend existing effects from Effect
2018-06-05 14:42:46 -04:00
Michael "Z" Goddard
5b8f0fce65
fixup! extend existing effects from Effect
2018-06-05 13:59:53 -04:00
Michael "Z" Goddard
61e54b2457
extend existing effects from Effect
...
Add Effect class that manages connecting the effects in a chain from
their AudioPlayer to the AudioEngine.
2018-06-05 12:46:29 -04:00
Eric Rosenbaum
d2b6cb40e3
Disconnect audio nodes on dispose
2018-01-09 18:18:49 -05:00
Eric Rosenbaum
734f976585
New name and value for DECAY_TIME
2017-12-20 15:17:26 -05:00
Eric Rosenbaum
1c8a545a8a
Set gain using setTargetAtTime
2017-12-20 12:07:53 -05:00
Eric Rosenbaum
68d5ac2e34
Lint
2017-07-21 12:10:32 -04:00
Eric Rosenbaum
89cdb92c23
Implement panning without panner node
2017-07-21 12:04:43 -04:00
Eric Rosenbaum
b7ff586ca1
Inline the interval to frequency function
2017-06-22 11:06:12 -04:00
Eric Rosenbaum
0bc892f03d
Use “audioContext” to refer to webAudioContext
2017-06-22 10:51:57 -04:00
Eric Rosenbaum
43e0408434
Lint
2017-06-21 10:46:42 -04:00
Eric Rosenbaum
03034dd2f7
Remove dependency on Tone.js
2017-06-20 16:50:02 -04:00
Eric Rosenbaum
865d3cde88
Correctly call this.intervalToFrequencyRatio
2017-06-19 17:41:08 -04:00
Eric Rosenbaum
e515bf4026
Cleanup
2017-06-19 17:40:53 -04:00
Eric Rosenbaum
5e6e33264d
Remove tone.js dependency
2017-06-19 17:25:11 -04:00
Eric Rosenbaum
ff6cd4a094
Remove all audio effects except pitch and pan
2017-06-19 14:33:23 -04:00
Ray Schamp
9874cf006f
Update to use ES6 class syntax
2017-04-18 12:22:06 -04:00
Ray Schamp
e50ba400f9
Update syntax for eslint-config-scratch
2017-04-17 11:52:12 -04:00
Ray Schamp
ee8462f53f
Pass with eslint --fix
2017-04-17 11:52:12 -04:00
Eric Rosenbaum
b68c84af02
check for own property in for (var _ in _ )
2017-02-02 15:10:10 -05:00
Eric Rosenbaum
1a26fecca1
Comment all the things!
2017-02-02 14:53:17 -05:00
Eric Rosenbaum
7483cbdb2f
JSDoc comments
2017-02-01 18:02:04 -05:00
Eric Rosenbaum
e1d478244d
audioengine loads sounds indexed by md5
...
audioplayers store list of their own active sound players indexed by md5 of the sound. sound players are created when the sound is played, deleted when it ends, and removed from the list of active sound players. the pitch effect uses this list of active sound players to set their playback ratios.
2017-01-30 11:09:45 -05:00
Eric Rosenbaum
c54fc0f154
comments
2017-01-10 18:03:15 -05:00
Eric Rosenbaum
b99b639cd2
set wet value for echo to 0.5
2017-01-04 15:30:20 -05:00
Eric Rosenbaum
645a080b89
lint
2016-11-30 11:29:00 -05:00
Eric Rosenbaum
9120c3d430
make objects for each effect
2016-11-29 18:33:09 -05:00