@opendaw/studio-boxes 0.0.29 → 0.0.31
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/AudioRegionBox.d.ts
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
import { Maybe, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
-
import { Box, BoxGraph, PointerField, Int32Field, BooleanField,
|
2
|
+
import { Box, BoxGraph, PointerField, StringField, Int32Field, BooleanField, Float32Field } from "@opendaw/lib-box";
|
3
3
|
import { BoxVisitor } from ".";
|
4
4
|
import { Pointers } from "@opendaw/studio-enums";
|
5
5
|
export type AudioRegionBoxFields = {
|
6
6
|
1: PointerField<Pointers.RegionCollection>;
|
7
7
|
2: PointerField<Pointers.AudioFile>;
|
8
|
+
3: StringField;
|
8
9
|
10: Int32Field;
|
9
10
|
11: Int32Field;
|
10
11
|
12: Int32Field;
|
@@ -21,6 +22,7 @@ export declare class AudioRegionBox extends Box<Pointers.Selection | Pointers.Ed
|
|
21
22
|
accept<R>(visitor: BoxVisitor<R>): Maybe<R>;
|
22
23
|
get regions(): PointerField<Pointers.RegionCollection>;
|
23
24
|
get file(): PointerField<Pointers.AudioFile>;
|
25
|
+
get playback(): StringField;
|
24
26
|
get position(): Int32Field;
|
25
27
|
get duration(): Int32Field;
|
26
28
|
get loopOffset(): Int32Field;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AudioRegionBox.d.ts","sourceRoot":"","sources":["../src/AudioRegionBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EACL,GAAG,EAEH,QAAQ,EAER,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,
|
1
|
+
{"version":3,"file":"AudioRegionBox.d.ts","sourceRoot":"","sources":["../src/AudioRegionBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAe,IA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C,QAAQ,CAAC,SAAS,CAAC,CAE3C;IAED,IAAI,QAAQ,IAAI,WAAW,CAE1B;IAED,IAAI,QAAQ,IAAI,UAAU,CAEzB;IAED,IAAI,QAAQ,IAAI,UAAU,CAEzB;IAED,IAAI,UAAU,IAAI,UAAU,CAE3B;IAED,IAAI,YAAY,IAAI,UAAU,CAE7B;IAED,IAAI,IAAI,IAAI,YAAY,CAEvB;IAED,IAAI,KAAK,IAAI,WAAW,CAEvB;IAED,IAAI,GAAG,IAAI,UAAU,CAEpB;IAED,IAAI,IAAI,IAAI,YAAY,CAEvB;IAED,gBAAgB,IAAI,oBAAoB;CAiFzC"}
|
package/dist/AudioRegionBox.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { safeExecute } from "@opendaw/lib-std";
|
2
|
-
import { Box, NoPointers, PointerField, Int32Field, BooleanField,
|
2
|
+
import { Box, NoPointers, PointerField, StringField, Int32Field, BooleanField, Float32Field, } from "@opendaw/lib-box";
|
3
3
|
import { Pointers } from "@opendaw/studio-enums";
|
4
4
|
export class AudioRegionBox extends Box {
|
5
5
|
static create(graph, uuid, constructor) {
|
@@ -26,6 +26,9 @@ export class AudioRegionBox extends Box {
|
|
26
26
|
get file() {
|
27
27
|
return this.getField(2);
|
28
28
|
}
|
29
|
+
get playback() {
|
30
|
+
return this.getField(3);
|
31
|
+
}
|
29
32
|
get position() {
|
30
33
|
return this.getField(10);
|
31
34
|
}
|
@@ -64,6 +67,12 @@ export class AudioRegionBox extends Box {
|
|
64
67
|
fieldName: "file",
|
65
68
|
pointerRules: NoPointers,
|
66
69
|
}, Pointers.AudioFile, true),
|
70
|
+
3: StringField.create({
|
71
|
+
parent: this,
|
72
|
+
fieldKey: 3,
|
73
|
+
fieldName: "playback",
|
74
|
+
pointerRules: NoPointers,
|
75
|
+
}, "pitch"),
|
67
76
|
10: Int32Field.create({
|
68
77
|
parent: this,
|
69
78
|
fieldKey: 10,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@opendaw/studio-boxes",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.31",
|
4
4
|
"license": "LGPL-3.0-or-later",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -22,14 +22,14 @@
|
|
22
22
|
"test": "echo \"No tests to run\""
|
23
23
|
},
|
24
24
|
"dependencies": {
|
25
|
-
"@opendaw/lib-box": "^0.0.
|
26
|
-
"@opendaw/lib-std": "^0.0.
|
27
|
-
"@opendaw/studio-enums": "^0.0.
|
25
|
+
"@opendaw/lib-box": "^0.0.31",
|
26
|
+
"@opendaw/lib-std": "^0.0.31",
|
27
|
+
"@opendaw/studio-enums": "^0.0.22"
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
30
|
"@opendaw/eslint-config": "^0.0.19",
|
31
|
-
"@opendaw/studio-forge-boxes": "^0.0.
|
31
|
+
"@opendaw/studio-forge-boxes": "^0.0.31",
|
32
32
|
"@opendaw/typescript-config": "^0.0.20"
|
33
33
|
},
|
34
|
-
"gitHead": "
|
34
|
+
"gitHead": "c1718ba63c1f99d28d6a5178c39e96c89b5bb364"
|
35
35
|
}
|