@opendaw/studio-core 0.0.60 → 0.0.62
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/processors.js +14 -14
- package/dist/processors.js.map +4 -4
- package/dist/project/ProjectMigration.d.ts.map +1 -1
- package/dist/project/audio/AudioContentFactory.d.ts.map +1 -1
- package/dist/project/audio/AudioContentFactory.js +3 -3
- package/dist/project/audio/AudioContentModifier.d.ts.map +1 -1
- package/dist/project/audio/AudioContentModifier.js +2 -4
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectMigration.d.ts","sourceRoot":"","sources":["../../src/project/ProjectMigration.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAA;AAYxD,qBAAa,gBAAgB;IACzB,MAAM,CAAC,OAAO,CAAC,EAAC,QAAQ,EAAE,cAAc,EAAC,EAAE,eAAe,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"ProjectMigration.d.ts","sourceRoot":"","sources":["../../src/project/ProjectMigration.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAA;AAYxD,qBAAa,gBAAgB;IACzB,MAAM,CAAC,OAAO,CAAC,EAAC,QAAQ,EAAE,cAAc,EAAC,EAAE,eAAe,GAAG,IAAI;CA+MpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AudioContentFactory.d.ts","sourceRoot":"","sources":["../../../src/project/audio/AudioContentFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAiB,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAa,MAAM,EAAY,MAAM,0BAA0B,CAAA;AACtE,OAAO,EAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"AudioContentFactory.d.ts","sourceRoot":"","sources":["../../../src/project/audio/AudioContentFactory.ts"],"names":[],"mappings":"AAAA,OAAO,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M1E,CAAA;IAEM,MAAM,wBAAwB,GAAI,OAAO,mBAAmB,GAAG,IAAI,KAAG,YAG5E,CAAA;IAEM,MAAM,sBAAsB,GAAI,OAAO,iBAAiB,GAAG,IAAI,KAAG,YAaxE,CAAA;CAmDJ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PPQN, TimeBase } from "@opendaw/lib-dsp";
|
|
2
2
|
import { ColorCodes, TrackType } from "@opendaw/studio-adapters";
|
|
3
|
-
import { panic, UUID } from "@opendaw/lib-std";
|
|
3
|
+
import { panic, quantizeRound, UUID } from "@opendaw/lib-std";
|
|
4
4
|
import { AudioClipBox, AudioPitchBox, AudioRegionBox, AudioTimeStretchBox, ValueEventCollectionBox } from "@opendaw/studio-boxes";
|
|
5
5
|
import { TransientPlayMode } from "@opendaw/studio-enums";
|
|
6
6
|
import { AudioContentHelpers } from "./AudioContentHelpers";
|
|
@@ -66,7 +66,7 @@ export var AudioContentFactory;
|
|
|
66
66
|
return panic("Cannot create audio-region on non-audio track");
|
|
67
67
|
}
|
|
68
68
|
const { name, duration: durationInSeconds, bpm } = sample;
|
|
69
|
-
const durationInPPQN =
|
|
69
|
+
const durationInPPQN = quantizeRound(PPQN.secondsToPulses(durationInSeconds, bpm), PPQN.SemiQuaver);
|
|
70
70
|
AudioContentHelpers.addDefaultWarpMarkers(boxGraph, playMode, durationInPPQN, durationInSeconds);
|
|
71
71
|
const collectionBox = ValueEventCollectionBox.create(boxGraph, UUID.generate());
|
|
72
72
|
return AudioRegionBox.create(boxGraph, UUID.generate(), box => {
|
|
@@ -89,7 +89,7 @@ export var AudioContentFactory;
|
|
|
89
89
|
return panic("Cannot create audio-region on non-audio track");
|
|
90
90
|
}
|
|
91
91
|
const { name, duration: durationInSeconds, bpm } = sample;
|
|
92
|
-
const durationInPPQN =
|
|
92
|
+
const durationInPPQN = quantizeRound(PPQN.secondsToPulses(durationInSeconds, bpm), PPQN.SemiQuaver);
|
|
93
93
|
AudioContentHelpers.addDefaultWarpMarkers(boxGraph, playMode, durationInPPQN, durationInSeconds);
|
|
94
94
|
const collectionBox = ValueEventCollectionBox.create(boxGraph, UUID.generate());
|
|
95
95
|
return AudioClipBox.create(boxGraph, UUID.generate(), box => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AudioContentModifier.d.ts","sourceRoot":"","sources":["../../../src/project/audio/AudioContentModifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAE,qBAAqB,EAAC,MAAM,0BAA0B,CAAA;AACnF,OAAO,EAAY,IAAI,EAAgC,MAAM,kBAAkB,CAAA;AAY/E,yBAAiB,oBAAoB,CAAC;IAClC,KAAK,iBAAiB,GAAG,qBAAqB,GAAG,mBAAmB,CAAA;IAEpE,MAAM,CAAC,MAAM,cAAc,GAAU,UAAU,aAAa,CAAC,iBAAiB,CAAC,KAAG,OAAO,CAAC,IAAI,CAO7F,CAAA;IAED,MAAM,CAAC,MAAM,cAAc,GAAU,UAAU,aAAa,CAAC,iBAAiB,CAAC,KAAG,OAAO,CAAC,IAAI,CA2B7F,CAAA;IAED,MAAM,CAAC,MAAM,aAAa,GAAU,UAAU,aAAa,CAAC,iBAAiB,CAAC,KAAG,OAAO,CAAC,IAAI,CA2C5F,CAAA;;
|
|
1
|
+
{"version":3,"file":"AudioContentModifier.d.ts","sourceRoot":"","sources":["../../../src/project/audio/AudioContentModifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAE,qBAAqB,EAAC,MAAM,0BAA0B,CAAA;AACnF,OAAO,EAAY,IAAI,EAAgC,MAAM,kBAAkB,CAAA;AAY/E,yBAAiB,oBAAoB,CAAC;IAClC,KAAK,iBAAiB,GAAG,qBAAqB,GAAG,mBAAmB,CAAA;IAEpE,MAAM,CAAC,MAAM,cAAc,GAAU,UAAU,aAAa,CAAC,iBAAiB,CAAC,KAAG,OAAO,CAAC,IAAI,CAO7F,CAAA;IAED,MAAM,CAAC,MAAM,cAAc,GAAU,UAAU,aAAa,CAAC,iBAAiB,CAAC,KAAG,OAAO,CAAC,IAAI,CA2B7F,CAAA;IAED,MAAM,CAAC,MAAM,aAAa,GAAU,UAAU,aAAa,CAAC,iBAAiB,CAAC,KAAG,OAAO,CAAC,IAAI,CA2C5F,CAAA;;CA2BJ"}
|
|
@@ -116,14 +116,12 @@ export var AudioContentModifier;
|
|
|
116
116
|
return;
|
|
117
117
|
}
|
|
118
118
|
const { box } = adapter;
|
|
119
|
-
box.timeBase.setValue(TimeBase.Musical);
|
|
120
119
|
box.duration.setValue(adapter.duration);
|
|
121
120
|
if (isInstanceOf(adapter, AudioRegionBoxAdapter)) {
|
|
122
|
-
const { box: {
|
|
123
|
-
timeBase.setValue(TimeBase.Musical);
|
|
124
|
-
duration.setValue(adapter.duration);
|
|
121
|
+
const { box: { loopDuration, loopOffset } } = adapter;
|
|
125
122
|
loopOffset.setValue(adapter.loopOffset);
|
|
126
123
|
loopDuration.setValue(adapter.loopDuration);
|
|
127
124
|
}
|
|
125
|
+
box.timeBase.setValue(TimeBase.Musical);
|
|
128
126
|
};
|
|
129
127
|
})(AudioContentModifier || (AudioContentModifier = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendaw/studio-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.62",
|
|
4
4
|
"license": "LGPL-3.0-or-later",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"test": "vitest run --config vitest.config.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@opendaw/lib-box": "^0.0.
|
|
35
|
-
"@opendaw/lib-dawproject": "^0.0.
|
|
36
|
-
"@opendaw/lib-dom": "^0.0.
|
|
37
|
-
"@opendaw/lib-dsp": "^0.0.
|
|
38
|
-
"@opendaw/lib-fusion": "^0.0.
|
|
39
|
-
"@opendaw/lib-runtime": "^0.0.
|
|
40
|
-
"@opendaw/lib-std": "^0.0.
|
|
41
|
-
"@opendaw/studio-adapters": "^0.0.
|
|
42
|
-
"@opendaw/studio-boxes": "^0.0.
|
|
43
|
-
"@opendaw/studio-enums": "^0.0.
|
|
34
|
+
"@opendaw/lib-box": "^0.0.53",
|
|
35
|
+
"@opendaw/lib-dawproject": "^0.0.39",
|
|
36
|
+
"@opendaw/lib-dom": "^0.0.53",
|
|
37
|
+
"@opendaw/lib-dsp": "^0.0.53",
|
|
38
|
+
"@opendaw/lib-fusion": "^0.0.53",
|
|
39
|
+
"@opendaw/lib-runtime": "^0.0.53",
|
|
40
|
+
"@opendaw/lib-std": "^0.0.53",
|
|
41
|
+
"@opendaw/studio-adapters": "^0.0.54",
|
|
42
|
+
"@opendaw/studio-boxes": "^0.0.53",
|
|
43
|
+
"@opendaw/studio-enums": "^0.0.44",
|
|
44
44
|
"dropbox": "^10.34.0",
|
|
45
45
|
"y-websocket": "^1.4.5",
|
|
46
46
|
"yjs": "^13.6.27",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"@ffmpeg/ffmpeg": "^0.12.15",
|
|
55
55
|
"@ffmpeg/util": "^0.12.2",
|
|
56
56
|
"@opendaw/eslint-config": "^0.0.20",
|
|
57
|
-
"@opendaw/studio-core-processors": "^0.0.
|
|
58
|
-
"@opendaw/studio-core-workers": "^0.0.
|
|
59
|
-
"@opendaw/studio-forge-boxes": "^0.0.
|
|
57
|
+
"@opendaw/studio-core-processors": "^0.0.54",
|
|
58
|
+
"@opendaw/studio-core-workers": "^0.0.49",
|
|
59
|
+
"@opendaw/studio-forge-boxes": "^0.0.53",
|
|
60
60
|
"@opendaw/typescript-config": "^0.0.20"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "046a92e919f8489330255eaaf1703357c7b15098"
|
|
63
63
|
}
|