@opendaw/studio-adapters 0.0.85 → 0.0.86
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/MetaData.d.ts +1 -1
- package/dist/MetaData.d.ts.map +1 -1
- package/dist/MetaData.js +2 -2
- package/dist/engine/EnginePreferencesSchema.d.ts.map +1 -1
- package/dist/engine/EnginePreferencesSchema.js +1 -3
- package/dist/factories/AudioUnitFactory.d.ts +1 -1
- package/dist/factories/AudioUnitFactory.d.ts.map +1 -1
- package/dist/factories/AudioUnitFactory.js +2 -2
- package/dist/preset/PresetDecoder.js +2 -2
- package/dist/preset/PresetEncoder.js +2 -2
- package/dist/project/ProjectMandatoryBoxes.d.ts +2 -2
- package/dist/project/ProjectMandatoryBoxes.d.ts.map +1 -1
- package/dist/project/ProjectSkeleton.js +4 -4
- package/dist/transfer/TransferAudioUnits.d.ts +1 -1
- package/dist/transfer/TransferAudioUnits.d.ts.map +1 -1
- package/dist/transfer/TransferAudioUnits.js +2 -2
- package/dist/transfer/TransferUtils.d.ts +1 -1
- package/dist/transfer/TransferUtils.d.ts.map +1 -1
- package/dist/transfer/TransferUtils.js +2 -2
- package/package.json +2 -2
package/dist/MetaData.d.ts
CHANGED
|
@@ -32,6 +32,6 @@ export declare namespace MetaData {
|
|
|
32
32
|
* @param origin The origin of the meta-data. Must be unique to the app.
|
|
33
33
|
* @param observer Called with the current value whenever it changes, or null when removed.
|
|
34
34
|
*/
|
|
35
|
-
const
|
|
35
|
+
const catchupAndSubscribe: (target: Box<Pointers.MetaData>, origin: string, observer: Observer<Option<JSONValue>>) => Terminable;
|
|
36
36
|
}
|
|
37
37
|
//# sourceMappingURL=MetaData.d.ts.map
|
package/dist/MetaData.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetaData.d.ts","sourceRoot":"","sources":["../src/MetaData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAe,MAAM,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;;;;;OAKG;IACI,MAAM,KAAK,GAAI,QAAQ,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,MAAM,KAAG,IAOtE,CAAA;IAED;;;;;;;OAOG;IACI,MAAM,mBAAmB,GAAI,QAAQ,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAC9B,QAAQ,MAAM,EACd,UAAU,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,KAAG,UAgC3E,CAAA;CACJ"}
|
package/dist/MetaData.js
CHANGED
|
@@ -77,9 +77,9 @@ export var MetaData;
|
|
|
77
77
|
* @param origin The origin of the meta-data. Must be unique to the app.
|
|
78
78
|
* @param observer Called with the current value whenever it changes, or null when removed.
|
|
79
79
|
*/
|
|
80
|
-
MetaData.
|
|
80
|
+
MetaData.catchupAndSubscribe = (target, origin, observer) => {
|
|
81
81
|
if (origin === "") {
|
|
82
|
-
return panic("MetaData.
|
|
82
|
+
return panic("MetaData.catchupAndSubscribe: origin must be unique to your app.");
|
|
83
83
|
}
|
|
84
84
|
const subscriptions = UUID.newSet(entry => entry.uuid);
|
|
85
85
|
const notifyValue = (metaDataBox) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnginePreferencesSchema.d.ts","sourceRoot":"","sources":["../../src/engine/EnginePreferencesSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"EnginePreferencesSchema.d.ts","sourceRoot":"","sources":["../../src/engine/EnginePreferencesSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAOrB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;iBAgC/B,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,yBAAiB,cAAc,CAAC;IACrB,MAAM,sBAAsB,uBAA0B,CAAA;IACtD,MAAM,oBAAoB,mCAAwB,CAAA;IAClD,MAAM,sBAAsB,2CAA0B,CAAA;IACtD,MAAM,qBAAqB,mCAAyB,CAAA;CAC9D"}
|
|
@@ -3,8 +3,6 @@ const _BeatSubDivisionOptions = [1, 2, 4, 8];
|
|
|
3
3
|
const _RecordingCountInBars = [1, 2, 3, 4, 5, 6, 7, 8];
|
|
4
4
|
const _OlderTakeActionOptions = ["disable-track", "mute-region"];
|
|
5
5
|
const _OlderTakeScopeOptions = ["all", "previous-only"];
|
|
6
|
-
const isDevOrLocalhost = typeof location !== "undefined" &&
|
|
7
|
-
(location.hostname === "localhost" || location.hostname === "dev.opendaw.studio");
|
|
8
6
|
export const EngineSettingsSchema = z.object({
|
|
9
7
|
metronome: z.object({
|
|
10
8
|
enabled: z.boolean(),
|
|
@@ -33,7 +31,7 @@ export const EngineSettingsSchema = z.object({
|
|
|
33
31
|
olderTakeScope: z.union(_OlderTakeScopeOptions.map(value => z.literal(value)))
|
|
34
32
|
}).default({
|
|
35
33
|
countInBars: 1,
|
|
36
|
-
allowTakes:
|
|
34
|
+
allowTakes: true,
|
|
37
35
|
olderTakeAction: "mute-region",
|
|
38
36
|
olderTakeScope: "previous-only"
|
|
39
37
|
})
|
|
@@ -6,7 +6,7 @@ import { CaptureBox } from "../CaptureBox";
|
|
|
6
6
|
import { ProjectSkeleton } from "../project/ProjectSkeleton";
|
|
7
7
|
import { TrackType } from "../timeline/TrackType";
|
|
8
8
|
export declare namespace AudioUnitFactory {
|
|
9
|
-
const create: ({ boxGraph, mandatoryBoxes: { rootBox,
|
|
9
|
+
const create: ({ boxGraph, mandatoryBoxes: { rootBox, primaryAudioBusBox } }: ProjectSkeleton, type: AudioUnitType, capture: Option<CaptureBox>, index?: int) => AudioUnitBox;
|
|
10
10
|
const orderAndGetIndex: (rootBox: RootBox, type: AudioUnitType) => int;
|
|
11
11
|
const trackTypeToCapture: (boxGraph: BoxGraph, trackType: TrackType) => Option<CaptureBox>;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AudioUnitFactory.d.ts","sourceRoot":"","sources":["../../src/factories/AudioUnitFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAC,GAAG,EAAE,MAAM,EAAO,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAC,QAAQ,EAAa,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAC,YAAY,EAAmC,OAAO,EAAC,MAAM,uBAAuB,CAAA;AAE5F,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAA;AAE/C,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,MAAM,GAAI,
|
|
1
|
+
{"version":3,"file":"AudioUnitFactory.d.ts","sourceRoot":"","sources":["../../src/factories/AudioUnitFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAC,GAAG,EAAE,MAAM,EAAO,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAC,QAAQ,EAAa,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAC,YAAY,EAAmC,OAAO,EAAC,MAAM,uBAAuB,CAAA;AAE5F,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAA;AAE/C,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,MAAM,GAAI,+DAA2D,eAAe,EAC1E,MAAM,aAAa,EACnB,SAAS,MAAM,CAAC,UAAU,CAAC,EAAE,QAAQ,GAAG,KAAG,YAUjE,CAAA;IAEM,MAAM,gBAAgB,GAAI,SAAS,OAAO,EAAE,MAAM,aAAa,KAAG,GAYxE,CAAA;IAEM,MAAM,kBAAkB,GAAI,UAAU,QAAQ,EAAE,WAAW,SAAS,KAAG,MAAM,CAAC,UAAU,CAS9F,CAAA;CACJ"}
|
|
@@ -5,12 +5,12 @@ import { AudioUnitOrdering } from "./AudioUnitOrdering";
|
|
|
5
5
|
import { TrackType } from "../timeline/TrackType";
|
|
6
6
|
export var AudioUnitFactory;
|
|
7
7
|
(function (AudioUnitFactory) {
|
|
8
|
-
AudioUnitFactory.create = ({ boxGraph, mandatoryBoxes: { rootBox,
|
|
8
|
+
AudioUnitFactory.create = ({ boxGraph, mandatoryBoxes: { rootBox, primaryAudioBusBox } }, type, capture, index) => {
|
|
9
9
|
const insertIndex = index ?? AudioUnitFactory.orderAndGetIndex(rootBox, type);
|
|
10
10
|
console.debug(`createAudioUnit type: ${type}, insertIndex: ${insertIndex}`);
|
|
11
11
|
return AudioUnitBox.create(boxGraph, UUID.generate(), box => {
|
|
12
12
|
box.collection.refer(rootBox.audioUnits);
|
|
13
|
-
box.output.refer(
|
|
13
|
+
box.output.refer(primaryAudioBusBox.input);
|
|
14
14
|
box.index.setValue(insertIndex);
|
|
15
15
|
box.type.setValue(type);
|
|
16
16
|
capture.ifSome(capture => box.capture.refer(capture));
|
|
@@ -44,8 +44,8 @@ export var PresetDecoder;
|
|
|
44
44
|
stopAtResources: true,
|
|
45
45
|
excludeBox
|
|
46
46
|
}).boxes);
|
|
47
|
-
const { mandatoryBoxes: { rootBox,
|
|
48
|
-
const uuidMap = TransferUtils.generateMap(sourceAudioUnitBoxes, dependencies, rootBox.audioUnits.address.uuid,
|
|
47
|
+
const { mandatoryBoxes: { rootBox, primaryAudioBusBox } } = target;
|
|
48
|
+
const uuidMap = TransferUtils.generateMap(sourceAudioUnitBoxes, dependencies, rootBox.audioUnits.address.uuid, primaryAudioBusBox.address.uuid);
|
|
49
49
|
TransferUtils.copyBoxes(uuidMap, target.boxGraph, sourceAudioUnitBoxes, dependencies);
|
|
50
50
|
TransferUtils.reorderAudioUnits(uuidMap, sourceAudioUnitBoxes, rootBox);
|
|
51
51
|
sourceAudioUnitBoxes
|
|
@@ -9,7 +9,7 @@ export var PresetEncoder;
|
|
|
9
9
|
header.writeInt(PresetHeader.MAGIC_HEADER_OPEN);
|
|
10
10
|
header.writeInt(PresetHeader.FORMAT_VERSION);
|
|
11
11
|
const preset = ProjectSkeleton.empty({ createOutputCompressor: false, createDefaultUser: false });
|
|
12
|
-
const { boxGraph, mandatoryBoxes: { rootBox,
|
|
12
|
+
const { boxGraph, mandatoryBoxes: { rootBox, primaryAudioBusBox } } = preset;
|
|
13
13
|
const audioUnitBoxes = [audioUnitBox];
|
|
14
14
|
const excludeBox = (box) => TransferUtils.shouldExclude(box) || TransferUtils.excludeTimelinePredicate(box);
|
|
15
15
|
boxGraph.beginTransaction();
|
|
@@ -18,7 +18,7 @@ export var PresetEncoder;
|
|
|
18
18
|
stopAtResources: true,
|
|
19
19
|
excludeBox
|
|
20
20
|
}).boxes);
|
|
21
|
-
const uuidMap = TransferUtils.generateMap(audioUnitBoxes, dependencies, rootBox.audioUnits.address.uuid,
|
|
21
|
+
const uuidMap = TransferUtils.generateMap(audioUnitBoxes, dependencies, rootBox.audioUnits.address.uuid, primaryAudioBusBox.address.uuid);
|
|
22
22
|
TransferUtils.copyBoxes(uuidMap, boxGraph, audioUnitBoxes, dependencies);
|
|
23
23
|
TransferUtils.reorderAudioUnits(uuidMap, audioUnitBoxes, rootBox);
|
|
24
24
|
boxGraph.endTransaction();
|
|
@@ -2,8 +2,8 @@ import { AudioBusBox, AudioUnitBox, RootBox, TimelineBox, UserInterfaceBox } fro
|
|
|
2
2
|
export type ProjectMandatoryBoxes = {
|
|
3
3
|
rootBox: RootBox;
|
|
4
4
|
timelineBox: TimelineBox;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
primaryAudioBusBox: AudioBusBox;
|
|
6
|
+
primaryAudioUnitBox: AudioUnitBox;
|
|
7
7
|
userInterfaceBoxes: ReadonlyArray<UserInterfaceBox>;
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=ProjectMandatoryBoxes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectMandatoryBoxes.d.ts","sourceRoot":"","sources":["../../src/project/ProjectMandatoryBoxes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAC,MAAM,uBAAuB,CAAA;AAEvG,MAAM,MAAM,qBAAqB,GAAG;IAChC,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,WAAW,CAAA;IACxB,
|
|
1
|
+
{"version":3,"file":"ProjectMandatoryBoxes.d.ts","sourceRoot":"","sources":["../../src/project/ProjectMandatoryBoxes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAC,MAAM,uBAAuB,CAAA;AAEvG,MAAM,MAAM,qBAAqB,GAAG;IAChC,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,WAAW,CAAA;IACxB,kBAAkB,EAAE,WAAW,CAAA;IAC/B,mBAAmB,EAAE,YAAY,CAAA;IACjC,kBAAkB,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAA;CACtD,CAAA"}
|
|
@@ -54,8 +54,8 @@ export var ProjectSkeleton;
|
|
|
54
54
|
boxGraph,
|
|
55
55
|
mandatoryBoxes: {
|
|
56
56
|
rootBox,
|
|
57
|
-
primaryAudioBus,
|
|
58
|
-
primaryAudioOutputUnit,
|
|
57
|
+
primaryAudioBusBox: primaryAudioBus,
|
|
58
|
+
primaryAudioUnitBox: primaryAudioOutputUnit,
|
|
59
59
|
timelineBox,
|
|
60
60
|
userInterfaceBoxes
|
|
61
61
|
}
|
|
@@ -90,8 +90,8 @@ export var ProjectSkeleton;
|
|
|
90
90
|
const userInterfaceBoxes = rootBox.users.pointerHub.incoming().map(({ box }) => asInstanceOf(box, UserInterfaceBox));
|
|
91
91
|
return {
|
|
92
92
|
rootBox,
|
|
93
|
-
primaryAudioBus,
|
|
94
|
-
primaryAudioOutputUnit,
|
|
93
|
+
primaryAudioBusBox: primaryAudioBus,
|
|
94
|
+
primaryAudioUnitBox: primaryAudioOutputUnit,
|
|
95
95
|
timelineBox,
|
|
96
96
|
userInterfaceBoxes
|
|
97
97
|
};
|
|
@@ -6,7 +6,7 @@ export declare namespace TransferAudioUnits {
|
|
|
6
6
|
* Preserved resources already present in the target graph are shared, not duplicated.
|
|
7
7
|
* @returns the newly created audio unit boxes in the target graph
|
|
8
8
|
*/
|
|
9
|
-
const transfer: (audioUnitBoxes: ReadonlyArray<AudioUnitBox>, { boxGraph: targetBoxGraph, mandatoryBoxes: {
|
|
9
|
+
const transfer: (audioUnitBoxes: ReadonlyArray<AudioUnitBox>, { boxGraph: targetBoxGraph, mandatoryBoxes: { primaryAudioBusBox, rootBox } }: ProjectSkeleton, options?: {
|
|
10
10
|
includeAux?: boolean;
|
|
11
11
|
includeBus?: boolean;
|
|
12
12
|
excludeTimeline?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransferAudioUnits.d.ts","sourceRoot":"","sources":["../../src/transfer/TransferAudioUnits.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAA;AAG1D,yBAAiB,kBAAkB,CAAC;IAChC;;;;OAIG;IACI,MAAM,QAAQ,GAAI,gBAAgB,aAAa,CAAC,YAAY,CAAC,EAC3C,
|
|
1
|
+
{"version":3,"file":"TransferAudioUnits.d.ts","sourceRoot":"","sources":["../../src/transfer/TransferAudioUnits.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAA;AAG1D,yBAAiB,kBAAkB,CAAC;IAChC;;;;OAIG;IACI,MAAM,QAAQ,GAAI,gBAAgB,aAAa,CAAC,YAAY,CAAC,EAC3C,+EAA2E,eAAe,EAC1F,UAAS;QACL,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,eAAe,CAAC,EAAE,OAAO,CAAC;KACxB,KAAG,aAAa,CAAC,YAAY,CAgB3D,CAAA;CACJ"}
|
|
@@ -8,7 +8,7 @@ export var TransferAudioUnits;
|
|
|
8
8
|
* Preserved resources already present in the target graph are shared, not duplicated.
|
|
9
9
|
* @returns the newly created audio unit boxes in the target graph
|
|
10
10
|
*/
|
|
11
|
-
TransferAudioUnits.transfer = (audioUnitBoxes, { boxGraph: targetBoxGraph, mandatoryBoxes: {
|
|
11
|
+
TransferAudioUnits.transfer = (audioUnitBoxes, { boxGraph: targetBoxGraph, mandatoryBoxes: { primaryAudioBusBox, rootBox } }, options = {}) => {
|
|
12
12
|
const excludeBox = (box) => TransferUtils.shouldExclude(box)
|
|
13
13
|
|| (options?.excludeTimeline === true && TransferUtils.excludeTimelinePredicate(box));
|
|
14
14
|
const dependencies = Array.from(audioUnitBoxes[0].graph.dependenciesOf(audioUnitBoxes, {
|
|
@@ -16,7 +16,7 @@ export var TransferAudioUnits;
|
|
|
16
16
|
stopAtResources: true,
|
|
17
17
|
excludeBox
|
|
18
18
|
}).boxes);
|
|
19
|
-
const uuidMap = TransferUtils.generateMap(audioUnitBoxes, dependencies, rootBox.audioUnits.address.uuid,
|
|
19
|
+
const uuidMap = TransferUtils.generateMap(audioUnitBoxes, dependencies, rootBox.audioUnits.address.uuid, primaryAudioBusBox.address.uuid);
|
|
20
20
|
TransferUtils.copyBoxes(uuidMap, targetBoxGraph, audioUnitBoxes, dependencies);
|
|
21
21
|
TransferUtils.reorderAudioUnits(uuidMap, audioUnitBoxes, rootBox);
|
|
22
22
|
return audioUnitBoxes.map(source => asInstanceOf(rootBox.graph
|
|
@@ -14,6 +14,6 @@ export declare namespace TransferUtils {
|
|
|
14
14
|
const generateMap: (audioUnitBoxes: ReadonlyArray<AudioUnitBox>, dependencies: ReadonlyArray<Box>, rootBoxUUID: UUID.Bytes, masterBusBoxUUID: UUID.Bytes) => SortedSet<UUID.Bytes, UUIDMapper>;
|
|
15
15
|
const copyBoxes: (uuidMap: SortedSet<UUID.Bytes, UUIDMapper>, targetBoxGraph: BoxGraph, audioUnitBoxes: ReadonlyArray<AudioUnitBox>, dependencies: ReadonlyArray<Box>) => void;
|
|
16
16
|
const reorderAudioUnits: (uuidMap: SortedSet<UUID.Bytes, UUIDMapper>, audioUnitBoxes: ReadonlyArray<AudioUnitBox>, rootBox: RootBox) => void;
|
|
17
|
-
const extractRegions: (regionBoxes: ReadonlyArray<AnyRegionBox>, { boxGraph, mandatoryBoxes: {
|
|
17
|
+
const extractRegions: (regionBoxes: ReadonlyArray<AnyRegionBox>, { boxGraph, mandatoryBoxes: { primaryAudioBusBox, rootBox } }: ProjectSkeleton, insertPosition?: ppqn) => void;
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=TransferUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransferUtils.d.ts","sourceRoot":"","sources":["../../src/transfer/TransferUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAA;AACrC,OAAO,EASH,SAAS,EACT,IAAI,EACP,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAC,YAAY,EAAiC,OAAO,EAAW,MAAM,uBAAuB,CAAA;AACpG,OAAO,EAAU,GAAG,EAAE,QAAQ,EAA2B,MAAM,kBAAkB,CAAA;AACjF,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAC,YAAY,EAAgB,MAAM,WAAW,CAAA;AAGrD,yBAAiB,aAAa,CAAC;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AAM,4BAA4B,CAAA;AAC1D,OAAO,EAAC,YAAY,EAAgB,MAAM,WAAW,CAAA;AAGrD,yBAAiB,aAAa,CAAC;IAC3B,KAAY,UAAU,GAAG;QAAE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC;QAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAA;KAAE,CAAA;IAI5D,MAAM,wBAAwB,GAAI,KAAK,GAAG,KAAG,OACqB,CAAA;IAClE,MAAM,aAAa,GAAI,KAAK,GAAG,KAAG,OAA6D,CAAA;IAE/F,MAAM,WAAW,GAAI,gBAAgB,aAAa,CAAC,YAAY,CAAC,EAC3C,cAAc,aAAa,CAAC,GAAG,CAAC,EAChC,aAAa,IAAI,CAAC,KAAK,EACvB,kBAAkB,IAAI,CAAC,KAAK,KAAG,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,UAAU,CA0B1F,CAAA;IAEM,MAAM,SAAS,GAAI,SAAS,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,EAC1C,gBAAgB,QAAQ,EACxB,gBAAgB,aAAa,CAAC,YAAY,CAAC,EAC3C,cAAc,aAAa,CAAC,GAAG,CAAC,KAAG,IAmC5D,CAAA;IAEM,MAAM,iBAAiB,GAAI,SAAS,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,EAC1C,gBAAgB,aAAa,CAAC,YAAY,CAAC,EAC3C,SAAS,OAAO,KAAG,IAWS,CAAA;IAEvD,MAAM,cAAc,GAAI,aAAa,aAAa,CAAC,YAAY,CAAC,EACxC,+DAA2D,eAAe,EAC1E,iBAAgB,IAAU,KAAG,IA8C3D,CAAA;CACJ"}
|
|
@@ -88,7 +88,7 @@ export var TransferUtils;
|
|
|
88
88
|
const orderDifference = orderA - orderB;
|
|
89
89
|
return orderDifference === 0 ? b === target ? -1 : 1 : orderDifference;
|
|
90
90
|
}).forEach((box, index) => box.index.setValue(index)));
|
|
91
|
-
TransferUtils.extractRegions = (regionBoxes, { boxGraph, mandatoryBoxes: {
|
|
91
|
+
TransferUtils.extractRegions = (regionBoxes, { boxGraph, mandatoryBoxes: { primaryAudioBusBox, rootBox } }, insertPosition = 0.0) => {
|
|
92
92
|
assert(Arrays.satisfy(regionBoxes, isSameGraph), "Region smust be from the same BoxGraph");
|
|
93
93
|
const regionBoxSet = new Set(regionBoxes);
|
|
94
94
|
const trackBoxSet = new Set();
|
|
@@ -110,7 +110,7 @@ export var TransferUtils;
|
|
|
110
110
|
stopAtResources: true,
|
|
111
111
|
excludeBox
|
|
112
112
|
}).boxes);
|
|
113
|
-
const uuidMap = TransferUtils.generateMap(audioUnitBoxes, dependencies, rootBox.audioUnits.address.uuid,
|
|
113
|
+
const uuidMap = TransferUtils.generateMap(audioUnitBoxes, dependencies, rootBox.audioUnits.address.uuid, primaryAudioBusBox.address.uuid);
|
|
114
114
|
TransferUtils.copyBoxes(uuidMap, boxGraph, audioUnitBoxes, dependencies);
|
|
115
115
|
TransferUtils.reorderAudioUnits(uuidMap, audioUnitBoxes, rootBox);
|
|
116
116
|
audioUnitBoxSet.forEach((_, trackBoxes) => [...trackBoxes]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendaw/studio-adapters",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.86",
|
|
4
4
|
"license": "LGPL-3.0-or-later",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@opendaw/eslint-config": "^0.0.27",
|
|
37
37
|
"@opendaw/typescript-config": "^0.0.29"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "bad85dc13003b771a7470ed29eeff4dbf2244410"
|
|
40
40
|
}
|