Commit graph

102 commits

Author SHA1 Message Date
Yotam Mann
3d42017f50
Deprecating singleton variables, use singleton getter instead (#1233)
* Deprecating singleton variables, use singleton getter instead

* updating references

* moving over to getters instead of global vars
2024-04-28 13:05:26 -04:00
Jordan Danford
de4dd28ff3 Update standardized-audio-context, fix little lint errors 2023-01-26 11:31:38 -07:00
Yotam Mann
658923b665
Merge pull request #1050 from yifanmai/transport-sync
Use reciprocal of tempo when syncing time signals to Transport
2022-10-02 09:56:32 -04:00
Yotam Mann
d6503ab464
Merge pull request #1122 from satelllte/docs-transport-seconds
Transport.seconds: docs description small improvement
2022-10-02 09:52:15 -04:00
Yotam Mann
4d8ab82277
Merge pull request #1121 from satelllte/docs-transport-ticks
Transport.ticks: docs description small improvement
2022-10-02 09:51:58 -04:00
George
f8e1a5bfa4 Transport.seconds: docs typo fix 2022-09-27 15:53:05 +00:00
George
396dcb2577 Transport.ticks: docs typo fix 2022-09-27 15:49:45 +00:00
George
ac410d0955 Transport.progress: docs typo fix 2022-09-27 15:45:40 +00:00
Yifan Mai
a392067b60 Garbage collect nodes used for Transport syncing 2022-03-13 15:12:09 -07:00
Yifan Mai
64c8a29983 Use reciprocal of tempo when syncing time signals to Transport
fixes #879
2022-03-06 20:43:03 -08:00
Yotam Mann
fb17cf564f
Merge pull request #987 from marcelblum/context-options-bugfixes
fixes for Context options handling & micro timing bugs
2022-01-15 09:51:35 -05:00
Yifan Mai
aaa1654a15 Clear memoized values when events are modified 2021-12-28 20:16:55 -08:00
Yifan Mai
da73385620 Memoize getTicksAtTime and getSecondsAtTime 2021-12-27 16:22:08 -08:00
Marcel Blum
796fea2d6c prevent Context options overriding, remove unreachable/overridden code, fix Ticker precision
add _minimumUpdateInterval to Ticker, derive from actual context sampleRate instead of assuming 44100; add lookAhead setter to Context so that updateInterval is also adjusted; prevent latencyHint from getting overridden when rolling own context
2021-11-29 11:14:14 -05:00
Yotam Mann
6dd22e752f warn if event is scheduled without using the scheduled time.
addresses #959
2021-10-13 19:03:14 -04:00
Yotam Mann
10c27a99e1 linting 2021-10-13 18:38:30 -04:00
Yotam Mann
e4811bd00d typescript fix 2021-10-13 13:23:15 -04:00
Yotam Mann
33e14d06eb feat: sub-tick scheduling
values are no longer rounded to the nearest tick, they can happen between tick values.
2021-01-12 22:54:45 -05:00
Yotam Mann
5a52c9f1bf updating the tickTime _after_ computing the loop boundries
this way the loop boundry is not thrown off by the swing parameter.

fixes #774
2020-10-29 12:31:50 -04:00
Yotam Mann
530a997a07 compute the start of the next tick using the tickDuration instead of getTimeOfTick
fixes #706
2020-09-23 22:01:03 -04:00
Yotam Mann
9c1b303bcf updating the type of _timeout 2020-09-23 21:24:53 -04:00
sarahBuisson
00135f82bd
Update Ticker.ts
fix small ts error
2020-09-23 20:10:43 +02: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
7f9cda9db0 guarding against floating point issue where offset is very close to 1
fixes #645
2020-04-14 23:46:08 -04:00
Yotam Mann
e14fa4eae1 linting 2020-04-14 22:09:44 -04:00
Yotam Mann
8b734d9755 Clock callback returns seconds 2020-04-07 21:52:07 -04:00
Jacob Smith
7ec07954ae
Fixing bounds in TickSource test 2020-03-17 17:17:50 -03:00
Yotam Mann
267f1befc0 Simplifying Freeverb dispose 2019-12-14 11:53:12 -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
09dc29191b linting 2019-11-17 13:09:19 -05:00
Yotam Mann
340fb77561 wait for next tick before setting the ticks
fixes #573
2019-11-13 13:19:47 -05:00
Yotam Mann
60e4f7231b removing unused import 2019-11-13 13:16:35 -05:00
Yotam Mann
94ab93935c annotating type 2019-11-12 23:59:41 -05:00
Yotam Mann
c4153edc30 assert the context is running 2019-11-12 16:55:30 -05:00
Yotam Mann
48c3a98749 more consistent whitespacing 2019-11-12 16:54:09 -05:00
Yotam Mann
eb1427a17e updating whitespace 2019-11-12 16:33:54 -05:00
Yotam Mann
589ab74b11 don't need to check if state is null any longer 2019-11-12 15:10:22 -05:00
Yotam Mann
6623b5b4ea simplifying math a little 2019-11-12 14:12:22 -05:00
Jack Anderson
3354b24527 Create BaseContext + better DummyContext
- this creates a new abstract BaseContext that DummyContext and Context
inherit from
- All methods available to Context are now stubbed by DummyContext
- BaseContext is now used as the type where Context was originally used
2019-11-06 14:32:19 -08:00
Yotam Mann
8ec41dd200 updating example 2019-11-04 17:49:50 -05:00
Yotam Mann
b9619d8c68 removing unused variables 2019-10-31 15:43:16 -04:00
Yotam Mann
7ede333128 testing setting ticks 2019-10-31 14:44:59 -04:00
Yotam Mann
757cd380c8 using getStateAtTime when getting state 2019-10-31 14:44:22 -04:00
Yotam Mann
7d93094427 testing event emitters when scheduled event time is in the past 2019-10-31 14:44:01 -04:00
Yotam Mann
87ae677a59 linting 2019-10-28 11:38:17 -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
b2a9c9a303 working on examples 2019-10-23 16:30:07 -04:00
Yotam Mann
42cfbcd456 linting docs and examples 2019-10-22 23:04:52 -04:00