@opendaw/studio-core 0.0.130 → 0.0.132
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/dist/AssetService.d.ts.map +1 -1
- package/dist/AssetService.js +11 -2
- package/dist/AudioOfflineRenderer.js +1 -1
- package/dist/EffectBox.d.ts +2 -2
- package/dist/EffectBox.d.ts.map +1 -1
- package/dist/EffectFactories.d.ts +3 -0
- package/dist/EffectFactories.d.ts.map +1 -1
- package/dist/EffectFactories.js +19 -3
- package/dist/Engine.d.ts +1 -1
- package/dist/Engine.d.ts.map +1 -1
- package/dist/EngineFacade.d.ts +1 -1
- package/dist/EngineFacade.d.ts.map +1 -1
- package/dist/EngineFacade.js +2 -2
- package/dist/EngineWorklet.d.ts +1 -1
- package/dist/EngineWorklet.d.ts.map +1 -1
- package/dist/EngineWorklet.js +9 -46
- package/dist/MonitoringRouter.d.ts +10 -0
- package/dist/MonitoringRouter.d.ts.map +1 -0
- package/dist/MonitoringRouter.js +89 -0
- package/dist/capture/CaptureAudio.d.ts +10 -0
- package/dist/capture/CaptureAudio.d.ts.map +1 -1
- package/dist/capture/CaptureAudio.js +105 -30
- package/dist/capture/RecordAudio.d.ts.map +1 -1
- package/dist/capture/RecordAudio.js +10 -2
- package/dist/capture/Recording.js +1 -1
- package/dist/processors.js +28 -28
- package/dist/processors.js.map +4 -4
- package/dist/project/AudioWavExport.d.ts +6 -0
- package/dist/project/AudioWavExport.d.ts.map +1 -0
- package/dist/project/AudioWavExport.js +15 -0
- package/dist/project/NoteMidiExport.d.ts +9 -0
- package/dist/project/NoteMidiExport.d.ts.map +1 -0
- package/dist/project/NoteMidiExport.js +27 -0
- package/dist/project/Project.d.ts.map +1 -1
- package/dist/project/Project.js +1 -2
- package/dist/project/ProjectApi.d.ts +3 -1
- package/dist/project/ProjectApi.d.ts.map +1 -1
- package/dist/project/ProjectApi.js +8 -0
- package/dist/project/ProjectStorage.d.ts.map +1 -1
- package/dist/project/ProjectStorage.js +1 -0
- package/dist/project/audio/AudioContentModifier.d.ts.map +1 -1
- package/dist/project/audio/AudioContentModifier.js +43 -3
- package/dist/project/index.d.ts +2 -0
- package/dist/project/index.d.ts.map +1 -1
- package/dist/project/index.js +2 -0
- package/dist/project/migration/MigrateValueEventCollection.test.js +3 -3
- package/dist/samples/OpenSampleAPI.d.ts +1 -0
- package/dist/samples/OpenSampleAPI.d.ts.map +1 -1
- package/dist/samples/OpenSampleAPI.js +1 -0
- package/dist/samples/SampleService.js +1 -1
- package/dist/soundfont/DefaultSoundfontLoader.d.ts.map +1 -1
- package/dist/soundfont/DefaultSoundfontLoader.js +3 -0
- package/dist/soundfont/OpenSoundfontAPI.d.ts +1 -0
- package/dist/soundfont/OpenSoundfontAPI.d.ts.map +1 -1
- package/dist/soundfont/OpenSoundfontAPI.js +1 -0
- package/dist/soundfont/SoundfontService.js +1 -1
- package/dist/sync-log/SyncLogWriter.d.ts.map +1 -1
- package/dist/sync-log/SyncLogWriter.js +3 -2
- package/dist/ui/clipboard/ClipboardUtils.js +1 -1
- package/dist/ui/clipboard/types/DevicesClipboardHandler.d.ts.map +1 -1
- package/dist/ui/clipboard/types/DevicesClipboardHandler.js +22 -12
- package/dist/ui/clipboard/types/DevicesClipboardHandler.test.js +124 -4
- package/dist/ysync/YService.d.ts.map +1 -1
- package/dist/ysync/YService.js +0 -5
- package/dist/ysync/YSync.d.ts +1 -0
- package/dist/ysync/YSync.d.ts.map +1 -1
- package/dist/ysync/YSync.js +127 -84
- package/dist/ysync/YSync.test.d.ts +2 -0
- package/dist/ysync/YSync.test.d.ts.map +1 -0
- package/dist/ysync/YSync.test.js +259 -0
- package/package.json +16 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssetService.d.ts","sourceRoot":"","sources":["../src/AssetService.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,EAKL,QAAQ,EACR,QAAQ,
|
|
1
|
+
{"version":3,"file":"AssetService.d.ts","sourceRo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Y;IAE/C,MAAM,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAI1D,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE,YAAY,CAAC,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC;IAExD,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE;QAAE,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,KAAK,IAAI,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;cAkDjG,WAAW,CAAC,QAAQ,EAAE,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAuChH,SAAS,CAAC,QAAQ,CAAC,eAAe,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;CAClE"}
|
package/dist/AssetService.js
CHANGED
|
@@ -48,10 +48,19 @@ export class AssetService {
|
|
|
48
48
|
});
|
|
49
49
|
continue;
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const importResult = await Promises.tryCatch(this.importFile({
|
|
52
|
+
uuid, name: files[0].name, arrayBuffer: readResult.value, progressHandler: Progress.Empty
|
|
53
|
+
}));
|
|
54
|
+
if (importResult.status === "rejected") {
|
|
55
|
+
await RuntimeNotifier.info({
|
|
56
|
+
headline: `${this.nameSingular} Import Failed`,
|
|
57
|
+
message: `'${files[0].name}' could not be imported: ${String(importResult.error)}`
|
|
58
|
+
});
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
52
61
|
await RuntimeNotifier.info({
|
|
53
62
|
headline: "Replaced Asset",
|
|
54
|
-
message: `${
|
|
63
|
+
message: `${importResult.value.name} has been replaced`
|
|
55
64
|
});
|
|
56
65
|
manager.invalidate(uuid);
|
|
57
66
|
}
|
|
@@ -28,7 +28,7 @@ export var AudioOfflineRenderer;
|
|
|
28
28
|
exportConfiguration: optExportConfiguration.unwrapOrUndefined()
|
|
29
29
|
});
|
|
30
30
|
engineWorklet.play();
|
|
31
|
-
engineWorklet.connect(context.destination);
|
|
31
|
+
engineWorklet.connect(context.destination, 0);
|
|
32
32
|
await engineWorklet.isReady();
|
|
33
33
|
while (!await engineWorklet.queryLoadingComplete()) {
|
|
34
34
|
await Wait.timeSpan(TimeSpan.seconds(1));
|
package/dist/EffectBox.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ArpeggioDeviceBox, MaximizerDeviceBox, CompressorDeviceBox, CrusherDeviceBox, DattorroReverbDeviceBox, DelayDeviceBox, FoldDeviceBox, GateDeviceBox, ModularDeviceBox, NeuralAmpDeviceBox, PitchDeviceBox, RevampDeviceBox, ReverbDeviceBox, StereoToolDeviceBox, TidalDeviceBox, UnknownAudioEffectDeviceBox, UnknownMidiEffectDeviceBox, VelocityDeviceBox, WaveshaperDeviceBox, SpielwerkDeviceBox, WerkstattDeviceBox, ZeitgeistDeviceBox } from "@opendaw/studio-boxes";
|
|
2
|
-
export type EffectBox = ArpeggioDeviceBox | PitchDeviceBox | VelocityDeviceBox | ZeitgeistDeviceBox | UnknownMidiEffectDeviceBox | SpielwerkDeviceBox | MaximizerDeviceBox | DelayDeviceBox | ReverbDeviceBox | RevampDeviceBox | StereoToolDeviceBox | TidalDeviceBox | ModularDeviceBox | UnknownAudioEffectDeviceBox | CompressorDeviceBox | GateDeviceBox | CrusherDeviceBox | FoldDeviceBox | DattorroReverbDeviceBox | NeuralAmpDeviceBox | WaveshaperDeviceBox | WerkstattDeviceBox;
|
|
1
|
+
import { ArpeggioDeviceBox, MaximizerDeviceBox, CompressorDeviceBox, CrusherDeviceBox, DattorroReverbDeviceBox, DelayDeviceBox, FoldDeviceBox, GateDeviceBox, ModularDeviceBox, NeuralAmpDeviceBox, PitchDeviceBox, RevampDeviceBox, ReverbDeviceBox, StereoToolDeviceBox, TidalDeviceBox, UnknownAudioEffectDeviceBox, UnknownMidiEffectDeviceBox, VelocityDeviceBox, VocoderDeviceBox, WaveshaperDeviceBox, SpielwerkDeviceBox, WerkstattDeviceBox, ZeitgeistDeviceBox } from "@opendaw/studio-boxes";
|
|
2
|
+
export type EffectBox = ArpeggioDeviceBox | PitchDeviceBox | VelocityDeviceBox | ZeitgeistDeviceBox | UnknownMidiEffectDeviceBox | SpielwerkDeviceBox | MaximizerDeviceBox | DelayDeviceBox | ReverbDeviceBox | RevampDeviceBox | StereoToolDeviceBox | TidalDeviceBox | ModularDeviceBox | UnknownAudioEffectDeviceBox | CompressorDeviceBox | GateDeviceBox | CrusherDeviceBox | FoldDeviceBox | DattorroReverbDeviceBox | NeuralAmpDeviceBox | VocoderDeviceBox | WaveshaperDeviceBox | WerkstattDeviceBox;
|
|
3
3
|
//# sourceMappingURL=EffectBox.d.ts.map
|
package/dist/EffectBox.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EffectBox.d.ts","sourceRoot":"","sources":["../src/EffectBox.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,cAAc,EACd,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,2BAA2B,EAC3B,0BAA0B,EAC1B,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EACrB,MAAM,uBAAuB,CAAA;AAE9B,MAAM,MAAM,SAAS,GACf,iBAAiB,GAAG,cAAc,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,0BAA0B,GACxG,kBAAkB,GAClB,kBAAkB,GAAG,cAAc,GAAG,eAAe,GAAG,eAAe,GAAG,mBAAmB,GAAG,cAAc,GAC9G,gBAAgB,GAAG,2BAA2B,GAAG,mBAAmB,GAAG,aAAa,GACpF,gBAAgB,GAAG,aAAa,GAAG,uBAAuB,GAAG,kBAAkB,GAAG,mBAAmB,
|
|
1
|
+
{"version":3,"file":"EffectBox.d.ts","sourceRoot":"","sources":["../src/EffectBox.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,cAAc,EACd,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,2BAA2B,EAC3B,0BAA0B,EAC1B,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EACrB,MAAM,uBAAuB,CAAA;AAE9B,MAAM,MAAM,SAAS,GACf,iBAAiB,GAAG,cAAc,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,0BAA0B,GACxG,kBAAkB,GAClB,kBAAkB,GAAG,cAAc,GAAG,eAAe,GAAG,eAAe,GAAG,mBAAmB,GAAG,cAAc,GAC9G,gBAAgB,GAAG,2BAA2B,GAAG,mBAAmB,GAAG,aAAa,GACpF,gBAAgB,GAAG,aAAa,GAAG,uBAAuB,GAAG,kBAAkB,GAAG,gBAAgB,GAClG,mBAAmB,GAAG,kBAAkB,CAAA"}
|
|
@@ -18,6 +18,7 @@ export declare namespace EffectFactories {
|
|
|
18
18
|
const Tidal: EffectFactory;
|
|
19
19
|
const Revamp: EffectFactory;
|
|
20
20
|
const NeuralAmp: EffectFactory;
|
|
21
|
+
const Vocoder: EffectFactory;
|
|
21
22
|
const Werkstatt: EffectFactory;
|
|
22
23
|
const Modular: EffectFactory;
|
|
23
24
|
const MidiNamed: {
|
|
@@ -40,6 +41,7 @@ export declare namespace EffectFactories {
|
|
|
40
41
|
StereoTool: EffectFactory;
|
|
41
42
|
Tidal: EffectFactory;
|
|
42
43
|
NeuralAmp: EffectFactory;
|
|
44
|
+
Vocoder: EffectFactory;
|
|
43
45
|
Waveshaper: EffectFactory;
|
|
44
46
|
Werkstatt: EffectFactory;
|
|
45
47
|
};
|
|
@@ -58,6 +60,7 @@ export declare namespace EffectFactories {
|
|
|
58
60
|
StereoTool: EffectFactory;
|
|
59
61
|
Tidal: EffectFactory;
|
|
60
62
|
NeuralAmp: EffectFactory;
|
|
63
|
+
Vocoder: EffectFactory;
|
|
61
64
|
Waveshaper: EffectFactory;
|
|
62
65
|
Werkstatt: EffectFactory;
|
|
63
66
|
Arpeggio: EffectFactory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EffectFactories.d.ts","sourceRoot":"","sources":["../src/EffectFactories.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EffectFactories.d.ts","sourceRoot":"","sources":["../src/EffectFactories.ts"],"names":[],"mappings":"AA+BA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAA;AAG7C,yBAAiB,eAAe,CAAC;IACtB,MAAM,QAAQ,EAAE,aAetB,CAAA;IAEM,MAAM,KAAK,EAAE,aAenB,CAAA;IAEM,MAAM,QAAQ,EAAE,aAetB,CAAA;IAEM,MAAM,SAAS,EAAE,aAgCvB,CAAA;IAEM,MAAM,SAAS,EAAE,aAevB,CAAA;IAEM,MAAM,UAAU,EAAE,aAexB,CAAA;IAEM,MAAM,KAAK,EAAE,aAgBnB,CAAA;IAEM,MAAM,cAAc,EAAE,aAe5B,CAAA;IAEM,MAAM,SAAS,EAAE,aAevB,CAAA;IAEM,MAAM,UAAU,EAAE,aAexB,CAAA;IAEM,MAAM,IAAI,EAAE,aAelB,CAAA;IAEM,MAAM,MAAM,EAAE,aAgBpB,CAAA;IAEM,MAAM,OAAO,EAAE,aAerB,CAAA;IAEM,MAAM,IAAI,EAAE,aAelB,CAAA;IAEM,MAAM,UAAU,EAAE,aAexB,CAAA;IAEM,MAAM,KAAK,EAAE,aAgBnB,CAAA;IAEM,MAAM,MAAM,EAAE,aAepB,CAAA;IAEM,MAAM,SAAS,EAAE,aAevB,CAAA;IAEM,MAAM,OAAO,EAAE,aAerB,CAAA;IAEM,MAAM,SAAS,EAAE,aAevB,CAAA;IAEM,MAAM,OAAO,EAAE,aAmDrB,CAAA;IAEM,MAAM,SAAS;;;;;;KAMrB,CAAA;IAEM,MAAM,UAAU;;;;;;;;;;;;;;;;KAgBtB,CAAA;IACM,MAAM,QAAQ,EAAE,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAChC,CAAA;IACrB,MAAM,SAAS,EAAE,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAChC,CAAA;IACtB,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;KAAgC,CAAA;IACxD,KAAY,cAAc,GAAG,MAAM,OAAO,SAAS,CAAA;IACnD,KAAY,eAAe,GAAG,MAAM,OAAO,UAAU,CAAA;CACxD"}
|
package/dist/EffectFactories.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UUID } from "@opendaw/lib-std";
|
|
2
|
-
import { ArpeggioDeviceBox, CompressorDeviceBox, CrusherDeviceBox, DattorroReverbDeviceBox, DelayDeviceBox, FoldDeviceBox, GateDeviceBox, GrooveShuffleBox, MaximizerDeviceBox, ModularAudioInputBox, ModularAudioOutputBox, ModularBox, ModularDeviceBox, ModuleConnectionBox, NeuralAmpDeviceBox, PitchDeviceBox, RevampDeviceBox, ReverbDeviceBox, StereoToolDeviceBox, TidalDeviceBox, SpielwerkDeviceBox, VelocityDeviceBox, WaveshaperDeviceBox, WerkstattDeviceBox, ZeitgeistDeviceBox } from "@opendaw/studio-boxes";
|
|
2
|
+
import { ArpeggioDeviceBox, CompressorDeviceBox, CrusherDeviceBox, DattorroReverbDeviceBox, DelayDeviceBox, FoldDeviceBox, GateDeviceBox, GrooveShuffleBox, MaximizerDeviceBox, ModularAudioInputBox, ModularAudioOutputBox, ModularBox, ModularDeviceBox, ModuleConnectionBox, NeuralAmpDeviceBox, PitchDeviceBox, RevampDeviceBox, ReverbDeviceBox, StereoToolDeviceBox, TidalDeviceBox, SpielwerkDeviceBox, VelocityDeviceBox, VocoderDeviceBox, WaveshaperDeviceBox, WerkstattDeviceBox, ZeitgeistDeviceBox } from "@opendaw/studio-boxes";
|
|
3
3
|
import { IconSymbol } from "@opendaw/studio-enums";
|
|
4
4
|
import { DeviceManualUrls } from "@opendaw/studio-adapters";
|
|
5
5
|
import { EffectParameterDefaults } from "./EffectParameterDefaults";
|
|
@@ -288,6 +288,21 @@ export var EffectFactories;
|
|
|
288
288
|
box.host.refer(hostField);
|
|
289
289
|
})
|
|
290
290
|
};
|
|
291
|
+
EffectFactories.Vocoder = {
|
|
292
|
+
defaultName: "Vocoder",
|
|
293
|
+
defaultIcon: IconSymbol.Vocoder,
|
|
294
|
+
briefDescription: "Vocoder",
|
|
295
|
+
description: "Classic analysis/synthesis vocoder with independent carrier and modulator ranges.",
|
|
296
|
+
manualPage: DeviceManualUrls.Vocoder,
|
|
297
|
+
separatorBefore: false,
|
|
298
|
+
external: false,
|
|
299
|
+
type: "audio",
|
|
300
|
+
create: ({ boxGraph }, hostField, index) => VocoderDeviceBox.create(boxGraph, UUID.generate(), (box) => {
|
|
301
|
+
box.label.setValue("Vocoder");
|
|
302
|
+
box.index.setValue(index);
|
|
303
|
+
box.host.refer(hostField);
|
|
304
|
+
})
|
|
305
|
+
};
|
|
291
306
|
EffectFactories.Werkstatt = {
|
|
292
307
|
defaultName: "Werkstatt",
|
|
293
308
|
defaultIcon: IconSymbol.Code,
|
|
@@ -366,8 +381,9 @@ export var EffectFactories;
|
|
|
366
381
|
Tidal: // Stereo Tool
|
|
367
382
|
EffectFactories.Tidal,
|
|
368
383
|
NeuralAmp: EffectFactories.NeuralAmp, // Tone3000
|
|
369
|
-
|
|
370
|
-
EffectFactories.
|
|
384
|
+
Vocoder: // Tone3000
|
|
385
|
+
EffectFactories.Vocoder,
|
|
386
|
+
Waveshaper: EffectFactories.Waveshaper,
|
|
371
387
|
Werkstatt: EffectFactories.Werkstatt
|
|
372
388
|
};
|
|
373
389
|
EffectFactories.MidiList = Object.values(EffectFactories.MidiNamed);
|
package/dist/Engine.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface Engine extends Terminable {
|
|
|
25
25
|
scheduleClipStop(trackIds: ReadonlyArray<UUID.Bytes>): void;
|
|
26
26
|
subscribeClipNotification(observer: Observer<ClipNotification>): Subscription;
|
|
27
27
|
subscribeDeviceMessage(uuid: string, listener: Procedure<string>): Subscription;
|
|
28
|
-
registerMonitoringSource(uuid: UUID.Bytes, node: AudioNode, numChannels: 1 | 2): void;
|
|
28
|
+
registerMonitoringSource(uuid: UUID.Bytes, node: AudioNode, numChannels: 1 | 2, destinationNode: AudioNode): void;
|
|
29
29
|
unregisterMonitoringSource(uuid: UUID.Bytes): void;
|
|
30
30
|
get position(): ObservableValue<ppqn>;
|
|
31
31
|
get bpm(): ObservableValue<bpm>;
|
package/dist/Engine.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Engine.d.ts","sourceRoot":"","sources":["../src/Engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,kBAAkB,CAAA;AACpH,OAAO,EAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAC,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAC,gBAAgB,EAAE,iBAAiB,EAAE,UAAU,EAAC,MAAM,0BAA0B,CAAA;AACxF,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA;AAEjC,MAAM,WAAW,MAAO,SAAQ,UAAU;IACtC,IAAI,IAAI,IAAI,CAAA;IACZ,IAAI,IAAI,IAAI,CAAA;IACZ,WAAW,CAAC,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAA;IACjC,gBAAgB;IAChB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,I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AAY,CAAA;IAC9B,IAAI,SAAS,IAAI,MAAM,CAAA;CAC1B"}
|
package/dist/EngineFacade.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export declare class EngineFacade implements Engine {
|
|
|
43
43
|
scheduleClipPlay(clipIds: ReadonlyArray<UUID.Bytes>): void;
|
|
44
44
|
scheduleClipStop(trackIds: ReadonlyArray<UUID.Bytes>): void;
|
|
45
45
|
subscribeDeviceMessage(uuid: string, listener: Procedure<string>): Subscription;
|
|
46
|
-
registerMonitoringSource(uuid: UUID.Bytes, node: AudioNode, numChannels: 1 | 2): void;
|
|
46
|
+
registerMonitoringSource(uuid: UUID.Bytes, node: AudioNode, numChannels: 1 | 2, destinationNode: AudioNode): void;
|
|
47
47
|
unregisterMonitoringSource(uuid: UUID.Bytes): void;
|
|
48
48
|
terminate(): void;
|
|
49
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EngineFacade.d.ts","sourceRoot":"","sources":["../src/EngineFacade.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,sBAAsB,EACtB,GAAG,EACH,QAAQ,EACR,eAAe,EACf,QAAQ,EAER,SAAS,EACT,YAAY,EAEZ,IAAI,EACP,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAC,MAAM,kBAAkB,CAAA;AACrD,OAAO,EACH,gBAAgB,EAChB,iBAAiB,EAGjB,UAAU,EAEb,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA;AAGjC,qBAAa,YAAa,YAAW,MAAM;;;IAqBvC,UAAU,CAAC,OAAO,EAAE,aAAa;IAiBjC,aAAa,IAAI,IAAI;IAErB,cAAc,IAAI,IAAI;IAOtB,IAAI,IAAI,IAAI;IAUZ,IAAI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CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI;IAGnD,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,SAAS,CAAC,GAAG,IAAI;IAGtE,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GAAG,YAAY;IAG7E,cAAc,CAAC,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,YAAY;IAG5D,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,IAAI;IAGxC,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI;IAGpC,gBAAgB,CAAC,OAAO,EAAE,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI;IAG1D,gBAAgB,CAAC,QAAQ,EAAE,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI;IAG3D,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,YAAY;IAG/E,wBAAwB,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,GAAG,CAAC,EAAE,eAAe,EAAE,SAAS,GAAG,IAAI;IAGjH,0BAA0B,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,IAAI;IAIlD,SAAS,IAAI,IAAI;CAIpB"}
|
package/dist/EngineFacade.js
CHANGED
|
@@ -94,8 +94,8 @@ export class EngineFacade {
|
|
|
94
94
|
subscribeDeviceMessage(uuid, listener) {
|
|
95
95
|
return this.#worklet.unwrap("No worklet to subscribeDeviceMessage").subscribeDeviceMessage(uuid, listener);
|
|
96
96
|
}
|
|
97
|
-
registerMonitoringSource(uuid, node, numChannels) {
|
|
98
|
-
this.#worklet.ifSome(worklet => worklet.registerMonitoringSource(uuid, node, numChannels));
|
|
97
|
+
registerMonitoringSource(uuid, node, numChannels, destinationNode) {
|
|
98
|
+
this.#worklet.ifSome(worklet => worklet.registerMonitoringSource(uuid, node, numChannels, destinationNode));
|
|
99
99
|
}
|
|
100
100
|
unregisterMonitoringSource(uuid) {
|
|
101
101
|
this.#worklet.ifSome(worklet => worklet.unregisterMonitoringSource(uuid));
|
package/dist/EngineWorklet.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export declare class EngineWorklet extends AudioWorkletNode implements Engine {
|
|
|
40
40
|
scheduleClipStop(trackIds: ReadonlyArray<UUID.Bytes>): void;
|
|
41
41
|
subscribeClipNotification(observer: Observer<ClipNotification>): Subscription;
|
|
42
42
|
subscribeDeviceMessage(uuid: string, listener: Procedure<string>): Subscription;
|
|
43
|
-
registerMonitoringSource(uuid: UUID.Bytes, node: AudioNode, numChannels: 1 | 2): void;
|
|
43
|
+
registerMonitoringSource(uuid: UUID.Bytes, node: AudioNode, numChannels: 1 | 2, destinationNode: AudioNode): void;
|
|
44
44
|
unregisterMonitoringSource(uuid: UUID.Bytes): void;
|
|
45
45
|
terminate(): void;
|
|
46
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EngineWorklet.d.ts","sourceRoot":"","sources":["../src/EngineWorklet.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,GAAG,
|
|
1
|
+
{"version":3,"file":"EngineWorklet.d.ts","sourceRoot":"","sources":["../src/EngineWorklet.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,GAAG,EACH,sBAAsB,EAEtB,QAAQ,EACR,eAAe,EACf,QAAQ,EAER,SAAS,EAET,YAAY,EAGZ,IAAI,EACP,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAgB,MAAM,kBAAkB,CAAA;AAEpE,OAAO,EACH,gBAAgB,EAIhB,cAAc,EAKd,wBAAwB,EAExB,UAAU,EAEV,eAAe,EACf,gBAAgB,EACnB,MAAM,0BAA0B,CAAA;AA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, DefaultObservableValue,
|
|
1
|
+
import { Arrays, DefaultObservableValue, Notifier, Option, SetMultimap, SyncStream, Terminator, UUID } from "@opendaw/lib-std";
|
|
2
2
|
import { RenderQuantum } from "@opendaw/lib-dsp";
|
|
3
3
|
import { Communicator, Messenger } from "@opendaw/lib-runtime";
|
|
4
4
|
import { EngineSettingsSchema, EngineStateSchema, ExportStemsConfiguration, PERF_BUFFER_SIZE, PreferencesHost } from "@opendaw/studio-adapters";
|
|
5
5
|
import { SyncSource } from "@opendaw/lib-box";
|
|
6
6
|
import { AnimationFrame } from "@opendaw/lib-dom";
|
|
7
|
+
import { MonitoringRouter } from "./MonitoringRouter";
|
|
7
8
|
import { MIDIReceiver } from "./midi";
|
|
8
9
|
import { HRClockWorker } from "./HRClockWorker";
|
|
9
10
|
export class EngineWorklet extends AudioWorkletNode {
|
|
@@ -34,8 +35,7 @@ export class EngineWorklet extends AudioWorkletNode {
|
|
|
34
35
|
#consecutiveOverloadCount = 0;
|
|
35
36
|
#lastCpuLoadUpdate = 0;
|
|
36
37
|
#maxMsSinceLastUpdate = 0;
|
|
37
|
-
#
|
|
38
|
-
#monitoringSources = new Map();
|
|
38
|
+
#monitoringRouter = null;
|
|
39
39
|
constructor(context, project, exportConfiguration, options) {
|
|
40
40
|
const numberOfChannels = ExportStemsConfiguration.countStems(Option.wrap(exportConfiguration)) * 2;
|
|
41
41
|
const budgetMs = (RenderQuantum / context.sampleRate) * 1000;
|
|
@@ -54,8 +54,8 @@ export class EngineWorklet extends AudioWorkletNode {
|
|
|
54
54
|
const controlFlagsSAB = new SharedArrayBuffer(4); // 4 bytes minimum
|
|
55
55
|
super(context, "engine-processor", {
|
|
56
56
|
numberOfInputs: 1,
|
|
57
|
-
numberOfOutputs:
|
|
58
|
-
outputChannelCount: [numberOfChannels],
|
|
57
|
+
numberOfOutputs: 2,
|
|
58
|
+
outputChannelCount: [numberOfChannels, 8],
|
|
59
59
|
processorOptions: {
|
|
60
60
|
syncStreamBuffer: reader.buffer,
|
|
61
61
|
controlFlagsBuffer: controlFlagsSAB,
|
|
@@ -111,6 +111,7 @@ export class EngineWorklet extends AudioWorkletNode {
|
|
|
111
111
|
}
|
|
112
112
|
terminate() { dispatcher.dispatchAndForget(this.terminate); }
|
|
113
113
|
}));
|
|
114
|
+
this.#monitoringRouter = this.#terminator.own(new MonitoringRouter(this, this.#commands));
|
|
114
115
|
const { port, sab } = this.#terminator.own(MIDIReceiver.create(() => context instanceof AudioContext ? context.outputLatency * 1000 : 20, (deviceId, data, relativeTimeInMs) => this.#project.receivedMIDIFromEngine(deviceId, data, relativeTimeInMs)));
|
|
115
116
|
this.#commands.setupMIDI(port, sab);
|
|
116
117
|
Communicator.executor(messenger.channel("engine-to-client"), {
|
|
@@ -230,49 +231,11 @@ export class EngineWorklet extends AudioWorkletNode {
|
|
|
230
231
|
this.#deviceMessageListeners.add(uuid, listener);
|
|
231
232
|
return { terminate: () => this.#deviceMessageListeners.remove(uuid, listener) };
|
|
232
233
|
}
|
|
233
|
-
registerMonitoringSource(uuid, node, numChannels) {
|
|
234
|
-
this.#
|
|
235
|
-
this.#rebuildMonitoringMerger();
|
|
234
|
+
registerMonitoringSource(uuid, node, numChannels, destinationNode) {
|
|
235
|
+
this.#monitoringRouter.registerSource(uuid, node, numChannels, destinationNode);
|
|
236
236
|
}
|
|
237
237
|
unregisterMonitoringSource(uuid) {
|
|
238
|
-
|
|
239
|
-
const entry = this.#monitoringSources.get(key);
|
|
240
|
-
if (isDefined(entry)) {
|
|
241
|
-
entry.node.disconnect();
|
|
242
|
-
this.#monitoringSources.delete(key);
|
|
243
|
-
}
|
|
244
|
-
this.#rebuildMonitoringMerger();
|
|
245
|
-
}
|
|
246
|
-
#rebuildMonitoringMerger() {
|
|
247
|
-
if (isDefined(this.#channelMerger)) {
|
|
248
|
-
this.#channelMerger.disconnect();
|
|
249
|
-
this.#channelMerger = null;
|
|
250
|
-
}
|
|
251
|
-
if (this.#monitoringSources.size === 0) {
|
|
252
|
-
this.#commands.updateMonitoringMap([]);
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
255
|
-
let totalChannels = 0;
|
|
256
|
-
for (const { numChannels } of this.#monitoringSources.values()) {
|
|
257
|
-
totalChannels += numChannels;
|
|
258
|
-
}
|
|
259
|
-
this.#channelMerger = this.context.createChannelMerger(totalChannels);
|
|
260
|
-
this.#channelMerger.connect(this);
|
|
261
|
-
const map = [];
|
|
262
|
-
let channel = 0;
|
|
263
|
-
for (const [uuidString, { node, numChannels }] of this.#monitoringSources) {
|
|
264
|
-
const uuid = UUID.parse(uuidString);
|
|
265
|
-
const splitter = this.context.createChannelSplitter(numChannels);
|
|
266
|
-
node.connect(splitter);
|
|
267
|
-
const channels = [];
|
|
268
|
-
for (let i = 0; i < numChannels; i++) {
|
|
269
|
-
splitter.connect(this.#channelMerger, i, channel);
|
|
270
|
-
channels.push(channel);
|
|
271
|
-
channel++;
|
|
272
|
-
}
|
|
273
|
-
map.push({ uuid, channels });
|
|
274
|
-
}
|
|
275
|
-
this.#commands.updateMonitoringMap(map);
|
|
238
|
+
this.#monitoringRouter.unregisterSource(uuid);
|
|
276
239
|
}
|
|
277
240
|
#updateCpuLoad(budgetMs, project) {
|
|
278
241
|
while (this.#lastPerfReadIndex !== this.#perfIndex) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Terminable, UUID } from "@opendaw/lib-std";
|
|
2
|
+
import { EngineCommands } from "@opendaw/studio-adapters";
|
|
3
|
+
export declare class MonitoringRouter implements Terminable {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(worklet: AudioWorkletNode, commands: EngineCommands);
|
|
6
|
+
registerSource(uuid: UUID.Bytes, sourceNode: AudioNode, numChannels: 1 | 2, destinationNode: AudioNode): void;
|
|
7
|
+
unregisterSource(uuid: UUID.Bytes): void;
|
|
8
|
+
terminate(): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=MonitoringRouter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MonitoringRouter.d.ts","sourceRoot":"","sources":["../src/MonitoringRouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,UAAU,EAAE,IAAI,EAAC,MAAM,kBAAkB,CAAA;AACtF,OAAO,EAAqB,cAAc,EAAC,MAAM,0BAA0B,CAAA;AAW3E,qBAAa,gBAAiB,YAAW,UAAU;;gBAUnC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,cAAc;IAQ/D,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,GAAG,CAAC,EAAE,eAAe,EAAE,SAAS,GAAG,IAAI;IAK7G,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,IAAI;IAuDxC,SAAS,IAAI,IAAI;CAWpB"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { isDefined, UUID } from "@opendaw/lib-std";
|
|
2
|
+
const MAX_MONITORING_CHANNELS = 8;
|
|
3
|
+
export class MonitoringRouter {
|
|
4
|
+
#context;
|
|
5
|
+
#worklet;
|
|
6
|
+
#commands;
|
|
7
|
+
#splitter;
|
|
8
|
+
#sources = UUID.newSet(entry => entry.uuid);
|
|
9
|
+
#inputMerger = null;
|
|
10
|
+
#outputMergers = [];
|
|
11
|
+
constructor(worklet, commands) {
|
|
12
|
+
this.#context = worklet.context;
|
|
13
|
+
this.#worklet = worklet;
|
|
14
|
+
this.#commands = commands;
|
|
15
|
+
this.#splitter = this.#context.createChannelSplitter(MAX_MONITORING_CHANNELS);
|
|
16
|
+
worklet.connect(this.#splitter, 1);
|
|
17
|
+
}
|
|
18
|
+
registerSource(uuid, sourceNode, numChannels, destinationNode) {
|
|
19
|
+
this.#sources.add({ uuid, sourceNode, numChannels, destinationNode }, true);
|
|
20
|
+
this.#rebuild();
|
|
21
|
+
}
|
|
22
|
+
unregisterSource(uuid) {
|
|
23
|
+
this.#sources.removeByKeyIfExist(uuid);
|
|
24
|
+
this.#rebuild();
|
|
25
|
+
}
|
|
26
|
+
#rebuild() {
|
|
27
|
+
if (isDefined(this.#inputMerger)) {
|
|
28
|
+
this.#inputMerger.disconnect();
|
|
29
|
+
this.#inputMerger = null;
|
|
30
|
+
}
|
|
31
|
+
for (const merger of this.#outputMergers) {
|
|
32
|
+
merger.disconnect();
|
|
33
|
+
}
|
|
34
|
+
this.#outputMergers = [];
|
|
35
|
+
if (this.#sources.isEmpty()) {
|
|
36
|
+
this.#commands.updateMonitoringMap([]);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
let totalChannels = 0;
|
|
40
|
+
for (const { numChannels } of this.#sources) {
|
|
41
|
+
totalChannels += numChannels;
|
|
42
|
+
}
|
|
43
|
+
if (totalChannels > MAX_MONITORING_CHANNELS) {
|
|
44
|
+
console.warn(`MonitoringRouter: ${totalChannels} channels requested, max is ${MAX_MONITORING_CHANNELS}. Some sources will not receive effects monitoring.`);
|
|
45
|
+
}
|
|
46
|
+
const usedChannels = Math.min(totalChannels, MAX_MONITORING_CHANNELS);
|
|
47
|
+
this.#inputMerger = this.#context.createChannelMerger(usedChannels);
|
|
48
|
+
this.#inputMerger.connect(this.#worklet);
|
|
49
|
+
const map = [];
|
|
50
|
+
let channel = 0;
|
|
51
|
+
for (const { uuid, sourceNode, numChannels, destinationNode } of this.#sources) {
|
|
52
|
+
if (channel + numChannels > MAX_MONITORING_CHANNELS) {
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
const inputSplitter = this.#context.createChannelSplitter(numChannels);
|
|
56
|
+
sourceNode.connect(inputSplitter);
|
|
57
|
+
const channels = [];
|
|
58
|
+
for (let i = 0; i < numChannels; i++) {
|
|
59
|
+
inputSplitter.connect(this.#inputMerger, i, channel);
|
|
60
|
+
channels.push(channel);
|
|
61
|
+
channel++;
|
|
62
|
+
}
|
|
63
|
+
map.push({ uuid, channels });
|
|
64
|
+
const outputMerger = this.#context.createChannelMerger(2);
|
|
65
|
+
if (numChannels === 2) {
|
|
66
|
+
this.#splitter.connect(outputMerger, channels[0], 0);
|
|
67
|
+
this.#splitter.connect(outputMerger, channels[1], 1);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
this.#splitter.connect(outputMerger, channels[0], 0);
|
|
71
|
+
this.#splitter.connect(outputMerger, channels[0], 1);
|
|
72
|
+
}
|
|
73
|
+
outputMerger.connect(destinationNode);
|
|
74
|
+
this.#outputMergers.push(outputMerger);
|
|
75
|
+
}
|
|
76
|
+
this.#commands.updateMonitoringMap(map);
|
|
77
|
+
}
|
|
78
|
+
terminate() {
|
|
79
|
+
if (isDefined(this.#inputMerger)) {
|
|
80
|
+
this.#inputMerger.disconnect();
|
|
81
|
+
this.#inputMerger = null;
|
|
82
|
+
}
|
|
83
|
+
for (const merger of this.#outputMergers) {
|
|
84
|
+
merger.disconnect();
|
|
85
|
+
}
|
|
86
|
+
this.#outputMergers = [];
|
|
87
|
+
this.#sources.clear();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -19,6 +19,16 @@ export declare class CaptureAudio extends Capture<CaptureAudioBox> {
|
|
|
19
19
|
get streamMediaTrack(): Option<MediaStreamTrack>;
|
|
20
20
|
get outputNode(): Option<AudioNode>;
|
|
21
21
|
get effectiveChannelCount(): number;
|
|
22
|
+
get monitorGainNode(): GainNode;
|
|
23
|
+
get monitorPanNode(): StereoPannerNode;
|
|
24
|
+
get monitorVolumeDb(): number;
|
|
25
|
+
set monitorVolumeDb(value: number);
|
|
26
|
+
get monitorPan(): number;
|
|
27
|
+
set monitorPan(value: number);
|
|
28
|
+
get monitorMuted(): boolean;
|
|
29
|
+
set monitorMuted(value: boolean);
|
|
30
|
+
get monitorOutputDeviceId(): Option<string>;
|
|
31
|
+
setMonitorOutputDevice(deviceId: Option<string>): Promise<void>;
|
|
22
32
|
prepareRecording(): Promise<void>;
|
|
23
33
|
startRecording(): Terminable;
|
|
24
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaptureAudio.d.ts","sourceRoot":"","sources":["../../src/capture/CaptureAudio.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,uBAAuB,EAEvB,MAAM,EAEN,UAAU,EACb,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EAAC,YAAY,EAAE,eAAe,EAAC,MAAM,uBAAuB,CAAA;AACnE,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA;AACjC,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAK/C,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAE/C,qBAAa,YAAa,SAAQ,OAAO,CAAC,eAAe,CAAC;;
|
|
1
|
+
{"version":3,"file":"CaptureAudio.d.ts","sourceRoot":"","sources":["../../src/capture/CaptureAudio.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,uBAAuB,EAEvB,MAAM,EAEN,UAAU,EACb,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EAAC,YAAY,EAAE,eAAe,EAAC,MAAM,uBAAuB,CAAA;AACnE,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA;AACjC,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAK/C,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAE/C,qBAAa,YAAa,SAAQ,OAAO,CAAC,eAAe,CAAC;;gBAsB1C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,eAAe;IA+CjG,IAAI,YAAY,IAAI,OAAO,CAAwC;IACnE,IAAI,cAAc,IAAI,cAAc,CAA8B;IAClE,IAAI,cAAc,CAAC,KAAK,EAAE,cAAc,EAQvC;IACD,IAAI,MAAM,IAAI,MAAM,CAAsB;IAC1C,IAAI,eAAe,IAAI,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAA+B;IACnE,IAAI,eAAe,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,EAAm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