@opendaw/studio-boxes 0.0.6
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/README.md +1 -0
- package/dist/ArpeggioDeviceBox.d.ts +35 -0
- package/dist/ArpeggioDeviceBox.d.ts.map +1 -0
- package/dist/ArpeggioDeviceBox.js +167 -0
- package/dist/AudioBusBox.d.ts +29 -0
- package/dist/AudioBusBox.d.ts.map +1 -0
- package/dist/AudioBusBox.js +95 -0
- package/dist/AudioClipBox.d.ts +32 -0
- package/dist/AudioClipBox.d.ts.map +1 -0
- package/dist/AudioClipBox.js +108 -0
- package/dist/AudioFileBox.d.ts +19 -0
- package/dist/AudioFileBox.d.ts.map +1 -0
- package/dist/AudioFileBox.js +50 -0
- package/dist/AudioRegionBox.d.ts +33 -0
- package/dist/AudioRegionBox.d.ts.map +1 -0
- package/dist/AudioRegionBox.js +116 -0
- package/dist/AudioUnitBox.d.ts +41 -0
- package/dist/AudioUnitBox.d.ts.map +1 -0
- package/dist/AudioUnitBox.js +183 -0
- package/dist/AuxSendBox.d.ts +25 -0
- package/dist/AuxSendBox.d.ts.map +1 -0
- package/dist/AuxSendBox.js +91 -0
- package/dist/ClashPattern.d.ts +17 -0
- package/dist/ClashPattern.d.ts.map +1 -0
- package/dist/ClashPattern.js +42 -0
- package/dist/ClashStep.d.ts +13 -0
- package/dist/ClashStep.d.ts.map +1 -0
- package/dist/ClashStep.js +24 -0
- package/dist/ClipPlaybackFields.d.ts +22 -0
- package/dist/ClipPlaybackFields.d.ts.map +1 -0
- package/dist/ClipPlaybackFields.js +68 -0
- package/dist/DelayDeviceBox.d.ts +35 -0
- package/dist/DelayDeviceBox.d.ts.map +1 -0
- package/dist/DelayDeviceBox.js +167 -0
- package/dist/DeviceClashBox.d.ts +38 -0
- package/dist/DeviceClashBox.d.ts.map +1 -0
- package/dist/DeviceClashBox.js +177 -0
- package/dist/DeviceInterfaceKnobBox.d.ts +23 -0
- package/dist/DeviceInterfaceKnobBox.d.ts.map +1 -0
- package/dist/DeviceInterfaceKnobBox.js +68 -0
- package/dist/DeviceUserInterface.d.ts +13 -0
- package/dist/DeviceUserInterface.d.ts.map +1 -0
- package/dist/DeviceUserInterface.js +27 -0
- package/dist/GrooveShuffleBox.d.ts +19 -0
- package/dist/GrooveShuffleBox.d.ts.map +1 -0
- package/dist/GrooveShuffleBox.js +64 -0
- package/dist/LoopArea.d.ts +16 -0
- package/dist/LoopArea.d.ts.map +1 -0
- package/dist/LoopArea.js +41 -0
- package/dist/MarkerBox.d.ts +23 -0
- package/dist/MarkerBox.d.ts.map +1 -0
- package/dist/MarkerBox.js +68 -0
- package/dist/MarkerTrack.d.ts +17 -0
- package/dist/MarkerTrack.d.ts.map +1 -0
- package/dist/MarkerTrack.js +42 -0
- package/dist/ModularAudioInputBox.d.ts +18 -0
- package/dist/ModularAudioInputBox.d.ts.map +1 -0
- package/dist/ModularAudioInputBox.js +45 -0
- package/dist/ModularAudioOutputBox.d.ts +18 -0
- package/dist/ModularAudioOutputBox.d.ts.map +1 -0
- package/dist/ModularAudioOutputBox.js +45 -0
- package/dist/ModularBox.d.ts +25 -0
- package/dist/ModularBox.d.ts.map +1 -0
- package/dist/ModularBox.js +83 -0
- package/dist/ModularDeviceBox.d.ts +28 -0
- package/dist/ModularDeviceBox.d.ts.map +1 -0
- package/dist/ModularDeviceBox.js +90 -0
- package/dist/ModuleAttributes.d.ts +23 -0
- package/dist/ModuleAttributes.d.ts.map +1 -0
- package/dist/ModuleAttributes.js +69 -0
- package/dist/ModuleConnectionBox.d.ts +19 -0
- package/dist/ModuleConnectionBox.d.ts.map +1 -0
- package/dist/ModuleConnectionBox.js +50 -0
- package/dist/ModuleDelayBox.d.ts +22 -0
- package/dist/ModuleDelayBox.d.ts.map +1 -0
- package/dist/ModuleDelayBox.js +69 -0
- package/dist/ModuleGainBox.d.ts +22 -0
- package/dist/ModuleGainBox.d.ts.map +1 -0
- package/dist/ModuleGainBox.js +69 -0
- package/dist/ModuleMultiplierBox.d.ts +24 -0
- package/dist/ModuleMultiplierBox.d.ts.map +1 -0
- package/dist/ModuleMultiplierBox.js +78 -0
- package/dist/NanoDeviceBox.d.ts +29 -0
- package/dist/NanoDeviceBox.d.ts.map +1 -0
- package/dist/NanoDeviceBox.js +112 -0
- package/dist/NoteClipBox.d.ts +30 -0
- package/dist/NoteClipBox.d.ts.map +1 -0
- package/dist/NoteClipBox.js +99 -0
- package/dist/NoteEventBox.d.ts +31 -0
- package/dist/NoteEventBox.d.ts.map +1 -0
- package/dist/NoteEventBox.js +107 -0
- package/dist/NoteEventCollectionBox.d.ts +17 -0
- package/dist/NoteEventCollectionBox.d.ts.map +1 -0
- package/dist/NoteEventCollectionBox.js +44 -0
- package/dist/NoteEventRepeatBox.d.ts +21 -0
- package/dist/NoteEventRepeatBox.d.ts.map +1 -0
- package/dist/NoteEventRepeatBox.js +59 -0
- package/dist/NoteRegionBox.d.ts +33 -0
- package/dist/NoteRegionBox.d.ts.map +1 -0
- package/dist/NoteRegionBox.js +116 -0
- package/dist/PianoMode.d.ts +20 -0
- package/dist/PianoMode.d.ts.map +1 -0
- package/dist/PianoMode.js +59 -0
- package/dist/PitchDeviceBox.d.ts +29 -0
- package/dist/PitchDeviceBox.d.ts.map +1 -0
- package/dist/PitchDeviceBox.js +119 -0
- package/dist/PlayfieldDeviceBox.d.ts +25 -0
- package/dist/PlayfieldDeviceBox.d.ts.map +1 -0
- package/dist/PlayfieldDeviceBox.js +80 -0
- package/dist/PlayfieldSampleBox.d.ts +51 -0
- package/dist/PlayfieldSampleBox.d.ts.map +1 -0
- package/dist/PlayfieldSampleBox.js +229 -0
- package/dist/RevampBell.d.ts +19 -0
- package/dist/RevampBell.d.ts.map +1 -0
- package/dist/RevampBell.js +79 -0
- package/dist/RevampDeviceBox.d.ts +42 -0
- package/dist/RevampDeviceBox.d.ts.map +1 -0
- package/dist/RevampDeviceBox.js +153 -0
- package/dist/RevampPass.d.ts +19 -0
- package/dist/RevampPass.d.ts.map +1 -0
- package/dist/RevampPass.js +79 -0
- package/dist/RevampShelf.d.ts +17 -0
- package/dist/RevampShelf.d.ts.map +1 -0
- package/dist/RevampShelf.js +63 -0
- package/dist/ReverbDeviceBox.d.ts +35 -0
- package/dist/ReverbDeviceBox.d.ts.map +1 -0
- package/dist/ReverbDeviceBox.js +167 -0
- package/dist/RootBox.d.ts +34 -0
- package/dist/RootBox.d.ts.map +1 -0
- package/dist/RootBox.js +109 -0
- package/dist/SelectionBox.d.ts +17 -0
- package/dist/SelectionBox.d.ts.map +1 -0
- package/dist/SelectionBox.js +41 -0
- package/dist/Signature.d.ts +14 -0
- package/dist/Signature.d.ts.map +1 -0
- package/dist/Signature.js +32 -0
- package/dist/StepAutomationBox.d.ts +19 -0
- package/dist/StepAutomationBox.d.ts.map +1 -0
- package/dist/StepAutomationBox.js +50 -0
- package/dist/StereoToolDeviceBox.d.ts +37 -0
- package/dist/StereoToolDeviceBox.d.ts.map +1 -0
- package/dist/StereoToolDeviceBox.js +176 -0
- package/dist/TapeDeviceBox.d.ts +31 -0
- package/dist/TapeDeviceBox.d.ts.map +1 -0
- package/dist/TapeDeviceBox.js +135 -0
- package/dist/TimelineBox.d.ts +30 -0
- package/dist/TimelineBox.d.ts.map +1 -0
- package/dist/TimelineBox.js +89 -0
- package/dist/TrackBox.d.ts +29 -0
- package/dist/TrackBox.d.ts.map +1 -0
- package/dist/TrackBox.js +101 -0
- package/dist/UserInterfaceBox.d.ts +23 -0
- package/dist/UserInterfaceBox.d.ts.map +1 -0
- package/dist/UserInterfaceBox.js +68 -0
- package/dist/ValueClipBox.d.ts +30 -0
- package/dist/ValueClipBox.d.ts.map +1 -0
- package/dist/ValueClipBox.js +99 -0
- package/dist/ValueEventBox.d.ts +25 -0
- package/dist/ValueEventBox.d.ts.map +1 -0
- package/dist/ValueEventBox.js +80 -0
- package/dist/ValueEventCollectionBox.d.ts +17 -0
- package/dist/ValueEventCollectionBox.d.ts.map +1 -0
- package/dist/ValueEventCollectionBox.js +44 -0
- package/dist/ValueEventCurveBox.d.ts +17 -0
- package/dist/ValueEventCurveBox.d.ts.map +1 -0
- package/dist/ValueEventCurveBox.js +41 -0
- package/dist/ValueRegionBox.d.ts +31 -0
- package/dist/ValueRegionBox.d.ts.map +1 -0
- package/dist/ValueRegionBox.js +107 -0
- package/dist/VaporisateurDeviceBox.d.ts +41 -0
- package/dist/VaporisateurDeviceBox.d.ts.map +1 -0
- package/dist/VaporisateurDeviceBox.js +215 -0
- package/dist/ZeitgeistDeviceBox.d.ts +25 -0
- package/dist/ZeitgeistDeviceBox.d.ts.map +1 -0
- package/dist/ZeitgeistDeviceBox.js +80 -0
- package/dist/index.d.ts +107 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +115 -0
- package/dist/io.d.ts +56 -0
- package/dist/io.d.ts.map +1 -0
- package/dist/io.js +120 -0
- package/dist/visitor.d.ts +51 -0
- package/dist/visitor.d.ts.map +1 -0
- package/dist/visitor.js +1 -0
- package/package.json +35 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
import "@opendaw/lib-std";
|
2
|
+
import { ObjectField, FieldConstruct, BooleanField, Int32Field, UnreferenceableType } from "@opendaw/lib-box";
|
3
|
+
export type LoopAreaFields = {
|
4
|
+
1: BooleanField;
|
5
|
+
2: Int32Field;
|
6
|
+
3: Int32Field;
|
7
|
+
};
|
8
|
+
export declare class LoopArea extends ObjectField<LoopAreaFields> {
|
9
|
+
static create(construct: FieldConstruct<UnreferenceableType>): LoopArea;
|
10
|
+
private constructor();
|
11
|
+
get enabled(): BooleanField;
|
12
|
+
get from(): Int32Field;
|
13
|
+
get to(): Int32Field;
|
14
|
+
initializeFields(): LoopAreaFields;
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=LoopArea.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LoopArea.d.ts","sourceRoot":"","sources":["../src/LoopArea.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EACL,WAAW,EACX,cAAc,EAEd,YAAY,EACZ,UAAU,EACV,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAW1B,MAAM,MAAM,cAAc,GAAG;IAC3B,CAAC,EAAsB,YAAY,CAAC;IACpC,CAAC,EAAgB,UAAU,CAAC;IAC5B,CAAC,EAAkB,UAAU,CAAC;CAC/B,CAAC;AAEF,qBAAa,QAAS,SAAQ,WAAW,CAAC,cAAc,CAAC;IACvD,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,cAAc,CAAC,mBAAmB,CAAC,GAAG,QAAQ;IAIvE,OAAO;IAIP,IAAI,OAAO,IAAI,YAAY,CAE1B;IAED,IAAI,IAAI,IAAI,UAAU,CAErB;IAED,IAAI,EAAE,IAAI,UAAU,CAEnB;IAED,gBAAgB,IAAI,cAAc;CA+BnC"}
|
package/dist/LoopArea.js
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
import "@opendaw/lib-std";
|
2
|
+
import { ObjectField, NoPointers, BooleanField, Int32Field, } from "@opendaw/lib-box";
|
3
|
+
export class LoopArea extends ObjectField {
|
4
|
+
static create(construct) {
|
5
|
+
return new LoopArea(construct);
|
6
|
+
}
|
7
|
+
constructor(construct) {
|
8
|
+
super(construct);
|
9
|
+
}
|
10
|
+
get enabled() {
|
11
|
+
return this.getField(1);
|
12
|
+
}
|
13
|
+
get from() {
|
14
|
+
return this.getField(2);
|
15
|
+
}
|
16
|
+
get to() {
|
17
|
+
return this.getField(3);
|
18
|
+
}
|
19
|
+
initializeFields() {
|
20
|
+
return {
|
21
|
+
1: BooleanField.create({
|
22
|
+
parent: this,
|
23
|
+
fieldKey: 1,
|
24
|
+
fieldName: "enabled",
|
25
|
+
pointerRules: NoPointers,
|
26
|
+
}, true),
|
27
|
+
2: Int32Field.create({
|
28
|
+
parent: this,
|
29
|
+
fieldKey: 2,
|
30
|
+
fieldName: "from",
|
31
|
+
pointerRules: NoPointers,
|
32
|
+
}, 0),
|
33
|
+
3: Int32Field.create({
|
34
|
+
parent: this,
|
35
|
+
fieldKey: 3,
|
36
|
+
fieldName: "to",
|
37
|
+
pointerRules: NoPointers,
|
38
|
+
}, 15360),
|
39
|
+
};
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, Int32Field, StringField } from "@opendaw/lib-box";
|
3
|
+
import { BoxVisitor } from ".";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export type MarkerBoxFields = {
|
6
|
+
1: PointerField<Pointers.MarkerTrack>;
|
7
|
+
2: Int32Field;
|
8
|
+
3: Int32Field;
|
9
|
+
4: StringField;
|
10
|
+
5: Int32Field;
|
11
|
+
};
|
12
|
+
export declare class MarkerBox extends Box<Pointers.Selection, MarkerBoxFields> {
|
13
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<MarkerBox>): MarkerBox;
|
14
|
+
private constructor();
|
15
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
16
|
+
get track(): PointerField<Pointers.MarkerTrack>;
|
17
|
+
get position(): Int32Field;
|
18
|
+
get plays(): Int32Field;
|
19
|
+
get label(): StringField;
|
20
|
+
get hue(): Int32Field;
|
21
|
+
initializeFields(): MarkerBoxFields;
|
22
|
+
}
|
23
|
+
//# sourceMappingURL=MarkerBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MarkerBox.d.ts","sourceRoot":"","sources":["../src/MarkerBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EACL,GAAG,EAEH,QAAQ,EAER,YAAY,EACZ,UAAU,EACV,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,EAAc,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAClD,CAAC,EAAiB,UAAU,CAAC;IAC7B,CAAC,EAAiB,UAAU,CAAC;IAC7B,CAAC,EAAc,WAAW,CAAC;IAC3B,CAAC,EAAY,UAAU,CAAC;CACzB,CAAC;AAEF,qBAAa,SAAU,SAAQ,GAAG,CAAC,QAAQ,CAAC,SAAS,EAAE,eAAe,CAAC;IACrE,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,GACjC,SAAS;IAYZ,OAAO;IAIP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,KAAK,IAAI,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAE9C;IAED,IAAI,QAAQ,IAAI,UAAU,CAEzB;IAED,IAAI,KAAK,IAAI,UAAU,CAEtB;IAED,IAAI,KAAK,IAAI,WAAW,CAEvB;IAED,IAAI,GAAG,IAAI,UAAU,CAEpB;IAED,gBAAgB,IAAI,eAAe;CAyCpC"}
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, PointerField, Int32Field, StringField, } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class MarkerBox extends Box {
|
5
|
+
static create(graph, uuid, constructor) {
|
6
|
+
return graph.stageBox(new MarkerBox({
|
7
|
+
uuid,
|
8
|
+
graph,
|
9
|
+
name: "MarkerBox",
|
10
|
+
pointerRules: { accepts: [Pointers.Selection], mandatory: false },
|
11
|
+
}), constructor);
|
12
|
+
}
|
13
|
+
constructor(construct) {
|
14
|
+
super(construct);
|
15
|
+
}
|
16
|
+
accept(visitor) {
|
17
|
+
return safeExecute(visitor.visitMarkerBox, this);
|
18
|
+
}
|
19
|
+
get track() {
|
20
|
+
return this.getField(1);
|
21
|
+
}
|
22
|
+
get position() {
|
23
|
+
return this.getField(2);
|
24
|
+
}
|
25
|
+
get plays() {
|
26
|
+
return this.getField(3);
|
27
|
+
}
|
28
|
+
get label() {
|
29
|
+
return this.getField(4);
|
30
|
+
}
|
31
|
+
get hue() {
|
32
|
+
return this.getField(5);
|
33
|
+
}
|
34
|
+
initializeFields() {
|
35
|
+
return {
|
36
|
+
1: PointerField.create({
|
37
|
+
parent: this,
|
38
|
+
fieldKey: 1,
|
39
|
+
fieldName: "track",
|
40
|
+
pointerRules: NoPointers,
|
41
|
+
}, Pointers.MarkerTrack, true),
|
42
|
+
2: Int32Field.create({
|
43
|
+
parent: this,
|
44
|
+
fieldKey: 2,
|
45
|
+
fieldName: "position",
|
46
|
+
pointerRules: NoPointers,
|
47
|
+
}),
|
48
|
+
3: Int32Field.create({
|
49
|
+
parent: this,
|
50
|
+
fieldKey: 3,
|
51
|
+
fieldName: "plays",
|
52
|
+
pointerRules: NoPointers,
|
53
|
+
}, 1),
|
54
|
+
4: StringField.create({
|
55
|
+
parent: this,
|
56
|
+
fieldKey: 4,
|
57
|
+
fieldName: "label",
|
58
|
+
pointerRules: NoPointers,
|
59
|
+
}),
|
60
|
+
5: Int32Field.create({
|
61
|
+
parent: this,
|
62
|
+
fieldKey: 5,
|
63
|
+
fieldName: "hue",
|
64
|
+
pointerRules: NoPointers,
|
65
|
+
}),
|
66
|
+
};
|
67
|
+
}
|
68
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import "@opendaw/lib-std";
|
2
|
+
import { ObjectField, FieldConstruct, Field, Int32Field, BooleanField, UnreferenceableType } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export type MarkerTrackFields = {
|
5
|
+
1: Field<Pointers.MarkerTrack>;
|
6
|
+
10: Int32Field;
|
7
|
+
20: BooleanField;
|
8
|
+
};
|
9
|
+
export declare class MarkerTrack extends ObjectField<MarkerTrackFields> {
|
10
|
+
static create(construct: FieldConstruct<UnreferenceableType>): MarkerTrack;
|
11
|
+
private constructor();
|
12
|
+
get markers(): Field<Pointers.MarkerTrack>;
|
13
|
+
get index(): Int32Field;
|
14
|
+
get enabled(): BooleanField;
|
15
|
+
initializeFields(): MarkerTrackFields;
|
16
|
+
}
|
17
|
+
//# sourceMappingURL=MarkerTrack.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MarkerTrack.d.ts","sourceRoot":"","sources":["../src/MarkerTrack.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EACL,WAAW,EACX,cAAc,EAEd,KAAK,EACL,UAAU,EACV,YAAY,EACZ,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,CAAC,EAAgB,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC7C,EAAE,EAAc,UAAU,CAAC;IAC3B,EAAE,EAAsB,YAAY,CAAC;CACtC,CAAC;AAEF,qBAAa,WAAY,SAAQ,WAAW,CAAC,iBAAiB,CAAC;IAC7D,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,cAAc,CAAC,mBAAmB,CAAC,GAAG,WAAW;IAI1E,OAAO;IAIP,IAAI,OAAO,IAAI,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,CAEzC;IAED,IAAI,KAAK,IAAI,UAAU,CAEtB;IAED,IAAI,OAAO,IAAI,YAAY,CAE1B;IAED,gBAAgB,IAAI,iBAAiB;CAyBtC"}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import "@opendaw/lib-std";
|
2
|
+
import { ObjectField, NoPointers, Field, Int32Field, BooleanField, } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class MarkerTrack extends ObjectField {
|
5
|
+
static create(construct) {
|
6
|
+
return new MarkerTrack(construct);
|
7
|
+
}
|
8
|
+
constructor(construct) {
|
9
|
+
super(construct);
|
10
|
+
}
|
11
|
+
get markers() {
|
12
|
+
return this.getField(1);
|
13
|
+
}
|
14
|
+
get index() {
|
15
|
+
return this.getField(10);
|
16
|
+
}
|
17
|
+
get enabled() {
|
18
|
+
return this.getField(20);
|
19
|
+
}
|
20
|
+
initializeFields() {
|
21
|
+
return {
|
22
|
+
1: Field.hook({
|
23
|
+
parent: this,
|
24
|
+
fieldKey: 1,
|
25
|
+
fieldName: "markers",
|
26
|
+
pointerRules: { accepts: [Pointers.MarkerTrack], mandatory: false },
|
27
|
+
}),
|
28
|
+
10: Int32Field.create({
|
29
|
+
parent: this,
|
30
|
+
fieldKey: 10,
|
31
|
+
fieldName: "index",
|
32
|
+
pointerRules: NoPointers,
|
33
|
+
}),
|
34
|
+
20: BooleanField.create({
|
35
|
+
parent: this,
|
36
|
+
fieldKey: 20,
|
37
|
+
fieldName: "enabled",
|
38
|
+
pointerRules: NoPointers,
|
39
|
+
}, true),
|
40
|
+
};
|
41
|
+
}
|
42
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, Field } from "@opendaw/lib-box";
|
3
|
+
import { ModuleAttributes } from "./ModuleAttributes";
|
4
|
+
import { BoxVisitor } from ".";
|
5
|
+
import { Pointers } from "@opendaw/studio-enums";
|
6
|
+
export type ModularAudioInputBoxFields = {
|
7
|
+
1: ModuleAttributes;
|
8
|
+
10: Field<Pointers.VoltageConnection>;
|
9
|
+
};
|
10
|
+
export declare class ModularAudioInputBox extends Box<Pointers.Selection, ModularAudioInputBoxFields> {
|
11
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<ModularAudioInputBox>): ModularAudioInputBox;
|
12
|
+
private constructor();
|
13
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
14
|
+
get attributes(): ModuleAttributes;
|
15
|
+
get output(): Field<Pointers.VoltageConnection>;
|
16
|
+
initializeFields(): ModularAudioInputBoxFields;
|
17
|
+
}
|
18
|
+
//# sourceMappingURL=ModularAudioInputBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModularAudioInputBox.d.ts","sourceRoot":"","sources":["../src/ModularAudioInputBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EACL,GAAG,EAEH,QAAQ,EAER,KAAK,EACN,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,0BAA0B,GAAG;IACvC,CAAC,EAAmB,gBAAgB,CAAC;IACrC,EAAE,EAAe,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;CACpD,CAAC;AAEF,qBAAa,oBAAqB,SAAQ,GAAG,CAC3C,QAAQ,CAAC,SAAS,EAClB,0BAA0B,CAC3B;IACC,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,oBAAoB,CAAC,GAC5C,oBAAoB;IAYvB,OAAO;IAIP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,UAAU,IAAI,gBAAgB,CAEjC;IAED,IAAI,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAE9C;IAED,gBAAgB,IAAI,0BAA0B;CAmB/C"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, Field, } from "@opendaw/lib-box";
|
3
|
+
import { ModuleAttributes } from "./ModuleAttributes";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export class ModularAudioInputBox extends Box {
|
6
|
+
static create(graph, uuid, constructor) {
|
7
|
+
return graph.stageBox(new ModularAudioInputBox({
|
8
|
+
uuid,
|
9
|
+
graph,
|
10
|
+
name: "ModularAudioInputBox",
|
11
|
+
pointerRules: { accepts: [Pointers.Selection], mandatory: false },
|
12
|
+
}), constructor);
|
13
|
+
}
|
14
|
+
constructor(construct) {
|
15
|
+
super(construct);
|
16
|
+
}
|
17
|
+
accept(visitor) {
|
18
|
+
return safeExecute(visitor.visitModularAudioInputBox, this);
|
19
|
+
}
|
20
|
+
get attributes() {
|
21
|
+
return this.getField(1);
|
22
|
+
}
|
23
|
+
get output() {
|
24
|
+
return this.getField(10);
|
25
|
+
}
|
26
|
+
initializeFields() {
|
27
|
+
return {
|
28
|
+
1: ModuleAttributes.create({
|
29
|
+
parent: this,
|
30
|
+
fieldKey: 1,
|
31
|
+
fieldName: "attributes",
|
32
|
+
pointerRules: NoPointers,
|
33
|
+
}),
|
34
|
+
10: Field.hook({
|
35
|
+
parent: this,
|
36
|
+
fieldKey: 10,
|
37
|
+
fieldName: "output",
|
38
|
+
pointerRules: {
|
39
|
+
accepts: [Pointers.VoltageConnection],
|
40
|
+
mandatory: false,
|
41
|
+
},
|
42
|
+
}),
|
43
|
+
};
|
44
|
+
}
|
45
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, Field } from "@opendaw/lib-box";
|
3
|
+
import { ModuleAttributes } from "./ModuleAttributes";
|
4
|
+
import { BoxVisitor } from ".";
|
5
|
+
import { Pointers } from "@opendaw/studio-enums";
|
6
|
+
export type ModularAudioOutputBoxFields = {
|
7
|
+
1: ModuleAttributes;
|
8
|
+
10: Field<Pointers.VoltageConnection>;
|
9
|
+
};
|
10
|
+
export declare class ModularAudioOutputBox extends Box<Pointers.Selection, ModularAudioOutputBoxFields> {
|
11
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<ModularAudioOutputBox>): ModularAudioOutputBox;
|
12
|
+
private constructor();
|
13
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
14
|
+
get attributes(): ModuleAttributes;
|
15
|
+
get input(): Field<Pointers.VoltageConnection>;
|
16
|
+
initializeFields(): ModularAudioOutputBoxFields;
|
17
|
+
}
|
18
|
+
//# sourceMappingURL=ModularAudioOutputBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModularAudioOutputBox.d.ts","sourceRoot":"","sources":["../src/ModularAudioOutputBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EACL,GAAG,EAEH,QAAQ,EAER,KAAK,EACN,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,2BAA2B,GAAG;IACxC,CAAC,EAAmB,gBAAgB,CAAC;IACrC,EAAE,EAAc,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;CACnD,CAAC;AAEF,qBAAa,qBAAsB,SAAQ,GAAG,CAC5C,QAAQ,CAAC,SAAS,EAClB,2BAA2B,CAC5B;IACC,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,qBAAqB,CAAC,GAC7C,qBAAqB;IAYxB,OAAO;IAIP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,UAAU,IAAI,gBAAgB,CAEjC;IAED,IAAI,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAE7C;IAED,gBAAgB,IAAI,2BAA2B;CAmBhD"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, Field, } from "@opendaw/lib-box";
|
3
|
+
import { ModuleAttributes } from "./ModuleAttributes";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export class ModularAudioOutputBox extends Box {
|
6
|
+
static create(graph, uuid, constructor) {
|
7
|
+
return graph.stageBox(new ModularAudioOutputBox({
|
8
|
+
uuid,
|
9
|
+
graph,
|
10
|
+
name: "ModularAudioOutputBox",
|
11
|
+
pointerRules: { accepts: [Pointers.Selection], mandatory: false },
|
12
|
+
}), constructor);
|
13
|
+
}
|
14
|
+
constructor(construct) {
|
15
|
+
super(construct);
|
16
|
+
}
|
17
|
+
accept(visitor) {
|
18
|
+
return safeExecute(visitor.visitModularAudioOutputBox, this);
|
19
|
+
}
|
20
|
+
get attributes() {
|
21
|
+
return this.getField(1);
|
22
|
+
}
|
23
|
+
get input() {
|
24
|
+
return this.getField(10);
|
25
|
+
}
|
26
|
+
initializeFields() {
|
27
|
+
return {
|
28
|
+
1: ModuleAttributes.create({
|
29
|
+
parent: this,
|
30
|
+
fieldKey: 1,
|
31
|
+
fieldName: "attributes",
|
32
|
+
pointerRules: NoPointers,
|
33
|
+
}),
|
34
|
+
10: Field.hook({
|
35
|
+
parent: this,
|
36
|
+
fieldKey: 10,
|
37
|
+
fieldName: "input",
|
38
|
+
pointerRules: {
|
39
|
+
accepts: [Pointers.VoltageConnection],
|
40
|
+
mandatory: false,
|
41
|
+
},
|
42
|
+
}),
|
43
|
+
};
|
44
|
+
}
|
45
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, Field, StringField, UnreferenceableType } from "@opendaw/lib-box";
|
3
|
+
import { BoxVisitor } from ".";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export type ModularBoxFields = {
|
6
|
+
1: PointerField<Pointers.ModularSetup>;
|
7
|
+
2: Field<Pointers.ModularSetup>;
|
8
|
+
3: Field<Pointers.Editing>;
|
9
|
+
11: Field<Pointers.ModuleCollection>;
|
10
|
+
12: Field<Pointers.ConnectionCollection>;
|
11
|
+
13: StringField;
|
12
|
+
};
|
13
|
+
export declare class ModularBox extends Box<UnreferenceableType, ModularBoxFields> {
|
14
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<ModularBox>): ModularBox;
|
15
|
+
private constructor();
|
16
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
17
|
+
get collection(): PointerField<Pointers.ModularSetup>;
|
18
|
+
get device(): Field<Pointers.ModularSetup>;
|
19
|
+
get editing(): Field<Pointers.Editing>;
|
20
|
+
get modules(): Field<Pointers.ModuleCollection>;
|
21
|
+
get connections(): Field<Pointers.ConnectionCollection>;
|
22
|
+
get label(): StringField;
|
23
|
+
initializeFields(): ModularBoxFields;
|
24
|
+
}
|
25
|
+
//# sourceMappingURL=ModularBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModularBox.d.ts","sourceRoot":"","sources":["../src/ModularBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EACL,GAAG,EAEH,QAAQ,EAER,YAAY,EACZ,KAAK,EACL,WAAW,EACX,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,EAAmB,YAAY,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IACxD,CAAC,EAAe,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IAC7C,CAAC,EAAgB,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACzC,EAAE,EAAgB,KAAK,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACnD,EAAE,EAAoB,KAAK,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC;IAC3D,EAAE,EAAc,WAAW,CAAC;CAC7B,CAAC;AAEF,qBAAa,UAAW,SAAQ,GAAG,CAAC,mBAAmB,EAAE,gBAAgB,CAAC;IACxE,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,GAClC,UAAU;IAYb,OAAO;IAIP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,UAAU,IAAI,YAAY,CAAC,QAAQ,CAAC,YAAY,CAAC,CAEpD;IAED,IAAI,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAEzC;IAED,IAAI,OAAO,IAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAErC;IAED,IAAI,OAAO,IAAI,KAAK,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAE9C;IAED,IAAI,WAAW,IAAI,KAAK,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAEtD;IAED,IAAI,KAAK,IAAI,WAAW,CAEvB;IAED,gBAAgB,IAAI,gBAAgB;CAkDrC"}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, PointerField, Field, StringField, } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class ModularBox extends Box {
|
5
|
+
static create(graph, uuid, constructor) {
|
6
|
+
return graph.stageBox(new ModularBox({
|
7
|
+
uuid,
|
8
|
+
graph,
|
9
|
+
name: "ModularBox",
|
10
|
+
pointerRules: NoPointers,
|
11
|
+
}), constructor);
|
12
|
+
}
|
13
|
+
constructor(construct) {
|
14
|
+
super(construct);
|
15
|
+
}
|
16
|
+
accept(visitor) {
|
17
|
+
return safeExecute(visitor.visitModularBox, this);
|
18
|
+
}
|
19
|
+
get collection() {
|
20
|
+
return this.getField(1);
|
21
|
+
}
|
22
|
+
get device() {
|
23
|
+
return this.getField(2);
|
24
|
+
}
|
25
|
+
get editing() {
|
26
|
+
return this.getField(3);
|
27
|
+
}
|
28
|
+
get modules() {
|
29
|
+
return this.getField(11);
|
30
|
+
}
|
31
|
+
get connections() {
|
32
|
+
return this.getField(12);
|
33
|
+
}
|
34
|
+
get label() {
|
35
|
+
return this.getField(13);
|
36
|
+
}
|
37
|
+
initializeFields() {
|
38
|
+
return {
|
39
|
+
1: PointerField.create({
|
40
|
+
parent: this,
|
41
|
+
fieldKey: 1,
|
42
|
+
fieldName: "collection",
|
43
|
+
pointerRules: NoPointers,
|
44
|
+
}, Pointers.ModularSetup, true),
|
45
|
+
2: Field.hook({
|
46
|
+
parent: this,
|
47
|
+
fieldKey: 2,
|
48
|
+
fieldName: "device",
|
49
|
+
pointerRules: { accepts: [Pointers.ModularSetup], mandatory: true },
|
50
|
+
}),
|
51
|
+
3: Field.hook({
|
52
|
+
parent: this,
|
53
|
+
fieldKey: 3,
|
54
|
+
fieldName: "editing",
|
55
|
+
pointerRules: { accepts: [Pointers.Editing], mandatory: false },
|
56
|
+
}),
|
57
|
+
11: Field.hook({
|
58
|
+
parent: this,
|
59
|
+
fieldKey: 11,
|
60
|
+
fieldName: "modules",
|
61
|
+
pointerRules: {
|
62
|
+
accepts: [Pointers.ModuleCollection],
|
63
|
+
mandatory: false,
|
64
|
+
},
|
65
|
+
}),
|
66
|
+
12: Field.hook({
|
67
|
+
parent: this,
|
68
|
+
fieldKey: 12,
|
69
|
+
fieldName: "connections",
|
70
|
+
pointerRules: {
|
71
|
+
accepts: [Pointers.ConnectionCollection],
|
72
|
+
mandatory: false,
|
73
|
+
},
|
74
|
+
}),
|
75
|
+
13: StringField.create({
|
76
|
+
parent: this,
|
77
|
+
fieldKey: 13,
|
78
|
+
fieldName: "label",
|
79
|
+
pointerRules: NoPointers,
|
80
|
+
}),
|
81
|
+
};
|
82
|
+
}
|
83
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, Int32Field, StringField, BooleanField } from "@opendaw/lib-box";
|
3
|
+
import { DeviceUserInterface } from "./DeviceUserInterface";
|
4
|
+
import { BoxVisitor } from ".";
|
5
|
+
import { Pointers } from "@opendaw/studio-enums";
|
6
|
+
export type ModularDeviceBoxFields = {
|
7
|
+
1: PointerField<Pointers.AudioEffectHost>;
|
8
|
+
2: Int32Field;
|
9
|
+
3: StringField;
|
10
|
+
4: BooleanField;
|
11
|
+
5: BooleanField;
|
12
|
+
10: PointerField<Pointers.ModularSetup>;
|
13
|
+
11: DeviceUserInterface;
|
14
|
+
};
|
15
|
+
export declare class ModularDeviceBox extends Box<Pointers.Device | Pointers.Selection, ModularDeviceBoxFields> {
|
16
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<ModularDeviceBox>): ModularDeviceBox;
|
17
|
+
private constructor();
|
18
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
19
|
+
get host(): PointerField<Pointers.AudioEffectHost>;
|
20
|
+
get index(): Int32Field;
|
21
|
+
get label(): StringField;
|
22
|
+
get enabled(): BooleanField;
|
23
|
+
get minimized(): BooleanField;
|
24
|
+
get modularSetup(): PointerField<Pointers.ModularSetup>;
|
25
|
+
get userInterface(): DeviceUserInterface;
|
26
|
+
initializeFields(): ModularDeviceBoxFields;
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=ModularDeviceBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModularDeviceBox.d.ts","sourceRoot":"","sources":["../src/ModularDeviceBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EACL,GAAG,EAEH,QAAQ,EAER,YAAY,EACZ,UAAU,EACV,WAAW,EACX,YAAY,EACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,sBAAsB,GAAG;IACnC,CAAC,EAAa,YAAY,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;IACrD,CAAC,EAAc,UAAU,CAAC;IAC1B,CAAC,EAAc,WAAW,CAAC;IAC3B,CAAC,EAAsB,YAAY,CAAC;IACpC,CAAC,EAAyB,YAAY,CAAC;IACvC,EAAE,EAAqB,YAAY,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IAC3D,EAAE,EAAsB,mBAAmB,CAAC;CAC7C,CAAC;AAEF,qBAAa,gBAAiB,SAAQ,GAAG,CACvC,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC,SAAS,EACpC,sBAAsB,CACvB;IACC,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,GACxC,gBAAgB;IAenB,OAAO;IAMP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,IAAI,IAAI,YAAY,CAAC,QAAQ,CAAC,eAAe,CAAC,CAEjD;IAED,IAAI,KAAK,IAAI,UAAU,CAEtB;IAED,IAAI,KAAK,IAAI,WAAW,CAEvB;IAED,IAAI,OAAO,IAAI,YAAY,CAE1B;IAED,IAAI,SAAS,IAAI,YAAY,CAE5B;IAED,IAAI,YAAY,IAAI,YAAY,CAAC,QAAQ,CAAC,YAAY,CAAC,CAEtD;IAED,IAAI,aAAa,IAAI,mBAAmB,CAEvC;IAED,gBAAgB,IAAI,sBAAsB;CA4D3C"}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, PointerField, Int32Field, StringField, BooleanField, } from "@opendaw/lib-box";
|
3
|
+
import { DeviceUserInterface } from "./DeviceUserInterface";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export class ModularDeviceBox extends Box {
|
6
|
+
static create(graph, uuid, constructor) {
|
7
|
+
return graph.stageBox(new ModularDeviceBox({
|
8
|
+
uuid,
|
9
|
+
graph,
|
10
|
+
name: "ModularDeviceBox",
|
11
|
+
pointerRules: {
|
12
|
+
accepts: [Pointers.Device, Pointers.Selection],
|
13
|
+
mandatory: false,
|
14
|
+
},
|
15
|
+
}), constructor);
|
16
|
+
}
|
17
|
+
constructor(construct) {
|
18
|
+
super(construct);
|
19
|
+
}
|
20
|
+
accept(visitor) {
|
21
|
+
return safeExecute(visitor.visitModularDeviceBox, this);
|
22
|
+
}
|
23
|
+
get host() {
|
24
|
+
return this.getField(1);
|
25
|
+
}
|
26
|
+
get index() {
|
27
|
+
return this.getField(2);
|
28
|
+
}
|
29
|
+
get label() {
|
30
|
+
return this.getField(3);
|
31
|
+
}
|
32
|
+
get enabled() {
|
33
|
+
return this.getField(4);
|
34
|
+
}
|
35
|
+
get minimized() {
|
36
|
+
return this.getField(5);
|
37
|
+
}
|
38
|
+
get modularSetup() {
|
39
|
+
return this.getField(10);
|
40
|
+
}
|
41
|
+
get userInterface() {
|
42
|
+
return this.getField(11);
|
43
|
+
}
|
44
|
+
initializeFields() {
|
45
|
+
return {
|
46
|
+
1: PointerField.create({
|
47
|
+
parent: this,
|
48
|
+
fieldKey: 1,
|
49
|
+
fieldName: "host",
|
50
|
+
pointerRules: NoPointers,
|
51
|
+
}, Pointers.AudioEffectHost, true),
|
52
|
+
2: Int32Field.create({
|
53
|
+
parent: this,
|
54
|
+
fieldKey: 2,
|
55
|
+
fieldName: "index",
|
56
|
+
pointerRules: NoPointers,
|
57
|
+
}),
|
58
|
+
3: StringField.create({
|
59
|
+
parent: this,
|
60
|
+
fieldKey: 3,
|
61
|
+
fieldName: "label",
|
62
|
+
pointerRules: NoPointers,
|
63
|
+
}),
|
64
|
+
4: BooleanField.create({
|
65
|
+
parent: this,
|
66
|
+
fieldKey: 4,
|
67
|
+
fieldName: "enabled",
|
68
|
+
pointerRules: NoPointers,
|
69
|
+
}, true),
|
70
|
+
5: BooleanField.create({
|
71
|
+
parent: this,
|
72
|
+
fieldKey: 5,
|
73
|
+
fieldName: "minimized",
|
74
|
+
pointerRules: NoPointers,
|
75
|
+
}, false),
|
76
|
+
10: PointerField.create({
|
77
|
+
parent: this,
|
78
|
+
fieldKey: 10,
|
79
|
+
fieldName: "modularSetup",
|
80
|
+
pointerRules: NoPointers,
|
81
|
+
}, Pointers.ModularSetup, true),
|
82
|
+
11: DeviceUserInterface.create({
|
83
|
+
parent: this,
|
84
|
+
fieldKey: 11,
|
85
|
+
fieldName: "userInterface",
|
86
|
+
pointerRules: NoPointers,
|
87
|
+
}),
|
88
|
+
};
|
89
|
+
}
|
90
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import "@opendaw/lib-std";
|
2
|
+
import { ObjectField, FieldConstruct, PointerField, StringField, Int32Field, BooleanField, UnreferenceableType } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export type ModuleAttributesFields = {
|
5
|
+
1: PointerField<Pointers.ModuleCollection>;
|
6
|
+
2: StringField;
|
7
|
+
3: Int32Field;
|
8
|
+
4: Int32Field;
|
9
|
+
5: BooleanField;
|
10
|
+
6: BooleanField;
|
11
|
+
};
|
12
|
+
export declare class ModuleAttributes extends ObjectField<ModuleAttributesFields> {
|
13
|
+
static create(construct: FieldConstruct<UnreferenceableType>): ModuleAttributes;
|
14
|
+
private constructor();
|
15
|
+
get collection(): PointerField<Pointers.ModuleCollection>;
|
16
|
+
get label(): StringField;
|
17
|
+
get x(): Int32Field;
|
18
|
+
get y(): Int32Field;
|
19
|
+
get collapsed(): BooleanField;
|
20
|
+
get removable(): BooleanField;
|
21
|
+
initializeFields(): ModuleAttributesFields;
|
22
|
+
}
|
23
|
+
//# sourceMappingURL=ModuleAttributes.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModuleAttributes.d.ts","sourceRoot":"","sources":["../src/ModuleAttributes.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EACL,WAAW,EACX,cAAc,EAEd,YAAY,EACZ,WAAW,EACX,UAAU,EACV,YAAY,EACZ,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,sBAAsB,GAAG;IACnC,CAAC,EAAmB,YAAY,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAC5D,CAAC,EAAc,WAAW,CAAC;IAC3B,CAAC,EAAU,UAAU,CAAC;IACtB,CAAC,EAAU,UAAU,CAAC;IACtB,CAAC,EAAyB,YAAY,CAAC;IACvC,CAAC,EAAwB,YAAY,CAAC;CACvC,CAAC;AAEF,qBAAa,gBAAiB,SAAQ,WAAW,CAAC,sBAAsB,CAAC;IACvE,MAAM,CAAC,MAAM,CACX,SAAS,EAAE,cAAc,CAAC,mBAAmB,CAAC,GAC7C,gBAAgB;IAInB,OAAO;IAIP,IAAI,UAAU,IAAI,YAAY,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAExD;IAED,IAAI,KAAK,IAAI,WAAW,CAEvB;IAED,IAAI,CAAC,IAAI,UAAU,CAElB;IAED,IAAI,CAAC,IAAI,UAAU,CAElB;IAED,IAAI,SAAS,IAAI,YAAY,CAE5B;IAED,IAAI,SAAS,IAAI,YAAY,CAE5B;IAED,gBAAgB,IAAI,sBAAsB;CAkD3C"}
|