@opendaw/studio-core 0.0.55 → 0.0.56
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/InstrumentFactories.d.ts +10 -3
- package/dist/InstrumentFactories.d.ts.map +1 -1
- package/dist/InstrumentFactories.js +13 -22
- package/dist/processors.js +8 -8
- package/dist/processors.js.map +4 -4
- package/dist/project/ProjectMigration.d.ts.map +1 -1
- package/dist/project/ProjectMigration.js +20 -1
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectMigration.d.ts","sourceRoot":"","sources":["../../src/project/ProjectMigration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProjectMigration.d.ts","sourceRoot":"","sources":["../../src/project/ProjectMigration.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAA;AAKxD,qBAAa,gBAAgB;IACzB,MAAM,CAAC,OAAO,CAAC,EAAC,QAAQ,EAAE,cAAc,EAAC,EAAE,eAAe,GAAG,IAAI;CA2GpE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CaptureAudioBox, CaptureMidiBox, GrooveShuffleBox, ValueEventCurveBox } from "@opendaw/studio-boxes";
|
|
1
|
+
import { CaptureAudioBox, CaptureMidiBox, GrooveShuffleBox, MIDIOutputBox, ValueEventCurveBox } from "@opendaw/studio-boxes";
|
|
2
2
|
import { asDefined, asInstanceOf, clamp, Float, UUID } from "@opendaw/lib-std";
|
|
3
3
|
import { AudioUnitType } from "@opendaw/studio-enums";
|
|
4
4
|
const isIntEncodedAsFloat = (v) => v > 0 && v < 1e-6 && Number.isFinite(v) && (v / 1.401298464324817e-45) % 1 === 0;
|
|
@@ -29,6 +29,25 @@ export class ProjectMigration {
|
|
|
29
29
|
boxGraph.endTransaction();
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
|
+
visitMIDIOutputDeviceBox: (deviceBox) => {
|
|
33
|
+
const id = deviceBox.deprecatedDevice.id.getValue();
|
|
34
|
+
const label = deviceBox.deprecatedDevice.label.getValue();
|
|
35
|
+
const delay = deviceBox.deprecatedDelay.getValue();
|
|
36
|
+
if (id !== "") {
|
|
37
|
+
console.debug("Migrate 'MIDIOutputDeviceBox' to MIDIOutputBox");
|
|
38
|
+
boxGraph.beginTransaction();
|
|
39
|
+
deviceBox.device.refer(MIDIOutputBox.create(boxGraph, UUID.generate(), box => {
|
|
40
|
+
box.id.setValue(id);
|
|
41
|
+
box.label.setValue(label);
|
|
42
|
+
box.delayInMs.setValue(delay);
|
|
43
|
+
box.root.refer(rootBox.outputMidiDevices);
|
|
44
|
+
}).device);
|
|
45
|
+
// clear all data
|
|
46
|
+
deviceBox.deprecatedDevice.id.setValue("");
|
|
47
|
+
deviceBox.deprecatedDevice.label.setValue("");
|
|
48
|
+
boxGraph.endTransaction();
|
|
49
|
+
}
|
|
50
|
+
},
|
|
32
51
|
visitZeitgeistDeviceBox: (box) => {
|
|
33
52
|
if (box.groove.targetAddress.isEmpty()) {
|
|
34
53
|
console.debug("Migrate 'ZeitgeistDeviceBox' to GrooveShuffleBox");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendaw/studio-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.56",
|
|
4
4
|
"license": "LGPL-3.0-or-later",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"test": "vitest run --config vitest.config.ts"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@opendaw/lib-box": "^0.0.
|
|
34
|
-
"@opendaw/lib-dawproject": "^0.0.
|
|
35
|
-
"@opendaw/lib-dom": "^0.0.
|
|
36
|
-
"@opendaw/lib-dsp": "^0.0.
|
|
37
|
-
"@opendaw/lib-fusion": "^0.0.
|
|
38
|
-
"@opendaw/lib-runtime": "^0.0.
|
|
39
|
-
"@opendaw/lib-std": "^0.0.
|
|
40
|
-
"@opendaw/studio-adapters": "^0.0.
|
|
41
|
-
"@opendaw/studio-boxes": "^0.0.
|
|
42
|
-
"@opendaw/studio-enums": "^0.0.
|
|
33
|
+
"@opendaw/lib-box": "^0.0.47",
|
|
34
|
+
"@opendaw/lib-dawproject": "^0.0.33",
|
|
35
|
+
"@opendaw/lib-dom": "^0.0.47",
|
|
36
|
+
"@opendaw/lib-dsp": "^0.0.47",
|
|
37
|
+
"@opendaw/lib-fusion": "^0.0.47",
|
|
38
|
+
"@opendaw/lib-runtime": "^0.0.47",
|
|
39
|
+
"@opendaw/lib-std": "^0.0.47",
|
|
40
|
+
"@opendaw/studio-adapters": "^0.0.48",
|
|
41
|
+
"@opendaw/studio-boxes": "^0.0.47",
|
|
42
|
+
"@opendaw/studio-enums": "^0.0.38",
|
|
43
43
|
"dropbox": "^10.34.0",
|
|
44
44
|
"y-websocket": "^1.4.5",
|
|
45
45
|
"yjs": "^13.6.27",
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"@ffmpeg/ffmpeg": "^0.12.15",
|
|
54
54
|
"@ffmpeg/util": "^0.12.2",
|
|
55
55
|
"@opendaw/eslint-config": "^0.0.20",
|
|
56
|
-
"@opendaw/studio-core-processors": "^0.0.
|
|
57
|
-
"@opendaw/studio-core-workers": "^0.0.
|
|
58
|
-
"@opendaw/studio-forge-boxes": "^0.0.
|
|
56
|
+
"@opendaw/studio-core-processors": "^0.0.48",
|
|
57
|
+
"@opendaw/studio-core-workers": "^0.0.43",
|
|
58
|
+
"@opendaw/studio-forge-boxes": "^0.0.47",
|
|
59
59
|
"@opendaw/typescript-config": "^0.0.20"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "170753973524372d44b7f837ef9058c0ca1660ae"
|
|
62
62
|
}
|