tone 15.3.0 → 15.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/Tone/core/clock/Transport.test.ts +60 -60
- package/Tone/core/clock/Transport.ts +4 -4
- package/Tone/core/clock/TransportEvent.test.ts +4 -4
- package/Tone/core/clock/TransportEvent.ts +2 -2
- package/Tone/core/clock/TransportRepeatEvent.test.ts +4 -4
- package/Tone/core/clock/TransportRepeatEvent.ts +1 -1
- package/Tone/core/context/BaseContext.ts +4 -4
- package/Tone/core/context/Context.test.ts +8 -8
- package/Tone/core/context/Context.ts +14 -10
- package/Tone/core/context/Destination.test.ts +2 -2
- package/Tone/core/context/Destination.ts +3 -3
- package/Tone/core/context/DummyContext.ts +4 -4
- package/Tone/core/context/Listener.test.ts +2 -2
- package/Tone/core/context/Listener.ts +3 -2
- package/Tone/core/context/ToneWithContext.ts +1 -1
- package/Tone/core/index.ts +0 -3
- package/Tone/core/util/Draw.test.ts +4 -4
- package/Tone/core/util/Draw.ts +2 -2
- package/Tone/fromContext.ts +8 -8
- package/Tone/index.test.ts +9 -9
- package/Tone/index.ts +20 -16
- package/Tone/signal/SyncedSignal.ts +1 -1
- package/Tone/version.ts +1 -1
- package/build/Tone.js +1 -1
- package/build/Tone.js.map +1 -1
- package/build/esm/core/clock/Transport.d.ts +1 -1
- package/build/esm/core/clock/Transport.js +4 -4
- package/build/esm/core/clock/Transport.js.map +1 -1
- package/build/esm/core/clock/TransportEvent.d.ts +2 -2
- package/build/esm/core/clock/TransportEvent.js +1 -1
- package/build/esm/core/clock/TransportRepeatEvent.d.ts +1 -1
- package/build/esm/core/context/BaseContext.d.ts +4 -4
- package/build/esm/core/context/Context.d.ts +4 -4
- package/build/esm/core/context/Context.js +8 -6
- package/build/esm/core/context/Context.js.map +1 -1
- package/build/esm/core/context/Destination.d.ts +1 -1
- package/build/esm/core/context/Destination.js +3 -3
- package/build/esm/core/context/Destination.js.map +1 -1
- package/build/esm/core/context/DummyContext.d.ts +4 -4
- package/build/esm/core/context/Listener.d.ts +2 -1
- package/build/esm/core/context/Listener.js +3 -2
- package/build/esm/core/context/Listener.js.map +1 -1
- package/build/esm/core/context/ToneWithContext.d.ts +1 -1
- package/build/esm/core/context/ToneWithContext.js +1 -1
- package/build/esm/core/index.js +0 -2
- package/build/esm/core/index.js.map +1 -1
- package/build/esm/core/util/Draw.d.ts +1 -1
- package/build/esm/core/util/Draw.js +2 -2
- package/build/esm/core/util/Draw.js.map +1 -1
- package/build/esm/fromContext.d.ts +8 -8
- package/build/esm/index.d.ts +25 -21
- package/build/esm/index.js +8 -8
- package/build/esm/index.js.map +1 -1
- package/build/esm/signal/SyncedSignal.d.ts +1 -1
- package/build/esm/signal/SyncedSignal.js +1 -1
- package/build/esm/version.js +1 -1
- package/package.json +2 -2
package/build/esm/index.js
CHANGED
|
@@ -23,14 +23,14 @@ export function immediate() {
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* The Transport object belonging to the global Tone.js Context.
|
|
26
|
-
* @see {@link
|
|
26
|
+
* @see {@link TransportInstance}
|
|
27
27
|
* @category Core
|
|
28
28
|
* @deprecated Use {@link getTransport} instead
|
|
29
29
|
*/
|
|
30
30
|
export const Transport = getContext().transport;
|
|
31
31
|
/**
|
|
32
32
|
* The Transport object belonging to the global Tone.js Context.
|
|
33
|
-
* @see {@link
|
|
33
|
+
* @see {@link TransportInstance}
|
|
34
34
|
* @category Core
|
|
35
35
|
*/
|
|
36
36
|
export function getTransport() {
|
|
@@ -38,7 +38,7 @@ export function getTransport() {
|
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* The Destination (output) belonging to the global Tone.js Context.
|
|
41
|
-
* @see {@link
|
|
41
|
+
* @see {@link DestinationInstance}
|
|
42
42
|
* @category Core
|
|
43
43
|
* @deprecated Use {@link getDestination} instead
|
|
44
44
|
*/
|
|
@@ -49,20 +49,20 @@ export const Destination = getContext().destination;
|
|
|
49
49
|
export const Master = getContext().destination;
|
|
50
50
|
/**
|
|
51
51
|
* The Destination (output) belonging to the global Tone.js Context.
|
|
52
|
-
* @see {@link
|
|
52
|
+
* @see {@link DestinationInstance}
|
|
53
53
|
* @category Core
|
|
54
54
|
*/
|
|
55
55
|
export function getDestination() {
|
|
56
56
|
return getContext().destination;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* The {@link
|
|
59
|
+
* The {@link ListenerInstance} belonging to the global Tone.js Context.
|
|
60
60
|
* @category Core
|
|
61
61
|
* @deprecated Use {@link getListener} instead
|
|
62
62
|
*/
|
|
63
63
|
export const Listener = getContext().listener;
|
|
64
64
|
/**
|
|
65
|
-
* The {@link
|
|
65
|
+
* The {@link ListenerInstance} belonging to the global Tone.js Context.
|
|
66
66
|
* @category Core
|
|
67
67
|
*/
|
|
68
68
|
export function getListener() {
|
|
@@ -70,7 +70,7 @@ export function getListener() {
|
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
72
|
* Draw is used to synchronize the draw frame with the Transport's callbacks.
|
|
73
|
-
* @see {@link
|
|
73
|
+
* @see {@link DrawInstance}
|
|
74
74
|
* @category Core
|
|
75
75
|
* @deprecated Use {@link getDraw} instead
|
|
76
76
|
*/
|
|
@@ -78,7 +78,7 @@ export const Draw = getContext().draw;
|
|
|
78
78
|
/**
|
|
79
79
|
* Get the singleton attached to the global context.
|
|
80
80
|
* Draw is used to synchronize the draw frame with the Transport's callbacks.
|
|
81
|
-
* @see {@link
|
|
81
|
+
* @see {@link DrawInstance}
|
|
82
82
|
* @category Core
|
|
83
83
|
*/
|
|
84
84
|
export function getDraw() {
|
package/build/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Tone/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC1D,c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;AACjC,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,EAAE,CAAC,QAAQ,CAAC;AAE9C;;;GAGG;AACH,MAAM,UAAU,WAAW;IAC1B,OAAO,UAAU,EAAE,CAAC,QAAQ,CAAC;AAC9B,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,EAAE,CAAC,IAAI,CAAC;AAEtC;;;;;GAKG;AACH,MAAM,UAAU,OAAO;IACtB,OAAO,UAAU,EAAE,CAAC,IAAI,CAAC;AAC1B,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;AAEpC;;;;GAIG;AACH,MAAM,UAAU,MAAM;IACrB,OAAO,eAAe,CAAC,MAAM,EAAE,CAAC;AACjC,CAAC;AAED,+CAA+C;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,8CAA8C;AAC9C,MAAM,CAAC,MAAM,MAAM,GAA2B,eAAe,CAAC;AAC9D,+CAA+C;AAC/C,MAAM,CAAC,MAAM,OAAO,GAA4B,gBAAgB,CAAC;AACjE,+CAA+C;AAC/C,MAAM,CAAC,MAAM,YAAY,GAA4B,gBAAgB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { OutputNode } from "../core/context/ToneAudioNode.js";
|
|
|
3
3
|
import { NormalRange, Time, TransportTime, UnitMap, UnitName } from "../core/type/Units.js";
|
|
4
4
|
import { Signal, SignalOptions } from "./Signal.js";
|
|
5
5
|
/**
|
|
6
|
-
* Adds the ability to synchronize the signal to the {@link
|
|
6
|
+
* Adds the ability to synchronize the signal to the {@link TransportInstance}
|
|
7
7
|
* @category Signal
|
|
8
8
|
*/
|
|
9
9
|
export declare class SyncedSignal<TypeName extends UnitName = "number"> extends Signal<TypeName> {
|
|
@@ -4,7 +4,7 @@ import { optionsFromArguments } from "../core/util/Defaults.js";
|
|
|
4
4
|
import { Signal } from "./Signal.js";
|
|
5
5
|
import { ToneConstantSource } from "./ToneConstantSource.js";
|
|
6
6
|
/**
|
|
7
|
-
* Adds the ability to synchronize the signal to the {@link
|
|
7
|
+
* Adds the ability to synchronize the signal to the {@link TransportInstance}
|
|
8
8
|
* @category Signal
|
|
9
9
|
*/
|
|
10
10
|
export class SyncedSignal extends Signal {
|
package/build/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = "15.3.
|
|
1
|
+
export const version = "15.3.2";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tone",
|
|
3
|
-
"version": "15.3.
|
|
3
|
+
"version": "15.3.2",
|
|
4
4
|
"description": "A Web Audio framework for making interactive music in the browser.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/esm/index.js",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"tinyglobby": "^0.2.14",
|
|
93
93
|
"tonal": "^6.0.1",
|
|
94
94
|
"ts-loader": "^9.5.1",
|
|
95
|
-
"typedoc": "^0.
|
|
95
|
+
"typedoc": "^0.28.12",
|
|
96
96
|
"typescript": "^5.4.5",
|
|
97
97
|
"typescript-eslint": "^8.31.0",
|
|
98
98
|
"ua-parser-js": "^0.7.31",
|