@opendaw/studio-core 0.0.107 → 0.0.109
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/capture/RecordAutomation.d.ts.map +1 -1
- package/dist/capture/RecordAutomation.js +2 -1
- package/dist/capture/Recording.d.ts.map +1 -1
- package/dist/capture/Recording.js +6 -1
- package/dist/dawproject/DawProjectImporter.js +2 -2
- package/dist/processors.js +4 -4
- package/dist/processors.js.map +3 -3
- package/dist/project/Project.d.ts +5 -4
- package/dist/project/Project.d.ts.map +1 -1
- package/dist/project/Project.js +16 -9
- package/dist/ui/timeline/RegionOverlapResolver.d.ts.map +1 -1
- package/dist/ui/timeline/RegionOverlapResolver.js +5 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecordAutomation.d.ts","sourceRoot":"","sources":["../../src/capture/RecordAutomation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiD,UAAU,EAAkB,MAAM,kBAAkB,CAAA;AAc5G,OAAO,EAAC,OAAO,EAAC,MAAM,YAAY,CAAA;AAGlC,yBAAiB,gBAAgB,CAAC;IAevB,MAAM,KAAK,GAAI,SAAS,OAAO,KAAG,
|
|
1
|
+
{"version":3,"file":"RecordAutomation.d.ts","sourceRoot":"","sources":["../../src/capture/RecordAutomation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiD,UAAU,EAAkB,MAAM,kBAAkB,CAAA;AAc5G,OAAO,EAAC,OAAO,EAAC,MAAM,YAAY,CAAA;AAGlC,yBAAiB,gBAAgB,CAAC;IAevB,MAAM,KAAK,GAAI,SAAS,OAAO,KAAG,UAwPxC,CAAA;CACJ"}
|
|
@@ -105,7 +105,7 @@ export var RecordAutomation;
|
|
|
105
105
|
if (position < state.startPosition) {
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
|
-
const relativePosition = position - state.startPosition;
|
|
108
|
+
const relativePosition = Math.trunc(position - state.startPosition);
|
|
109
109
|
if (relativePosition < state.lastRelativePosition) {
|
|
110
110
|
return;
|
|
111
111
|
}
|
|
@@ -213,6 +213,7 @@ export var RecordAutomation;
|
|
|
213
213
|
break;
|
|
214
214
|
}
|
|
215
215
|
keep.pop();
|
|
216
|
+
adapter.events.remove(b);
|
|
216
217
|
b.box.delete();
|
|
217
218
|
}
|
|
218
219
|
keep.push(event);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Recording.d.ts","sourceRoot":"","sources":["../../src/capture/Recording.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,UAAU,
|
|
1
|
+
{"version":3,"file":"Recording.d.ts","sourceRoot":"","sources":["../../src/capture/Recording.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,UAAU,EAAmB,MAAM,kBAAkB,CAAA;AAErF,OAAO,EAAC,OAAO,EAAC,MAAM,YAAY,CAAA;AAClC,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAA;AAGrC,qBAAa,SAAS;;IAmDE,QAAQ,CAAC,OAAO,EAAE,OAAO;IAAE,QAAQ,CAAC,aAAa,EAAE,IAAI;IAlD3E,MAAM,KAAK,WAAW,IAAI,OAAO,CAA2B;WAE/C,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC;IA6C3E,MAAM,CAAC,aAAa,IAAI,OAAO;IAC/B,MAAM,CAAC,aAAa,IAAI,IAAI;IAE5B,OAAO;CACV"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assert, Errors, Option, Terminable, Terminator } from "@opendaw/lib-std";
|
|
1
|
+
import { assert, Errors, Option, Terminable, Terminator, UUID } from "@opendaw/lib-std";
|
|
2
2
|
import { Promises } from "@opendaw/lib-runtime";
|
|
3
3
|
import { RecordAutomation } from "./RecordAutomation";
|
|
4
4
|
export class Recording {
|
|
@@ -24,6 +24,11 @@ export class Recording {
|
|
|
24
24
|
terminator.ownAll(...captures.map(capture => capture.startRecording()));
|
|
25
25
|
}
|
|
26
26
|
terminator.own(RecordAutomation.start(project));
|
|
27
|
+
const armedUUIDs = UUID.newSet(uuid => uuid);
|
|
28
|
+
captures.forEach(capture => armedUUIDs.add(capture.audioUnitBox.address.uuid));
|
|
29
|
+
project.regionSelection.deselect(...project.regionSelection.selected()
|
|
30
|
+
.filter(region => region.trackBoxAdapter
|
|
31
|
+
.mapOr(track => armedUUIDs.hasKey(track.audioUnit.address.uuid), () => false)));
|
|
27
32
|
engine.prepareRecordingState(countIn);
|
|
28
33
|
const { isRecording, isCountingIn } = engine;
|
|
29
34
|
const stop = () => {
|
|
@@ -463,8 +463,8 @@ export var DawProjectImport;
|
|
|
463
463
|
mandatoryBoxes: {
|
|
464
464
|
rootBox,
|
|
465
465
|
timelineBox,
|
|
466
|
-
primaryAudioBus,
|
|
467
|
-
primaryAudioOutputUnit,
|
|
466
|
+
primaryAudioBusBox: primaryAudioBus,
|
|
467
|
+
primaryAudioUnitBox: primaryAudioOutputUnit,
|
|
468
468
|
userInterfaceBoxes: [userInterfaceBox]
|
|
469
469
|
}
|
|
470
470
|
}
|