@webmusic/kernel 0.1.0 → 0.4.0
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 +202 -21
- package/NOTICE +2 -0
- package/README.md +138 -101
- package/dist/audio-context.cjs.map +1 -1
- package/dist/build-receipt.json +3 -3
- package/dist/chunk-27LH6QLZ.cjs +277 -0
- package/dist/chunk-27LH6QLZ.cjs.map +1 -0
- package/dist/chunk-3INDOVUC.cjs.map +1 -1
- package/dist/chunk-3RR2VIKA.js +393 -0
- package/dist/chunk-3RR2VIKA.js.map +1 -0
- package/dist/chunk-3YTKIKKX.cjs +378 -0
- package/dist/chunk-3YTKIKKX.cjs.map +1 -0
- package/dist/chunk-4RG4WQKC.js +360 -0
- package/dist/chunk-4RG4WQKC.js.map +1 -0
- package/dist/chunk-5AHVQXTF.cjs +620 -0
- package/dist/chunk-5AHVQXTF.cjs.map +1 -0
- package/dist/chunk-624KWJWZ.js +170 -0
- package/dist/chunk-624KWJWZ.js.map +1 -0
- package/dist/chunk-6HGFEKD3.cjs +851 -0
- package/dist/chunk-6HGFEKD3.cjs.map +1 -0
- package/dist/chunk-7ZTZZ5PN.cjs.map +1 -1
- package/dist/chunk-ALWV4P7D.js +726 -0
- package/dist/chunk-ALWV4P7D.js.map +1 -0
- package/dist/chunk-BADJJ6DV.cjs +143 -0
- package/dist/chunk-BADJJ6DV.cjs.map +1 -0
- package/dist/chunk-C3LMS36L.cjs +393 -0
- package/dist/chunk-C3LMS36L.cjs.map +1 -0
- package/dist/chunk-C3YWUZW3.cjs.map +1 -1
- package/dist/chunk-CR6OUWBJ.cjs +726 -0
- package/dist/chunk-CR6OUWBJ.cjs.map +1 -0
- package/dist/chunk-CYWDZLWC.js +2141 -0
- package/dist/chunk-CYWDZLWC.js.map +1 -0
- package/dist/chunk-DDOGX2D5.js +378 -0
- package/dist/chunk-DDOGX2D5.js.map +1 -0
- package/dist/chunk-DVN6E5U3.js +620 -0
- package/dist/chunk-DVN6E5U3.js.map +1 -0
- package/dist/chunk-EURMRU2S.js +208 -0
- package/dist/chunk-EURMRU2S.js.map +1 -0
- package/dist/chunk-EXDCK2VL.cjs +20 -0
- package/dist/chunk-EXDCK2VL.cjs.map +1 -0
- package/dist/chunk-G5EIUP52.js +114 -0
- package/dist/chunk-G5EIUP52.js.map +1 -0
- package/dist/chunk-GB4DGKLZ.js +143 -0
- package/dist/chunk-GB4DGKLZ.js.map +1 -0
- package/dist/chunk-GPOEAYOW.js +2147 -0
- package/dist/chunk-GPOEAYOW.js.map +1 -0
- package/dist/chunk-I4YMA5VM.cjs +120 -0
- package/dist/chunk-I4YMA5VM.cjs.map +1 -0
- package/dist/chunk-IVWHMDCB.cjs +4383 -0
- package/dist/chunk-IVWHMDCB.cjs.map +1 -0
- package/dist/chunk-JFCBJMA7.cjs +2147 -0
- package/dist/chunk-JFCBJMA7.cjs.map +1 -0
- package/dist/chunk-JLVSAZ3K.cjs +813 -0
- package/dist/chunk-JLVSAZ3K.cjs.map +1 -0
- package/dist/chunk-K7FYH6UG.cjs +208 -0
- package/dist/chunk-K7FYH6UG.cjs.map +1 -0
- package/dist/chunk-L4MYCETM.cjs +970 -0
- package/dist/chunk-L4MYCETM.cjs.map +1 -0
- package/dist/chunk-MNCMYNYL.js +970 -0
- package/dist/chunk-MNCMYNYL.js.map +1 -0
- package/dist/chunk-NT2BZ3QM.js +120 -0
- package/dist/chunk-NT2BZ3QM.js.map +1 -0
- package/dist/chunk-O7SA5GLC.js +277 -0
- package/dist/chunk-O7SA5GLC.js.map +1 -0
- package/dist/chunk-OCKAHITL.cjs +548 -0
- package/dist/chunk-OCKAHITL.cjs.map +1 -0
- package/dist/{chunk-HOKRTYPV.js → chunk-OPBHDUZK.js} +39 -1
- package/dist/chunk-OPBHDUZK.js.map +1 -0
- package/dist/chunk-OTXYWCLA.js +206 -0
- package/dist/chunk-OTXYWCLA.js.map +1 -0
- package/dist/chunk-P6ZA63J7.js +548 -0
- package/dist/chunk-P6ZA63J7.js.map +1 -0
- package/dist/chunk-QLF3BOST.js +20 -0
- package/dist/chunk-QLF3BOST.js.map +1 -0
- package/dist/chunk-RCWFRZDR.js +4383 -0
- package/dist/chunk-RCWFRZDR.js.map +1 -0
- package/dist/chunk-RZBLPM3L.cjs +206 -0
- package/dist/chunk-RZBLPM3L.cjs.map +1 -0
- package/dist/chunk-TA3TNJZU.cjs +360 -0
- package/dist/chunk-TA3TNJZU.cjs.map +1 -0
- package/dist/chunk-TZSRPTQL.cjs +2141 -0
- package/dist/chunk-TZSRPTQL.cjs.map +1 -0
- package/dist/chunk-UMTPJ76S.cjs.map +1 -1
- package/dist/chunk-UY77FXDW.js +813 -0
- package/dist/chunk-UY77FXDW.js.map +1 -0
- package/dist/chunk-VFU3S7OC.js +851 -0
- package/dist/chunk-VFU3S7OC.js.map +1 -0
- package/dist/chunk-VY6WWZSW.cjs.map +1 -1
- package/dist/chunk-WN5DZOVT.cjs +170 -0
- package/dist/chunk-WN5DZOVT.cjs.map +1 -0
- package/dist/{chunk-HZQX4J2J.cjs → chunk-WOPW6WLR.cjs} +40 -2
- package/dist/chunk-WOPW6WLR.cjs.map +1 -0
- package/dist/chunk-XBSIYUHM.cjs +114 -0
- package/dist/chunk-XBSIYUHM.cjs.map +1 -0
- package/dist/chunk-ZMU72HJS.cjs.map +1 -1
- package/dist/context-DSa0ymyN.d.cts +664 -0
- package/dist/context-DaxfAg3b.d.ts +664 -0
- package/dist/effect-chain-Cu03O5Y0.d.ts +91 -0
- package/dist/effect-chain-Do75T7uK.d.cts +91 -0
- package/dist/effect.cjs +16 -1
- package/dist/effect.cjs.map +1 -1
- package/dist/effect.d.cts +56 -14
- package/dist/effect.d.ts +56 -14
- package/dist/effect.js +16 -1
- package/dist/elements.cjs +37 -2
- package/dist/elements.cjs.map +1 -1
- package/dist/elements.d.cts +197 -8
- package/dist/elements.d.ts +197 -8
- package/dist/elements.js +36 -1
- package/dist/events.cjs.map +1 -1
- package/dist/index.cjs +556 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -5
- package/dist/index.d.ts +17 -5
- package/dist/index.js +567 -20
- package/dist/message.cjs +104 -0
- package/dist/message.cjs.map +1 -0
- package/dist/message.d.cts +738 -0
- package/dist/message.d.ts +738 -0
- package/dist/message.js +104 -0
- package/dist/meter.cjs +2 -2
- package/dist/meter.cjs.map +1 -1
- package/dist/meter.d.cts +9 -1
- package/dist/meter.d.ts +9 -1
- package/dist/meter.js +1 -1
- package/dist/module-control-C25BMtH7.d.ts +61 -0
- package/dist/module-control-yH6nTJM9.d.cts +61 -0
- package/dist/module-plugin-BnPmq1VP.d.ts +198 -0
- package/dist/module-plugin-CHb-5W0Y.d.cts +198 -0
- package/dist/module.cjs +263 -0
- package/dist/module.cjs.map +1 -0
- package/dist/module.d.cts +1112 -0
- package/dist/module.d.ts +1112 -0
- package/dist/module.js +263 -0
- package/dist/parameter-DwQzFmBR.d.cts +172 -0
- package/dist/parameter-DwQzFmBR.d.ts +172 -0
- package/dist/player.cjs.map +1 -1
- package/dist/processor-worklet.cjs +18 -0
- package/dist/processor-worklet.cjs.map +1 -0
- package/dist/processor-worklet.d.cts +166 -0
- package/dist/processor-worklet.d.ts +166 -0
- package/dist/processor-worklet.js +18 -0
- package/dist/processor-worklet.js.map +1 -0
- package/dist/processor.cjs +51 -0
- package/dist/processor.cjs.map +1 -0
- package/dist/processor.d.cts +397 -0
- package/dist/processor.d.ts +397 -0
- package/dist/processor.js +51 -0
- package/dist/processor.js.map +1 -0
- package/dist/project-types-BU4awMnL.d.ts +323 -0
- package/dist/project-types-DufCV8Ma.d.cts +323 -0
- package/dist/ring-C-i9N90a.d.cts +139 -0
- package/dist/ring-DkcMt2Eg.d.ts +139 -0
- package/dist/sequence.cjs +68 -0
- package/dist/sequence.cjs.map +1 -0
- package/dist/sequence.d.cts +303 -0
- package/dist/sequence.d.ts +303 -0
- package/dist/sequence.js +68 -0
- package/dist/sequence.js.map +1 -0
- package/dist/session.cjs +16 -0
- package/dist/session.cjs.map +1 -0
- package/dist/session.d.cts +407 -0
- package/dist/session.d.ts +407 -0
- package/dist/session.js +16 -0
- package/dist/session.js.map +1 -0
- package/dist/tick.cjs.map +1 -1
- package/dist/transport.cjs +50 -2
- package/dist/transport.cjs.map +1 -1
- package/dist/transport.d.cts +145 -1
- package/dist/transport.d.ts +145 -1
- package/dist/transport.js +51 -3
- package/dist/worker.cjs.map +1 -1
- package/package.json +62 -11
- package/dist/chunk-53YD73OY.js +0 -162
- package/dist/chunk-53YD73OY.js.map +0 -1
- package/dist/chunk-BR63OD53.cjs +0 -1
- package/dist/chunk-BR63OD53.cjs.map +0 -1
- package/dist/chunk-HOKRTYPV.js.map +0 -1
- package/dist/chunk-HZQX4J2J.cjs.map +0 -1
- package/dist/chunk-JNXB74G3.cjs +0 -987
- package/dist/chunk-JNXB74G3.cjs.map +0 -1
- package/dist/chunk-SM5YPDDI.cjs +0 -162
- package/dist/chunk-SM5YPDDI.cjs.map +0 -1
- package/dist/chunk-TEM2I2NN.js +0 -1
- package/dist/chunk-VVZX7DQ6.cjs +0 -254
- package/dist/chunk-VVZX7DQ6.cjs.map +0 -1
- package/dist/chunk-WNFGDB7B.js +0 -254
- package/dist/chunk-WNFGDB7B.js.map +0 -1
- package/dist/chunk-XBJBY4J5.js +0 -987
- package/dist/chunk-XBJBY4J5.js.map +0 -1
- package/dist/sync.cjs +0 -12
- package/dist/sync.cjs.map +0 -1
- package/dist/sync.d.cts +0 -304
- package/dist/sync.d.ts +0 -304
- package/dist/sync.js +0 -12
- /package/dist/{chunk-TEM2I2NN.js.map → message.js.map} +0 -0
- /package/dist/{sync.js.map → module.js.map} +0 -0
package/dist/module.js
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COMPONENT_BOUNDARY,
|
|
3
|
+
CaptureSink,
|
|
4
|
+
ChannelPack,
|
|
5
|
+
ChannelUnpack,
|
|
6
|
+
ControlEnvelope,
|
|
7
|
+
ControlLFO,
|
|
8
|
+
ControlMappings,
|
|
9
|
+
DeviceSink,
|
|
10
|
+
EnvelopeFollower,
|
|
11
|
+
InletModule,
|
|
12
|
+
MAX_MC_CHANNELS,
|
|
13
|
+
MessageDebugger,
|
|
14
|
+
ModuleProjectRuntime,
|
|
15
|
+
NestedComponent,
|
|
16
|
+
NodesModule,
|
|
17
|
+
NoteMaker,
|
|
18
|
+
OutletModule,
|
|
19
|
+
POLY_VOICE,
|
|
20
|
+
ParamMacro,
|
|
21
|
+
PolyComponent,
|
|
22
|
+
PresetBank,
|
|
23
|
+
PresetModule,
|
|
24
|
+
ProjectPluginRegistry,
|
|
25
|
+
RackModule,
|
|
26
|
+
SOURCE_SCHEMAS,
|
|
27
|
+
SourcePublisher,
|
|
28
|
+
VoiceAllocator,
|
|
29
|
+
VoiceNotes,
|
|
30
|
+
WAM_MODULE,
|
|
31
|
+
applyParameters,
|
|
32
|
+
captureParameters,
|
|
33
|
+
checkModuleConformance,
|
|
34
|
+
controlFraction,
|
|
35
|
+
controlSource,
|
|
36
|
+
copyProjectJson,
|
|
37
|
+
createOfflineModuleEnvironment,
|
|
38
|
+
createProjectEditorBinding,
|
|
39
|
+
createProviderScope,
|
|
40
|
+
createStructurePlugins,
|
|
41
|
+
describeSource,
|
|
42
|
+
isOfflineModuleContext,
|
|
43
|
+
keepProjectSessionPreloaded,
|
|
44
|
+
multichannelPlugin,
|
|
45
|
+
nodeWeights,
|
|
46
|
+
parseModuleProject,
|
|
47
|
+
renderModuleGraph,
|
|
48
|
+
serializeModuleProject,
|
|
49
|
+
sourceMatches,
|
|
50
|
+
wamPlugin
|
|
51
|
+
} from "./chunk-RCWFRZDR.js";
|
|
52
|
+
import {
|
|
53
|
+
AudioInputPort,
|
|
54
|
+
AudioOutputPort,
|
|
55
|
+
ModuleAudioEnvironment,
|
|
56
|
+
ModuleContext,
|
|
57
|
+
createControlPort,
|
|
58
|
+
createTransportPort,
|
|
59
|
+
moduleScopeChange,
|
|
60
|
+
routeModuleOutput,
|
|
61
|
+
sameModuleScope
|
|
62
|
+
} from "./chunk-P6ZA63J7.js";
|
|
63
|
+
import {
|
|
64
|
+
NoteInputPort,
|
|
65
|
+
NoteOutputPort,
|
|
66
|
+
assertNoteEvent
|
|
67
|
+
} from "./chunk-EURMRU2S.js";
|
|
68
|
+
import "./chunk-GPOEAYOW.js";
|
|
69
|
+
import "./chunk-HY2YIL75.js";
|
|
70
|
+
import "./chunk-3RR2VIKA.js";
|
|
71
|
+
import {
|
|
72
|
+
ParamAudioBus,
|
|
73
|
+
ParamHandle,
|
|
74
|
+
ParamSurface
|
|
75
|
+
} from "./chunk-DVN6E5U3.js";
|
|
76
|
+
import "./chunk-FJLY3RWZ.js";
|
|
77
|
+
import {
|
|
78
|
+
SourceRelay,
|
|
79
|
+
sourceOrigin
|
|
80
|
+
} from "./chunk-G5EIUP52.js";
|
|
81
|
+
import {
|
|
82
|
+
ControlModule,
|
|
83
|
+
MODULE_CONTROL,
|
|
84
|
+
decodeOsc,
|
|
85
|
+
encodeOsc,
|
|
86
|
+
isOscBundle,
|
|
87
|
+
moduleControlOf
|
|
88
|
+
} from "./chunk-624KWJWZ.js";
|
|
89
|
+
import {
|
|
90
|
+
AudioMessageClock,
|
|
91
|
+
GraphModule,
|
|
92
|
+
MAX_MESSAGE_DEPTH,
|
|
93
|
+
MODULE_PLUGIN_VERSION,
|
|
94
|
+
MUSICAL_TIME,
|
|
95
|
+
ManualMessageClock,
|
|
96
|
+
MessageInputPort,
|
|
97
|
+
MessageOutputPort,
|
|
98
|
+
MessageStackOverflowError,
|
|
99
|
+
assertStructuredOptions,
|
|
100
|
+
atomsOf,
|
|
101
|
+
bang,
|
|
102
|
+
connectMessageToParameter,
|
|
103
|
+
createMusicalTimeSource,
|
|
104
|
+
currentMessageDepth,
|
|
105
|
+
floatAtom,
|
|
106
|
+
floatMessage,
|
|
107
|
+
formatMessage,
|
|
108
|
+
intAtom,
|
|
109
|
+
intMessage,
|
|
110
|
+
isNumberAtom,
|
|
111
|
+
message,
|
|
112
|
+
messageClockFor,
|
|
113
|
+
messageFromAtoms,
|
|
114
|
+
moduleBaseOptions,
|
|
115
|
+
modulePlugin,
|
|
116
|
+
numberOf,
|
|
117
|
+
numberedPort,
|
|
118
|
+
parseAtom,
|
|
119
|
+
parseMessage,
|
|
120
|
+
symbolAtom,
|
|
121
|
+
symbolMessage,
|
|
122
|
+
withTime
|
|
123
|
+
} from "./chunk-ALWV4P7D.js";
|
|
124
|
+
import {
|
|
125
|
+
ModuleCapabilities,
|
|
126
|
+
PORT_FAMILIES,
|
|
127
|
+
PortListeners,
|
|
128
|
+
ProjectModuleUnavailableError,
|
|
129
|
+
assertPortInfo,
|
|
130
|
+
createCapabilityKey,
|
|
131
|
+
isProjectModuleUnavailable
|
|
132
|
+
} from "./chunk-NT2BZ3QM.js";
|
|
133
|
+
import "./chunk-4RG4WQKC.js";
|
|
134
|
+
import {
|
|
135
|
+
ModuleRegistry,
|
|
136
|
+
assertModuleId,
|
|
137
|
+
createModuleHandle,
|
|
138
|
+
getModulePort
|
|
139
|
+
} from "./chunk-GB4DGKLZ.js";
|
|
140
|
+
import {
|
|
141
|
+
createConnectionLease
|
|
142
|
+
} from "./chunk-QLF3BOST.js";
|
|
143
|
+
import "./chunk-PXG64RU4.js";
|
|
144
|
+
export {
|
|
145
|
+
AudioInputPort,
|
|
146
|
+
AudioMessageClock,
|
|
147
|
+
AudioOutputPort,
|
|
148
|
+
COMPONENT_BOUNDARY,
|
|
149
|
+
CaptureSink,
|
|
150
|
+
ChannelPack,
|
|
151
|
+
ChannelUnpack,
|
|
152
|
+
ControlEnvelope,
|
|
153
|
+
ControlLFO,
|
|
154
|
+
ControlMappings,
|
|
155
|
+
ControlModule,
|
|
156
|
+
DeviceSink,
|
|
157
|
+
EnvelopeFollower,
|
|
158
|
+
GraphModule,
|
|
159
|
+
InletModule,
|
|
160
|
+
MAX_MC_CHANNELS,
|
|
161
|
+
MAX_MESSAGE_DEPTH,
|
|
162
|
+
MODULE_CONTROL,
|
|
163
|
+
MODULE_PLUGIN_VERSION,
|
|
164
|
+
MUSICAL_TIME,
|
|
165
|
+
ManualMessageClock,
|
|
166
|
+
MessageDebugger,
|
|
167
|
+
MessageInputPort,
|
|
168
|
+
MessageOutputPort,
|
|
169
|
+
MessageStackOverflowError,
|
|
170
|
+
ModuleAudioEnvironment,
|
|
171
|
+
ModuleCapabilities,
|
|
172
|
+
ModuleContext,
|
|
173
|
+
ModuleProjectRuntime,
|
|
174
|
+
ModuleRegistry,
|
|
175
|
+
NestedComponent,
|
|
176
|
+
NodesModule,
|
|
177
|
+
NoteInputPort,
|
|
178
|
+
NoteMaker,
|
|
179
|
+
NoteOutputPort,
|
|
180
|
+
OutletModule,
|
|
181
|
+
POLY_VOICE,
|
|
182
|
+
PORT_FAMILIES,
|
|
183
|
+
ParamAudioBus,
|
|
184
|
+
ParamHandle,
|
|
185
|
+
ParamMacro,
|
|
186
|
+
ParamSurface,
|
|
187
|
+
PolyComponent,
|
|
188
|
+
PortListeners,
|
|
189
|
+
PresetBank,
|
|
190
|
+
PresetModule,
|
|
191
|
+
ProjectModuleUnavailableError,
|
|
192
|
+
ProjectPluginRegistry,
|
|
193
|
+
RackModule,
|
|
194
|
+
SOURCE_SCHEMAS,
|
|
195
|
+
SourcePublisher,
|
|
196
|
+
SourceRelay,
|
|
197
|
+
VoiceAllocator,
|
|
198
|
+
VoiceNotes,
|
|
199
|
+
WAM_MODULE,
|
|
200
|
+
applyParameters,
|
|
201
|
+
assertModuleId,
|
|
202
|
+
assertNoteEvent,
|
|
203
|
+
assertPortInfo,
|
|
204
|
+
assertStructuredOptions,
|
|
205
|
+
atomsOf,
|
|
206
|
+
bang,
|
|
207
|
+
captureParameters,
|
|
208
|
+
checkModuleConformance,
|
|
209
|
+
connectMessageToParameter,
|
|
210
|
+
controlFraction,
|
|
211
|
+
controlSource,
|
|
212
|
+
copyProjectJson,
|
|
213
|
+
createCapabilityKey,
|
|
214
|
+
createConnectionLease,
|
|
215
|
+
createControlPort,
|
|
216
|
+
createModuleHandle,
|
|
217
|
+
createMusicalTimeSource,
|
|
218
|
+
createOfflineModuleEnvironment,
|
|
219
|
+
createProjectEditorBinding,
|
|
220
|
+
createProviderScope,
|
|
221
|
+
createStructurePlugins,
|
|
222
|
+
createTransportPort,
|
|
223
|
+
currentMessageDepth,
|
|
224
|
+
decodeOsc,
|
|
225
|
+
describeSource,
|
|
226
|
+
encodeOsc,
|
|
227
|
+
floatAtom,
|
|
228
|
+
floatMessage,
|
|
229
|
+
formatMessage,
|
|
230
|
+
getModulePort,
|
|
231
|
+
intAtom,
|
|
232
|
+
intMessage,
|
|
233
|
+
isNumberAtom,
|
|
234
|
+
isOfflineModuleContext,
|
|
235
|
+
isOscBundle,
|
|
236
|
+
isProjectModuleUnavailable,
|
|
237
|
+
keepProjectSessionPreloaded,
|
|
238
|
+
message,
|
|
239
|
+
messageClockFor,
|
|
240
|
+
messageFromAtoms,
|
|
241
|
+
moduleBaseOptions,
|
|
242
|
+
moduleControlOf,
|
|
243
|
+
modulePlugin,
|
|
244
|
+
moduleScopeChange,
|
|
245
|
+
multichannelPlugin,
|
|
246
|
+
nodeWeights,
|
|
247
|
+
numberOf,
|
|
248
|
+
numberedPort,
|
|
249
|
+
parseAtom,
|
|
250
|
+
parseMessage,
|
|
251
|
+
parseModuleProject,
|
|
252
|
+
renderModuleGraph,
|
|
253
|
+
routeModuleOutput,
|
|
254
|
+
sameModuleScope,
|
|
255
|
+
serializeModuleProject,
|
|
256
|
+
sourceMatches,
|
|
257
|
+
sourceOrigin,
|
|
258
|
+
symbolAtom,
|
|
259
|
+
symbolMessage,
|
|
260
|
+
wamPlugin,
|
|
261
|
+
withTime
|
|
262
|
+
};
|
|
263
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/** A precise, revocable resource relationship. It never implies ownership of its endpoints. */
|
|
2
|
+
interface ConnectionLease {
|
|
3
|
+
readonly active: boolean;
|
|
4
|
+
release(): void;
|
|
5
|
+
}
|
|
6
|
+
/** Mark inactive before cleanup, including when cleanup re-enters or throws. */
|
|
7
|
+
declare function createConnectionLease(cleanup: () => void): ConnectionLease;
|
|
8
|
+
|
|
9
|
+
/** A normalized, domain-neutral control output. The range is its declared bound. */
|
|
10
|
+
interface ControlSignal {
|
|
11
|
+
readonly output: AudioNode;
|
|
12
|
+
readonly rate: 'a-rate' | 'k-rate';
|
|
13
|
+
readonly range: Readonly<{
|
|
14
|
+
min: number;
|
|
15
|
+
max: number;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
18
|
+
/** Additive depth is expressed in the destination parameter's native unit. */
|
|
19
|
+
interface ParamMappingOptions {
|
|
20
|
+
readonly depth: number;
|
|
21
|
+
/** Bipolar normalizes the source to [-1, 1]; unipolar to [0, 1]. */
|
|
22
|
+
readonly polarity?: 'bipolar' | 'unipolar';
|
|
23
|
+
}
|
|
24
|
+
interface ParamMapping extends ConnectionLease {
|
|
25
|
+
readonly depth: number;
|
|
26
|
+
readonly polarity: 'bipolar' | 'unipolar';
|
|
27
|
+
setDepth(depth: number): void;
|
|
28
|
+
}
|
|
29
|
+
interface ParamAutomationEvent {
|
|
30
|
+
readonly type: 'set' | 'linear' | 'exponential';
|
|
31
|
+
readonly value: number;
|
|
32
|
+
/** Absolute seconds on this AudioContext's clock. */
|
|
33
|
+
readonly time: number;
|
|
34
|
+
}
|
|
35
|
+
/** One full-value CV bus: base lives here and every target has intrinsic zero. */
|
|
36
|
+
declare class ParamAudioBus {
|
|
37
|
+
private readonly changed;
|
|
38
|
+
readonly context: BaseAudioContext;
|
|
39
|
+
readonly rate: 'a-rate' | 'k-rate';
|
|
40
|
+
private readonly source;
|
|
41
|
+
private readonly bindings;
|
|
42
|
+
private readonly connections;
|
|
43
|
+
private events;
|
|
44
|
+
private baseline;
|
|
45
|
+
private startTime;
|
|
46
|
+
private disposed;
|
|
47
|
+
private changing;
|
|
48
|
+
constructor(context: BaseAudioContext, baseValue: number, rate: 'a-rate' | 'k-rate', changed?: () => void);
|
|
49
|
+
get active(): boolean;
|
|
50
|
+
get automation(): readonly ParamAutomationEvent[];
|
|
51
|
+
get mappings(): readonly ParamMapping[];
|
|
52
|
+
get estimatedRange(): Readonly<{
|
|
53
|
+
min: number;
|
|
54
|
+
max: number;
|
|
55
|
+
}>;
|
|
56
|
+
/** Exact model of this bus's scheduled base; not a sample of effective CV. */
|
|
57
|
+
baseValueAt(time: number): number;
|
|
58
|
+
bind(param: AudioParam): ConnectionLease;
|
|
59
|
+
connect(signal: ControlSignal, options: ParamMappingOptions): ParamMapping;
|
|
60
|
+
setBaseValue(value: number): void;
|
|
61
|
+
/**
|
|
62
|
+
* Replaces base automation anchored at the modeled base at referenceTime.
|
|
63
|
+
* referenceTime is absolute seconds on this bus's AudioContext clock.
|
|
64
|
+
* Capture referenceTime before planning; it defaults to this call's audio time.
|
|
65
|
+
* Events must be ordered at or after that finite, nonnegative, nonfuture time.
|
|
66
|
+
* Elapsed portions are evaluated at submission, preserving future ramp endpoints.
|
|
67
|
+
* An empty schedule holds the current base instead.
|
|
68
|
+
* Native clock crossings receive bounded repair; prolonged stalls can underrun.
|
|
69
|
+
*/
|
|
70
|
+
schedule(events: readonly ParamAutomationEvent[], referenceTime?: number): void;
|
|
71
|
+
dispose(): void;
|
|
72
|
+
private validateOffset;
|
|
73
|
+
private assertLive;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** Metadata for one numeric base value; modulation mappings are separate. */
|
|
77
|
+
interface ParamDescriptor {
|
|
78
|
+
readonly id: string;
|
|
79
|
+
readonly label?: string;
|
|
80
|
+
readonly unit: string;
|
|
81
|
+
readonly range: Readonly<{
|
|
82
|
+
min: number;
|
|
83
|
+
max: number;
|
|
84
|
+
}>;
|
|
85
|
+
/** Optional UI viewport within the legal range; it never restricts writes. */
|
|
86
|
+
readonly displayRange?: Readonly<{
|
|
87
|
+
min: number;
|
|
88
|
+
max: number;
|
|
89
|
+
}>;
|
|
90
|
+
readonly defaultValue: number;
|
|
91
|
+
/** Suggested UI increment, not an implicit quantization command. */
|
|
92
|
+
readonly step?: number;
|
|
93
|
+
readonly scale?: 'linear' | 'logarithmic';
|
|
94
|
+
readonly updateTiming?: 'synchronous' | 'scheduled';
|
|
95
|
+
readonly modulation?: 'none' | 'audio-rate' | 'control-rate';
|
|
96
|
+
}
|
|
97
|
+
interface ParamSnapshot {
|
|
98
|
+
readonly baseValue: number;
|
|
99
|
+
readonly revision: number;
|
|
100
|
+
/** Advances only for committed base writes, not CV graph/automation notifications. */
|
|
101
|
+
readonly baseRevision: number;
|
|
102
|
+
readonly disposed: boolean;
|
|
103
|
+
/** AudioParam.value is intrinsic state, not total effective readback. */
|
|
104
|
+
readonly effectiveReadback: Readonly<{
|
|
105
|
+
status: 'unavailable';
|
|
106
|
+
}>;
|
|
107
|
+
/** Predicted bounds from declared sources, never sampled effective state. */
|
|
108
|
+
readonly modulationRange?: Readonly<{
|
|
109
|
+
min: number;
|
|
110
|
+
max: number;
|
|
111
|
+
}>;
|
|
112
|
+
readonly automation?: readonly ParamAutomationEvent[];
|
|
113
|
+
}
|
|
114
|
+
interface ParamHandleOptions {
|
|
115
|
+
readonly baseValue?: number;
|
|
116
|
+
/** Synchronous backend write. A thrown failure leaves the snapshot unchanged. */
|
|
117
|
+
readonly apply?: (value: number) => void;
|
|
118
|
+
}
|
|
119
|
+
/** One authoritative numeric parameter, shared by any number of controls. */
|
|
120
|
+
declare class ParamHandle {
|
|
121
|
+
readonly descriptor: ParamDescriptor;
|
|
122
|
+
private value;
|
|
123
|
+
private readonly apply?;
|
|
124
|
+
private applying;
|
|
125
|
+
private bus?;
|
|
126
|
+
private audioContext?;
|
|
127
|
+
private releasingAudio;
|
|
128
|
+
private preparingAudio;
|
|
129
|
+
private bindingAudio;
|
|
130
|
+
private readonly audioTargets;
|
|
131
|
+
private readonly listeners;
|
|
132
|
+
constructor(descriptor: ParamDescriptor, options?: ParamHandleOptions);
|
|
133
|
+
get snapshot(): ParamSnapshot;
|
|
134
|
+
/** Lazily prepares one context's full-value CV bus. */
|
|
135
|
+
audio(context: BaseAudioContext): ParamAudioBus;
|
|
136
|
+
/** Borrow a native target; lazy bindings need no nodes until modulation starts. */
|
|
137
|
+
bindAudioParam(context: BaseAudioContext, param: AudioParam, options?: {
|
|
138
|
+
lazy?: boolean;
|
|
139
|
+
}): ConnectionLease;
|
|
140
|
+
connectModulation(signal: ControlSignal, options: ParamMappingOptions): ParamMapping;
|
|
141
|
+
/**
|
|
142
|
+
* Replaces base automation using a clock captured before planning the events.
|
|
143
|
+
* referenceTime is absolute AudioContext seconds and defaults to call entry;
|
|
144
|
+
* it must be finite, nonnegative and no
|
|
145
|
+
* later than context.currentTime. Events must be ordered at or after it.
|
|
146
|
+
* Clock advance during submission evaluates elapsed ramps and retains their
|
|
147
|
+
* future endpoints. An empty schedule holds the current modeled base.
|
|
148
|
+
* Native clock crossings receive bounded repair; prolonged stalls can underrun.
|
|
149
|
+
*/
|
|
150
|
+
scheduleAutomation(context: BaseAudioContext, events: readonly ParamAutomationEvent[], referenceTime?: number): void;
|
|
151
|
+
/** Cancels the future trajectory and holds its current modeled base. */
|
|
152
|
+
cancelAutomation(): void;
|
|
153
|
+
/** Dispose only this context's CV graph, keeping the shared parameter reusable. */
|
|
154
|
+
releaseAudio(context: BaseAudioContext): void;
|
|
155
|
+
setBaseValue(value: number): void;
|
|
156
|
+
subscribe(listener: (snapshot: ParamSnapshot) => void): () => void;
|
|
157
|
+
dispose(): void;
|
|
158
|
+
private assertAudio;
|
|
159
|
+
private audioChanged;
|
|
160
|
+
private validate;
|
|
161
|
+
private notify;
|
|
162
|
+
}
|
|
163
|
+
/** A borrowed enumeration; creating a surface never transfers handle ownership. */
|
|
164
|
+
declare class ParamSurface implements Iterable<ParamHandle> {
|
|
165
|
+
readonly handles: readonly ParamHandle[];
|
|
166
|
+
private readonly byId;
|
|
167
|
+
constructor(handles: Iterable<ParamHandle>);
|
|
168
|
+
get(id: string): ParamHandle | undefined;
|
|
169
|
+
[Symbol.iterator](): Iterator<ParamHandle>;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export { type ConnectionLease as C, ParamAudioBus as P, type ControlSignal as a, type ParamAutomationEvent as b, type ParamDescriptor as c, ParamHandle as d, type ParamHandleOptions as e, type ParamMapping as f, type ParamMappingOptions as g, type ParamSnapshot as h, ParamSurface as i, createConnectionLease as j };
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/** A precise, revocable resource relationship. It never implies ownership of its endpoints. */
|
|
2
|
+
interface ConnectionLease {
|
|
3
|
+
readonly active: boolean;
|
|
4
|
+
release(): void;
|
|
5
|
+
}
|
|
6
|
+
/** Mark inactive before cleanup, including when cleanup re-enters or throws. */
|
|
7
|
+
declare function createConnectionLease(cleanup: () => void): ConnectionLease;
|
|
8
|
+
|
|
9
|
+
/** A normalized, domain-neutral control output. The range is its declared bound. */
|
|
10
|
+
interface ControlSignal {
|
|
11
|
+
readonly output: AudioNode;
|
|
12
|
+
readonly rate: 'a-rate' | 'k-rate';
|
|
13
|
+
readonly range: Readonly<{
|
|
14
|
+
min: number;
|
|
15
|
+
max: number;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
18
|
+
/** Additive depth is expressed in the destination parameter's native unit. */
|
|
19
|
+
interface ParamMappingOptions {
|
|
20
|
+
readonly depth: number;
|
|
21
|
+
/** Bipolar normalizes the source to [-1, 1]; unipolar to [0, 1]. */
|
|
22
|
+
readonly polarity?: 'bipolar' | 'unipolar';
|
|
23
|
+
}
|
|
24
|
+
interface ParamMapping extends ConnectionLease {
|
|
25
|
+
readonly depth: number;
|
|
26
|
+
readonly polarity: 'bipolar' | 'unipolar';
|
|
27
|
+
setDepth(depth: number): void;
|
|
28
|
+
}
|
|
29
|
+
interface ParamAutomationEvent {
|
|
30
|
+
readonly type: 'set' | 'linear' | 'exponential';
|
|
31
|
+
readonly value: number;
|
|
32
|
+
/** Absolute seconds on this AudioContext's clock. */
|
|
33
|
+
readonly time: number;
|
|
34
|
+
}
|
|
35
|
+
/** One full-value CV bus: base lives here and every target has intrinsic zero. */
|
|
36
|
+
declare class ParamAudioBus {
|
|
37
|
+
private readonly changed;
|
|
38
|
+
readonly context: BaseAudioContext;
|
|
39
|
+
readonly rate: 'a-rate' | 'k-rate';
|
|
40
|
+
private readonly source;
|
|
41
|
+
private readonly bindings;
|
|
42
|
+
private readonly connections;
|
|
43
|
+
private events;
|
|
44
|
+
private baseline;
|
|
45
|
+
private startTime;
|
|
46
|
+
private disposed;
|
|
47
|
+
private changing;
|
|
48
|
+
constructor(context: BaseAudioContext, baseValue: number, rate: 'a-rate' | 'k-rate', changed?: () => void);
|
|
49
|
+
get active(): boolean;
|
|
50
|
+
get automation(): readonly ParamAutomationEvent[];
|
|
51
|
+
get mappings(): readonly ParamMapping[];
|
|
52
|
+
get estimatedRange(): Readonly<{
|
|
53
|
+
min: number;
|
|
54
|
+
max: number;
|
|
55
|
+
}>;
|
|
56
|
+
/** Exact model of this bus's scheduled base; not a sample of effective CV. */
|
|
57
|
+
baseValueAt(time: number): number;
|
|
58
|
+
bind(param: AudioParam): ConnectionLease;
|
|
59
|
+
connect(signal: ControlSignal, options: ParamMappingOptions): ParamMapping;
|
|
60
|
+
setBaseValue(value: number): void;
|
|
61
|
+
/**
|
|
62
|
+
* Replaces base automation anchored at the modeled base at referenceTime.
|
|
63
|
+
* referenceTime is absolute seconds on this bus's AudioContext clock.
|
|
64
|
+
* Capture referenceTime before planning; it defaults to this call's audio time.
|
|
65
|
+
* Events must be ordered at or after that finite, nonnegative, nonfuture time.
|
|
66
|
+
* Elapsed portions are evaluated at submission, preserving future ramp endpoints.
|
|
67
|
+
* An empty schedule holds the current base instead.
|
|
68
|
+
* Native clock crossings receive bounded repair; prolonged stalls can underrun.
|
|
69
|
+
*/
|
|
70
|
+
schedule(events: readonly ParamAutomationEvent[], referenceTime?: number): void;
|
|
71
|
+
dispose(): void;
|
|
72
|
+
private validateOffset;
|
|
73
|
+
private assertLive;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** Metadata for one numeric base value; modulation mappings are separate. */
|
|
77
|
+
interface ParamDescriptor {
|
|
78
|
+
readonly id: string;
|
|
79
|
+
readonly label?: string;
|
|
80
|
+
readonly unit: string;
|
|
81
|
+
readonly range: Readonly<{
|
|
82
|
+
min: number;
|
|
83
|
+
max: number;
|
|
84
|
+
}>;
|
|
85
|
+
/** Optional UI viewport within the legal range; it never restricts writes. */
|
|
86
|
+
readonly displayRange?: Readonly<{
|
|
87
|
+
min: number;
|
|
88
|
+
max: number;
|
|
89
|
+
}>;
|
|
90
|
+
readonly defaultValue: number;
|
|
91
|
+
/** Suggested UI increment, not an implicit quantization command. */
|
|
92
|
+
readonly step?: number;
|
|
93
|
+
readonly scale?: 'linear' | 'logarithmic';
|
|
94
|
+
readonly updateTiming?: 'synchronous' | 'scheduled';
|
|
95
|
+
readonly modulation?: 'none' | 'audio-rate' | 'control-rate';
|
|
96
|
+
}
|
|
97
|
+
interface ParamSnapshot {
|
|
98
|
+
readonly baseValue: number;
|
|
99
|
+
readonly revision: number;
|
|
100
|
+
/** Advances only for committed base writes, not CV graph/automation notifications. */
|
|
101
|
+
readonly baseRevision: number;
|
|
102
|
+
readonly disposed: boolean;
|
|
103
|
+
/** AudioParam.value is intrinsic state, not total effective readback. */
|
|
104
|
+
readonly effectiveReadback: Readonly<{
|
|
105
|
+
status: 'unavailable';
|
|
106
|
+
}>;
|
|
107
|
+
/** Predicted bounds from declared sources, never sampled effective state. */
|
|
108
|
+
readonly modulationRange?: Readonly<{
|
|
109
|
+
min: number;
|
|
110
|
+
max: number;
|
|
111
|
+
}>;
|
|
112
|
+
readonly automation?: readonly ParamAutomationEvent[];
|
|
113
|
+
}
|
|
114
|
+
interface ParamHandleOptions {
|
|
115
|
+
readonly baseValue?: number;
|
|
116
|
+
/** Synchronous backend write. A thrown failure leaves the snapshot unchanged. */
|
|
117
|
+
readonly apply?: (value: number) => void;
|
|
118
|
+
}
|
|
119
|
+
/** One authoritative numeric parameter, shared by any number of controls. */
|
|
120
|
+
declare class ParamHandle {
|
|
121
|
+
readonly descriptor: ParamDescriptor;
|
|
122
|
+
private value;
|
|
123
|
+
private readonly apply?;
|
|
124
|
+
private applying;
|
|
125
|
+
private bus?;
|
|
126
|
+
private audioContext?;
|
|
127
|
+
private releasingAudio;
|
|
128
|
+
private preparingAudio;
|
|
129
|
+
private bindingAudio;
|
|
130
|
+
private readonly audioTargets;
|
|
131
|
+
private readonly listeners;
|
|
132
|
+
constructor(descriptor: ParamDescriptor, options?: ParamHandleOptions);
|
|
133
|
+
get snapshot(): ParamSnapshot;
|
|
134
|
+
/** Lazily prepares one context's full-value CV bus. */
|
|
135
|
+
audio(context: BaseAudioContext): ParamAudioBus;
|
|
136
|
+
/** Borrow a native target; lazy bindings need no nodes until modulation starts. */
|
|
137
|
+
bindAudioParam(context: BaseAudioContext, param: AudioParam, options?: {
|
|
138
|
+
lazy?: boolean;
|
|
139
|
+
}): ConnectionLease;
|
|
140
|
+
connectModulation(signal: ControlSignal, options: ParamMappingOptions): ParamMapping;
|
|
141
|
+
/**
|
|
142
|
+
* Replaces base automation using a clock captured before planning the events.
|
|
143
|
+
* referenceTime is absolute AudioContext seconds and defaults to call entry;
|
|
144
|
+
* it must be finite, nonnegative and no
|
|
145
|
+
* later than context.currentTime. Events must be ordered at or after it.
|
|
146
|
+
* Clock advance during submission evaluates elapsed ramps and retains their
|
|
147
|
+
* future endpoints. An empty schedule holds the current modeled base.
|
|
148
|
+
* Native clock crossings receive bounded repair; prolonged stalls can underrun.
|
|
149
|
+
*/
|
|
150
|
+
scheduleAutomation(context: BaseAudioContext, events: readonly ParamAutomationEvent[], referenceTime?: number): void;
|
|
151
|
+
/** Cancels the future trajectory and holds its current modeled base. */
|
|
152
|
+
cancelAutomation(): void;
|
|
153
|
+
/** Dispose only this context's CV graph, keeping the shared parameter reusable. */
|
|
154
|
+
releaseAudio(context: BaseAudioContext): void;
|
|
155
|
+
setBaseValue(value: number): void;
|
|
156
|
+
subscribe(listener: (snapshot: ParamSnapshot) => void): () => void;
|
|
157
|
+
dispose(): void;
|
|
158
|
+
private assertAudio;
|
|
159
|
+
private audioChanged;
|
|
160
|
+
private validate;
|
|
161
|
+
private notify;
|
|
162
|
+
}
|
|
163
|
+
/** A borrowed enumeration; creating a surface never transfers handle ownership. */
|
|
164
|
+
declare class ParamSurface implements Iterable<ParamHandle> {
|
|
165
|
+
readonly handles: readonly ParamHandle[];
|
|
166
|
+
private readonly byId;
|
|
167
|
+
constructor(handles: Iterable<ParamHandle>);
|
|
168
|
+
get(id: string): ParamHandle | undefined;
|
|
169
|
+
[Symbol.iterator](): Iterator<ParamHandle>;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export { type ConnectionLease as C, ParamAudioBus as P, type ControlSignal as a, type ParamAutomationEvent as b, type ParamDescriptor as c, ParamHandle as d, type ParamHandleOptions as e, type ParamMapping as f, type ParamMappingOptions as g, type ParamSnapshot as h, ParamSurface as i, createConnectionLease as j };
|
package/dist/player.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users
|
|
1
|
+
{"version":3,"sources":["/private/tmp/claude-501/-Users-mamingchen-GitHub-public-WebMusic/77eac0d8-82c0-45c6-aba8-0cd73cfd2b1b/scratchpad/release-0.4.0/platform/kernel/dist/player.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,oVAAC","file":"/private/tmp/claude-501/-Users-mamingchen-GitHub-public-WebMusic/77eac0d8-82c0-45c6-aba8-0cd73cfd2b1b/scratchpad/release-0.4.0/platform/kernel/dist/player.cjs"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunk3YTKIKKXcjs = require('./chunk-3YTKIKKX.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkRZBLPM3Lcjs = require('./chunk-RZBLPM3L.cjs');
|
|
10
|
+
require('./chunk-7ZTZZ5PN.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
exports.ProcessorRing = _chunkRZBLPM3Lcjs.ProcessorRing; exports.createFFT = _chunk3YTKIKKXcjs.createFFT; exports.createSpectralFrame = _chunk3YTKIKKXcjs.createSpectralFrame; exports.defineProcessor = _chunk3YTKIKKXcjs.defineProcessor; exports.hannWindow = _chunk3YTKIKKXcjs.hannWindow;
|
|
18
|
+
//# sourceMappingURL=processor-worklet.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/private/tmp/claude-501/-Users-mamingchen-GitHub-public-WebMusic/77eac0d8-82c0-45c6-aba8-0cd73cfd2b1b/scratchpad/release-0.4.0/platform/kernel/dist/processor-worklet.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,8RAAC","file":"/private/tmp/claude-501/-Users-mamingchen-GitHub-public-WebMusic/77eac0d8-82c0-45c6-aba8-0cd73cfd2b1b/scratchpad/release-0.4.0/platform/kernel/dist/processor-worklet.cjs"}
|