Commit graph

87 commits

Author SHA1 Message Date
Yotam Mann
3196b2d68e
Merge pull request #968 from marcelblum/buffer-player-timekeeping
fix attempt #2 for AudioBufferSourceNode stop time miscalculation, with updated tests
2022-01-15 09:53:08 -05:00
Yotam Mann
aad2d8c890 Updating docs on Player.reverse
fixes #986
2021-12-20 11:59:20 -05:00
Yotam Mann
444d6179c4 Don't reschedule source when offset is very small
This offset is due to floating point error

Fixes #999
Fixes #944
2021-12-19 11:21:27 -05:00
Marcel Blum
8c47a42290 test fix for #912 2021-12-01 11:54:32 -05:00
Marcel Blum
05a4ef7cf2 better fix for #912 by stopping only the most recently created source on player.restart(); reverting prior fix attempt which didn't address all possible cases adequately 2021-10-29 22:27:55 -04:00
Yotam Mann
26392c29a7 Adding Players.add example
Fixes #916
2021-07-25 08:43:18 -07:00
Yotam Mann
d788183425 removing computedOffset calculation when synced
fixes #721
2020-09-23 22:11:38 -04:00
Yotam Mann
826a51d594 clearing the 'implicitEnd' event off the timeline
fixes #711
2020-08-22 10:13:32 -04:00
Yotam Mann
37c9f638de clamp the overlap range 2020-07-19 10:16:30 -07:00
Yotam Mann
6ed48a9f96 updating examples 2020-06-07 20:14:48 -04:00
Yotam Mann
c4e4b61d93 grainSize should be grainSize property not the elapsed time
fixes #665
2020-05-03 12:13:11 -04:00
Yotam Mann
f17249691d feat: updating all examples
now in the form Tone.Something instead of using `import { Something } from "tone"`. It makes the example runner on the docs page work much faster
2020-04-16 22:24:18 -04:00
Yotam Mann
e4156eec8d linting 2020-04-16 21:46:55 -04:00
Yotam Mann
f3d651272c skipping test in firefox 2020-04-14 23:54:22 -04:00
Yotam Mann
0f47174272 increasing duration of test
was failing in FF
2020-04-14 23:44:37 -04:00
Yotam Mann
766ef638d3 making sure that the onerror returns the error 2020-01-30 16:15:28 -05:00
Yotam Mann
bb6a6fdef6 feat: adding onerror to ToneAudioBuffers and Players 2020-01-30 14:25:06 -05:00
Yotam Mann
dc53f9272b feat: adding onerror to GrainPlayer when url can't load 2020-01-29 23:37:36 -05:00
Yotam Mann
0bc28e742a using url instead of buffer makes it more consistent with other url loading APIs
feat: adding onerror to ToneBufferSource and Player
2020-01-29 23:34:05 -05:00
Yotam Mann
88dae77c90 removing 'Connect.ts' and updating dependencies
was a pass through and caused other problems of redefining the variable
2020-01-08 14:12:11 -05:00
Yotam Mann
3df7942908 keeping the loopStart/End within range 2019-12-24 00:17:25 -05:00
Yotam Mann
bbef5f5dec fixing edge case where computed offset is equal to the duration of the buffer
sets it to 0 in this case.
2019-12-22 00:38:21 -05:00
Yotam Mann
4e1b385a48 fixing typos 2019-12-22 00:37:51 -05:00
Yotam Mann
f1cda064b5 only set the player as stopped when it's still scheduled as playing
addresses #594
2019-12-21 15:27:10 -05:00
Yotam Mann
7606a5d28b updating test name 2019-12-19 17:13:14 -05:00
Yotam Mann
d22747cc69 Adding more range guards 2019-12-17 12:42:40 -05:00
Yotam Mann
389ccf8722 using assert instead of this.assert
removing this.assert from Tone.js classes
2019-12-16 15:58:31 -05:00
Yotam Mann
ef0aaec8ee Refactor source
adding `_restart` is an internal protected abstract method for all sources.
2019-12-14 16:09:24 -05:00
Yotam Mann
e955846bb2 moving docs from #584 to typescript 2019-12-04 10:52:40 -05:00
Yotam Mann
754e853cc2 make sure the playbackRate is never 0 2019-11-21 10:56:53 -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
abee380fc2 reverse works at different sampling rates 2019-11-18 15:11:57 -05:00
Yotam Mann
e055abf172 fixing test to work at different sample rates 2019-11-18 14:52:00 -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
429b0898f1 fixing options 2019-11-16 19:07:47 -05:00
Yotam Mann
d3951ce16c don't restart unless state === 'started'
fixes #480
2019-11-13 14:09:13 -05:00
Yotam Mann
b9619d8c68 removing unused variables 2019-10-31 15:43:16 -04:00
Yotam Mann
3a63154b7c using the unit name instead of the unit type as the Param generic 2019-10-28 11:37:53 -04:00
Yotam Mann
d2b064f41e docs: working on code examples 2019-10-25 16:54:33 -04:00
Yotam Mann
42cfbcd456 linting docs and examples 2019-10-22 23:04:52 -04:00
Yotam Mann
4eb05a1ec0 using promise response instead of done() 2019-09-27 17:57:19 -04:00
Yotam Mann
0ffc5d65da deleting old js files 2019-09-20 18:51:51 -04:00
Yotam Mann
26855a9398 using the clocks ticks instead of tracking offset
addresses #544
2019-09-20 17:46:30 -04:00
Yotam Mann
72b9604d8e using epsilon floating point comparisons 2019-09-20 17:45:22 -04:00
Yotam Mann
82ae4930af adding some additional coverage tests 2019-09-20 10:11:03 -04:00
Yotam Mann
1426da90c4 adding restart method
with test
2019-09-19 17:09:30 -04:00
Yotam Mann
5d128470c5 convert GrainPlayer to typescript 2019-09-19 16:55:46 -04:00
Yotam Mann
401d278063 Adding categories to all the nodes 2019-09-16 10:15:23 -04:00