Commit graph

2780 commits

Author SHA1 Message Date
Yotam Mann
cf8965f921 fixing case where buffer is not set
previously would prefix "/"
2019-12-09 17:43:58 -05:00
Yotam Mann
409fb929af skipping isSilent test 2019-12-06 18:00:26 -05:00
Yotam Mann
d4f47b7cd8 removing unused vars 2019-12-06 17:29:06 -05:00
Yotam Mann
2295ce674e whoops: made it so it only funs one test 2019-12-06 17:23:02 -05:00
Yotam Mann
9f51cb5293 exporting BaseContext 2019-12-06 17:13:22 -05:00
Yotam Mann
c66f2d5e89 feat: ramps must be at least 1 sample long
otherwise just uses a setValueAtTime
2019-12-06 16:38:35 -05:00
Yotam Mann
8a508f2405 feat: Reverb generate is automatically called when decay or preDelay values are changed
`ready` promise resoves when reverb values have been updated.
2019-12-06 16:37:40 -05:00
Yotam Mann
8540c44459 needs to set detune outside of signal being overridden 2019-12-06 14:10:33 -05:00
Yotam Mann
660915680a feat: when the signal is overridden it should not schedule any change in values
fixes #585
2019-12-06 12:55:30 -05:00
Yotam Mann
e955846bb2 moving docs from #584 to typescript 2019-12-04 10:52:40 -05:00
Yotam Mann
b1c5a3c8c7 docs: fixing example 2019-11-22 15:46:46 -05:00
Yotam Mann
ba311dbe7b putting settings into constructor object
slight optimization over setting them all individually
2019-11-22 13:26:16 -05:00
Yotam Mann
0f8a282dfa fixing stereo widener 2019-11-22 13:25:50 -05:00
Yotam Mann
fef7bde5a5 rounding up the number of voices it keeps 2019-11-22 11:19:03 -05:00
Yotam Mann
c80f8a89f9 optimization: also storing the wave
turns out that the call to `createPeriodicWave` is the most expensive part.
2019-11-22 11:18:49 -05:00
Yotam Mann
94de75c1b4 no need to guard against the part being undefined now 2019-11-21 13:19:44 -05:00
Yotam Mann
15d5580cb3 schedule all the events at the end of the constructor 2019-11-21 13:19:03 -05:00
Yotam Mann
11f7c2207a test the initial state 2019-11-21 11:08:22 -05:00
Yotam Mann
16d71718dd removing case that can't happen
there is an event added in the constructor at time 0 and the time can't be less than 0
2019-11-21 11:04:38 -05:00
Yotam Mann
8bb53b3eb1 state time can't be less than 0 2019-11-21 11:04:00 -05:00
Yotam Mann
4d90c9cba8 test: adding coverage tests
should return undefined when not open
2019-11-21 10:58:04 -05:00
Yotam Mann
754e853cc2 make sure the playbackRate is never 0 2019-11-21 10:56:53 -05:00
Yotam Mann
505ee32780 removing skipped test 2019-11-21 10:49:34 -05:00
Yotam Mann
ea9b1bf6c7 testing range only if the buffer is loaded 2019-11-19 15:53:54 -05:00
Yotam Mann
28349e1868 test the range of the loopStart and loopEnd values 2019-11-19 15:44:44 -05:00
Yotam Mann
548c814a9a make sure the panner stays in the specific range 2019-11-19 15:44:34 -05:00
Yotam Mann
cfdb5a42c8 throw an error if the time is not increasing 2019-11-18 15:18:02 -05:00
Yotam Mann
e0248afb1c using floating point comparisons 2019-11-18 15:16:04 -05:00
Yotam Mann
abee380fc2 reverse works at different sampling rates 2019-11-18 15:11:57 -05:00
Yotam Mann
b00853dc58 make sure time scheduling is always increasing in time 2019-11-18 14:52:53 -05:00
Yotam Mann
e055abf172 fixing test to work at different sample rates 2019-11-18 14:52:00 -05:00
Yotam Mann
091fe6bf01 Make sure events are scheduling in increasing time order
addresses #581
2019-11-18 14:51:43 -05:00
Yotam Mann
25004d2b2f fixing typo, and cancelling events before next one is added 2019-11-18 14:48:24 -05:00
Yotam Mann
09dc29191b linting 2019-11-17 13:09:19 -05:00
Yotam Mann
8ec69d42de make sure there is a slash between the baseurl and the url 2019-11-17 11:33:45 -05:00
Yotam Mann
482a9a8d6e docs: correcting description 2019-11-17 11:09:42 -05:00
Yotam Mann
429b0898f1 fixing options 2019-11-16 19:07:47 -05:00
Yotam Mann
5220c373e4 simplifying the example slightly 2019-11-16 17:13:26 -05:00
Yotam Mann
67f483fc72 removing EqualPowerGain and Modulo
BREAKING CHANGE: Removing EqualPowerGain and Modulo. Neither of those classes are used internally anymore.
2019-11-16 16:44:16 -05:00
Yotam Mann
e745259222 exporting loaded promise from ToneAudioBuffer 2019-11-16 16:42:19 -05:00
Yotam Mann
519b7ca6a8 updating TransportTimelineSignal name 2019-11-16 16:36:51 -05:00
Yotam Mann
86853fbd10 feat: Renaming TransportTimelineSignal to SyncedSignal
BREAKING CHANGE: TransportTimelineSignal is now called SyncedSignal
2019-11-14 17:04:07 -05:00
Yotam Mann
0997823e24 converting TransportTimelineSignal to typescript 2019-11-14 16:55:25 -05:00
Yotam Mann
fdca6ef57d removing comment 2019-11-14 16:26:47 -05:00
Yotam Mann
b1b85206f4 updating name string 2019-11-14 13:21:41 -05:00
Yotam Mann
4b0827bf43 removing old js file 2019-11-14 12:34:15 -05:00
Yotam Mann
76b8e84ae4 testing that toString() returns the class name 2019-11-14 12:30:17 -05:00
Yotam Mann
3fb5ca8727 toMaster() -> toDestination() 2019-11-14 12:29:53 -05:00
Yotam Mann
5fd8009c87 correcting ToneAudioNode's name 2019-11-14 12:21:58 -05:00
Yotam Mann
3c97ecebe9 removing unused imports 2019-11-14 12:15:47 -05:00