@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,135 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, PointerField, StringField, BooleanField, Float32Field, } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class TapeDeviceBox extends Box {
|
5
|
+
static create(graph, uuid, constructor) {
|
6
|
+
return graph.stageBox(new TapeDeviceBox({
|
7
|
+
uuid,
|
8
|
+
graph,
|
9
|
+
name: "TapeDeviceBox",
|
10
|
+
pointerRules: {
|
11
|
+
accepts: [Pointers.Device, Pointers.Selection, Pointers.Automation],
|
12
|
+
mandatory: false,
|
13
|
+
},
|
14
|
+
}), constructor);
|
15
|
+
}
|
16
|
+
constructor(construct) {
|
17
|
+
super(construct);
|
18
|
+
}
|
19
|
+
accept(visitor) {
|
20
|
+
return safeExecute(visitor.visitTapeDeviceBox, this);
|
21
|
+
}
|
22
|
+
get host() {
|
23
|
+
return this.getField(1);
|
24
|
+
}
|
25
|
+
get label() {
|
26
|
+
return this.getField(2);
|
27
|
+
}
|
28
|
+
get icon() {
|
29
|
+
return this.getField(3);
|
30
|
+
}
|
31
|
+
get enabled() {
|
32
|
+
return this.getField(4);
|
33
|
+
}
|
34
|
+
get minimized() {
|
35
|
+
return this.getField(5);
|
36
|
+
}
|
37
|
+
get flutter() {
|
38
|
+
return this.getField(10);
|
39
|
+
}
|
40
|
+
get wow() {
|
41
|
+
return this.getField(11);
|
42
|
+
}
|
43
|
+
get noise() {
|
44
|
+
return this.getField(12);
|
45
|
+
}
|
46
|
+
get saturation() {
|
47
|
+
return this.getField(13);
|
48
|
+
}
|
49
|
+
initializeFields() {
|
50
|
+
return {
|
51
|
+
1: PointerField.create({
|
52
|
+
parent: this,
|
53
|
+
fieldKey: 1,
|
54
|
+
fieldName: "host",
|
55
|
+
pointerRules: NoPointers,
|
56
|
+
}, Pointers.InstrumentHost, true),
|
57
|
+
2: StringField.create({
|
58
|
+
parent: this,
|
59
|
+
fieldKey: 2,
|
60
|
+
fieldName: "label",
|
61
|
+
pointerRules: NoPointers,
|
62
|
+
}),
|
63
|
+
3: StringField.create({
|
64
|
+
parent: this,
|
65
|
+
fieldKey: 3,
|
66
|
+
fieldName: "icon",
|
67
|
+
pointerRules: NoPointers,
|
68
|
+
}),
|
69
|
+
4: BooleanField.create({
|
70
|
+
parent: this,
|
71
|
+
fieldKey: 4,
|
72
|
+
fieldName: "enabled",
|
73
|
+
pointerRules: NoPointers,
|
74
|
+
}, true),
|
75
|
+
5: BooleanField.create({
|
76
|
+
parent: this,
|
77
|
+
fieldKey: 5,
|
78
|
+
fieldName: "minimized",
|
79
|
+
pointerRules: NoPointers,
|
80
|
+
}, false),
|
81
|
+
10: Float32Field.create({
|
82
|
+
parent: this,
|
83
|
+
fieldKey: 10,
|
84
|
+
fieldName: "flutter",
|
85
|
+
pointerRules: {
|
86
|
+
accepts: [
|
87
|
+
Pointers.Modulation,
|
88
|
+
Pointers.Automation,
|
89
|
+
Pointers.MidiControl,
|
90
|
+
],
|
91
|
+
mandatory: false,
|
92
|
+
},
|
93
|
+
}),
|
94
|
+
11: Float32Field.create({
|
95
|
+
parent: this,
|
96
|
+
fieldKey: 11,
|
97
|
+
fieldName: "wow",
|
98
|
+
pointerRules: {
|
99
|
+
accepts: [
|
100
|
+
Pointers.Modulation,
|
101
|
+
Pointers.Automation,
|
102
|
+
Pointers.MidiControl,
|
103
|
+
],
|
104
|
+
mandatory: false,
|
105
|
+
},
|
106
|
+
}),
|
107
|
+
12: Float32Field.create({
|
108
|
+
parent: this,
|
109
|
+
fieldKey: 12,
|
110
|
+
fieldName: "noise",
|
111
|
+
pointerRules: {
|
112
|
+
accepts: [
|
113
|
+
Pointers.Modulation,
|
114
|
+
Pointers.Automation,
|
115
|
+
Pointers.MidiControl,
|
116
|
+
],
|
117
|
+
mandatory: false,
|
118
|
+
},
|
119
|
+
}),
|
120
|
+
13: Float32Field.create({
|
121
|
+
parent: this,
|
122
|
+
fieldKey: 13,
|
123
|
+
fieldName: "saturation",
|
124
|
+
pointerRules: {
|
125
|
+
accepts: [
|
126
|
+
Pointers.Modulation,
|
127
|
+
Pointers.Automation,
|
128
|
+
Pointers.MidiControl,
|
129
|
+
],
|
130
|
+
mandatory: false,
|
131
|
+
},
|
132
|
+
}),
|
133
|
+
};
|
134
|
+
}
|
135
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, Field, Int32Field, Float32Field, UnreferenceableType } from "@opendaw/lib-box";
|
3
|
+
import { Signature } from "./Signature";
|
4
|
+
import { LoopArea } from "./LoopArea";
|
5
|
+
import { MarkerTrack } from "./MarkerTrack";
|
6
|
+
import { BoxVisitor } from ".";
|
7
|
+
import { Pointers } from "@opendaw/studio-enums";
|
8
|
+
export type TimelineBoxFields = {
|
9
|
+
1: Field<Pointers.Timeline>;
|
10
|
+
10: Signature;
|
11
|
+
11: LoopArea;
|
12
|
+
20: Field<Pointers.MarkerTrack>;
|
13
|
+
21: MarkerTrack;
|
14
|
+
30: Int32Field;
|
15
|
+
31: Float32Field;
|
16
|
+
};
|
17
|
+
export declare class TimelineBox extends Box<UnreferenceableType, TimelineBoxFields> {
|
18
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<TimelineBox>): TimelineBox;
|
19
|
+
private constructor();
|
20
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
21
|
+
get root(): Field<Pointers.Timeline>;
|
22
|
+
get signature(): Signature;
|
23
|
+
get loopArea(): LoopArea;
|
24
|
+
get deprecatedMarkerTrack(): Field<Pointers.MarkerTrack>;
|
25
|
+
get markerTrack(): MarkerTrack;
|
26
|
+
get durationInPulses(): Int32Field;
|
27
|
+
get bpm(): Float32Field;
|
28
|
+
initializeFields(): TimelineBoxFields;
|
29
|
+
}
|
30
|
+
//# sourceMappingURL=TimelineBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TimelineBox.d.ts","sourceRoot":"","sources":["../src/TimelineBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EACL,GAAG,EAEH,QAAQ,EAER,KAAK,EACL,UAAU,EACV,YAAY,EACZ,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,CAAC,EAAa,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACvC,EAAE,EAAkB,SAAS,CAAC;IAC9B,EAAE,EAAiB,QAAQ,CAAC;IAC5B,EAAE,EAA8B,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC5D,EAAE,EAAoB,WAAW,CAAC;IAClC,EAAE,EAAiC,UAAU,CAAC;IAC9C,EAAE,EAAiB,YAAY,CAAC;CACjC,CAAC;AAEF,qBAAa,WAAY,SAAQ,GAAG,CAAC,mBAAmB,EAAE,iBAAiB,CAAC;IAC1E,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,GACnC,WAAW;IAYd,OAAO;IAIP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,IAAI,IAAI,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAEnC;IAED,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,IAAI,qBAAqB,IAAI,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,CAEvD;IAED,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,IAAI,gBAAgB,IAAI,UAAU,CAEjC;IAED,IAAI,GAAG,IAAI,YAAY,CAEtB;IAED,gBAAgB,IAAI,iBAAiB;CAoDtC"}
|
@@ -0,0 +1,89 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, Field, Int32Field, Float32Field, } from "@opendaw/lib-box";
|
3
|
+
import { Signature } from "./Signature";
|
4
|
+
import { LoopArea } from "./LoopArea";
|
5
|
+
import { MarkerTrack } from "./MarkerTrack";
|
6
|
+
import { Pointers } from "@opendaw/studio-enums";
|
7
|
+
export class TimelineBox extends Box {
|
8
|
+
static create(graph, uuid, constructor) {
|
9
|
+
return graph.stageBox(new TimelineBox({
|
10
|
+
uuid,
|
11
|
+
graph,
|
12
|
+
name: "TimelineBox",
|
13
|
+
pointerRules: NoPointers,
|
14
|
+
}), constructor);
|
15
|
+
}
|
16
|
+
constructor(construct) {
|
17
|
+
super(construct);
|
18
|
+
}
|
19
|
+
accept(visitor) {
|
20
|
+
return safeExecute(visitor.visitTimelineBox, this);
|
21
|
+
}
|
22
|
+
get root() {
|
23
|
+
return this.getField(1);
|
24
|
+
}
|
25
|
+
get signature() {
|
26
|
+
return this.getField(10);
|
27
|
+
}
|
28
|
+
get loopArea() {
|
29
|
+
return this.getField(11);
|
30
|
+
}
|
31
|
+
get deprecatedMarkerTrack() {
|
32
|
+
return this.getField(20);
|
33
|
+
}
|
34
|
+
get markerTrack() {
|
35
|
+
return this.getField(21);
|
36
|
+
}
|
37
|
+
get durationInPulses() {
|
38
|
+
return this.getField(30);
|
39
|
+
}
|
40
|
+
get bpm() {
|
41
|
+
return this.getField(31);
|
42
|
+
}
|
43
|
+
initializeFields() {
|
44
|
+
return {
|
45
|
+
1: Field.hook({
|
46
|
+
parent: this,
|
47
|
+
fieldKey: 1,
|
48
|
+
fieldName: "root",
|
49
|
+
pointerRules: { accepts: [Pointers.Timeline], mandatory: true },
|
50
|
+
}),
|
51
|
+
10: Signature.create({
|
52
|
+
parent: this,
|
53
|
+
fieldKey: 10,
|
54
|
+
fieldName: "signature",
|
55
|
+
pointerRules: NoPointers,
|
56
|
+
}),
|
57
|
+
11: LoopArea.create({
|
58
|
+
parent: this,
|
59
|
+
fieldKey: 11,
|
60
|
+
fieldName: "loopArea",
|
61
|
+
pointerRules: NoPointers,
|
62
|
+
}),
|
63
|
+
20: Field.hook({
|
64
|
+
parent: this,
|
65
|
+
fieldKey: 20,
|
66
|
+
fieldName: "deprecatedMarkerTrack",
|
67
|
+
pointerRules: { accepts: [Pointers.MarkerTrack], mandatory: false },
|
68
|
+
}),
|
69
|
+
21: MarkerTrack.create({
|
70
|
+
parent: this,
|
71
|
+
fieldKey: 21,
|
72
|
+
fieldName: "markerTrack",
|
73
|
+
pointerRules: NoPointers,
|
74
|
+
}),
|
75
|
+
30: Int32Field.create({
|
76
|
+
parent: this,
|
77
|
+
fieldKey: 30,
|
78
|
+
fieldName: "durationInPulses",
|
79
|
+
pointerRules: NoPointers,
|
80
|
+
}, 491520),
|
81
|
+
31: Float32Field.create({
|
82
|
+
parent: this,
|
83
|
+
fieldKey: 31,
|
84
|
+
fieldName: "bpm",
|
85
|
+
pointerRules: NoPointers,
|
86
|
+
}, 120),
|
87
|
+
};
|
88
|
+
}
|
89
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, Field, Int32Field, BooleanField } from "@opendaw/lib-box";
|
3
|
+
import { BoxVisitor } from ".";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export type TrackBoxFields = {
|
6
|
+
1: PointerField<Pointers.TrackCollection>;
|
7
|
+
2: PointerField<Pointers.Automation>;
|
8
|
+
3: Field<Pointers.RegionCollection>;
|
9
|
+
4: Field<Pointers.ClipCollection>;
|
10
|
+
10: Int32Field;
|
11
|
+
11: Int32Field;
|
12
|
+
20: BooleanField;
|
13
|
+
30: BooleanField;
|
14
|
+
};
|
15
|
+
export declare class TrackBox extends Box<Pointers.Selection | Pointers.PianoMode, TrackBoxFields> {
|
16
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<TrackBox>): TrackBox;
|
17
|
+
private constructor();
|
18
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
19
|
+
get tracks(): PointerField<Pointers.TrackCollection>;
|
20
|
+
get target(): PointerField<Pointers.Automation>;
|
21
|
+
get regions(): Field<Pointers.RegionCollection>;
|
22
|
+
get clips(): Field<Pointers.ClipCollection>;
|
23
|
+
get index(): Int32Field;
|
24
|
+
get type(): Int32Field;
|
25
|
+
get enabled(): BooleanField;
|
26
|
+
get excludePianoMode(): BooleanField;
|
27
|
+
initializeFields(): TrackBoxFields;
|
28
|
+
}
|
29
|
+
//# sourceMappingURL=TrackBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TrackBox.d.ts","sourceRoot":"","sources":["../src/TrackBox.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,UAAU,EACV,YAAY,EACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,cAAc,GAAG;IAC3B,CAAC,EAAe,YAAY,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;IACvD,CAAC,EAAe,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAClD,CAAC,EAAgB,KAAK,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAClD,CAAC,EAAc,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IAC9C,EAAE,EAAc,UAAU,CAAC;IAC3B,EAAE,EAAa,UAAU,CAAC;IAC1B,EAAE,EAAsB,YAAY,CAAC;IACrC,EAAE,EAAgC,YAAY,CAAC;CAChD,CAAC;AAEF,qBAAa,QAAS,SAAQ,GAAG,CAC/B,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,SAAS,EACvC,cAAc,CACf;IACC,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,GAChC,QAAQ;IAeX,OAAO;IAMP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,MAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,eAAe,CAAC,CAEnD;IAED,IAAI,MAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,CAE9C;IAED,IAAI,OAAO,IAAI,KAAK,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAE9C;IAED,IAAI,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,CAE1C;IAED,IAAI,KAAK,IAAI,UAAU,CAEtB;IAED,IAAI,IAAI,IAAI,UAAU,CAErB;IAED,IAAI,OAAO,IAAI,YAAY,CAE1B;IAED,IAAI,gBAAgB,IAAI,YAAY,CAEnC;IAED,gBAAgB,IAAI,cAAc;CAqEnC"}
|
package/dist/TrackBox.js
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, PointerField, Field, Int32Field, BooleanField, } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class TrackBox extends Box {
|
5
|
+
static create(graph, uuid, constructor) {
|
6
|
+
return graph.stageBox(new TrackBox({
|
7
|
+
uuid,
|
8
|
+
graph,
|
9
|
+
name: "TrackBox",
|
10
|
+
pointerRules: {
|
11
|
+
accepts: [Pointers.Selection, Pointers.PianoMode],
|
12
|
+
mandatory: false,
|
13
|
+
},
|
14
|
+
}), constructor);
|
15
|
+
}
|
16
|
+
constructor(construct) {
|
17
|
+
super(construct);
|
18
|
+
}
|
19
|
+
accept(visitor) {
|
20
|
+
return safeExecute(visitor.visitTrackBox, this);
|
21
|
+
}
|
22
|
+
get tracks() {
|
23
|
+
return this.getField(1);
|
24
|
+
}
|
25
|
+
get target() {
|
26
|
+
return this.getField(2);
|
27
|
+
}
|
28
|
+
get regions() {
|
29
|
+
return this.getField(3);
|
30
|
+
}
|
31
|
+
get clips() {
|
32
|
+
return this.getField(4);
|
33
|
+
}
|
34
|
+
get index() {
|
35
|
+
return this.getField(10);
|
36
|
+
}
|
37
|
+
get type() {
|
38
|
+
return this.getField(11);
|
39
|
+
}
|
40
|
+
get enabled() {
|
41
|
+
return this.getField(20);
|
42
|
+
}
|
43
|
+
get excludePianoMode() {
|
44
|
+
return this.getField(30);
|
45
|
+
}
|
46
|
+
initializeFields() {
|
47
|
+
return {
|
48
|
+
1: PointerField.create({
|
49
|
+
parent: this,
|
50
|
+
fieldKey: 1,
|
51
|
+
fieldName: "tracks",
|
52
|
+
pointerRules: NoPointers,
|
53
|
+
}, Pointers.TrackCollection, true),
|
54
|
+
2: PointerField.create({
|
55
|
+
parent: this,
|
56
|
+
fieldKey: 2,
|
57
|
+
fieldName: "target",
|
58
|
+
pointerRules: NoPointers,
|
59
|
+
}, Pointers.Automation, true),
|
60
|
+
3: Field.hook({
|
61
|
+
parent: this,
|
62
|
+
fieldKey: 3,
|
63
|
+
fieldName: "regions",
|
64
|
+
pointerRules: {
|
65
|
+
accepts: [Pointers.RegionCollection],
|
66
|
+
mandatory: false,
|
67
|
+
},
|
68
|
+
}),
|
69
|
+
4: Field.hook({
|
70
|
+
parent: this,
|
71
|
+
fieldKey: 4,
|
72
|
+
fieldName: "clips",
|
73
|
+
pointerRules: { accepts: [Pointers.ClipCollection], mandatory: false },
|
74
|
+
}),
|
75
|
+
10: Int32Field.create({
|
76
|
+
parent: this,
|
77
|
+
fieldKey: 10,
|
78
|
+
fieldName: "index",
|
79
|
+
pointerRules: NoPointers,
|
80
|
+
}),
|
81
|
+
11: Int32Field.create({
|
82
|
+
parent: this,
|
83
|
+
fieldKey: 11,
|
84
|
+
fieldName: "type",
|
85
|
+
pointerRules: NoPointers,
|
86
|
+
}),
|
87
|
+
20: BooleanField.create({
|
88
|
+
parent: this,
|
89
|
+
fieldKey: 20,
|
90
|
+
fieldName: "enabled",
|
91
|
+
pointerRules: NoPointers,
|
92
|
+
}, true),
|
93
|
+
30: BooleanField.create({
|
94
|
+
parent: this,
|
95
|
+
fieldKey: 30,
|
96
|
+
fieldName: "excludePianoMode",
|
97
|
+
pointerRules: NoPointers,
|
98
|
+
}, false),
|
99
|
+
};
|
100
|
+
}
|
101
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, Field, UnreferenceableType } from "@opendaw/lib-box";
|
3
|
+
import { BoxVisitor } from ".";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export type UserInterfaceBoxFields = {
|
6
|
+
1: PointerField<Pointers.User>;
|
7
|
+
10: Field<Pointers.Selection>;
|
8
|
+
21: PointerField<Pointers.Editing>;
|
9
|
+
22: PointerField<Pointers.Editing>;
|
10
|
+
23: PointerField<Pointers.Editing>;
|
11
|
+
};
|
12
|
+
export declare class UserInterfaceBox extends Box<UnreferenceableType, UserInterfaceBoxFields> {
|
13
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<UserInterfaceBox>): UserInterfaceBox;
|
14
|
+
private constructor();
|
15
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
16
|
+
get root(): PointerField<Pointers.User>;
|
17
|
+
get selection(): Field<Pointers.Selection>;
|
18
|
+
get editingDeviceChain(): PointerField<Pointers.Editing>;
|
19
|
+
get editingTimelineRegion(): PointerField<Pointers.Editing>;
|
20
|
+
get editingModularSystem(): PointerField<Pointers.Editing>;
|
21
|
+
initializeFields(): UserInterfaceBoxFields;
|
22
|
+
}
|
23
|
+
//# sourceMappingURL=UserInterfaceBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"UserInterfaceBox.d.ts","sourceRoot":"","sources":["../src/UserInterfaceBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EACL,GAAG,EAEH,QAAQ,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D3C"}
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, PointerField, Field, } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class UserInterfaceBox extends Box {
|
5
|
+
static create(graph, uuid, constructor) {
|
6
|
+
return graph.stageBox(new UserInterfaceBox({
|
7
|
+
uuid,
|
8
|
+
graph,
|
9
|
+
name: "UserInterfaceBox",
|
10
|
+
pointerRules: NoPointers,
|
11
|
+
}), constructor);
|
12
|
+
}
|
13
|
+
constructor(construct) {
|
14
|
+
super(construct);
|
15
|
+
}
|
16
|
+
accept(visitor) {
|
17
|
+
return safeExecute(visitor.visitUserInterfaceBox, this);
|
18
|
+
}
|
19
|
+
get root() {
|
20
|
+
return this.getField(1);
|
21
|
+
}
|
22
|
+
get selection() {
|
23
|
+
return this.getField(10);
|
24
|
+
}
|
25
|
+
get editingDeviceChain() {
|
26
|
+
return this.getField(21);
|
27
|
+
}
|
28
|
+
get editingTimelineRegion() {
|
29
|
+
return this.getField(22);
|
30
|
+
}
|
31
|
+
get editingModularSystem() {
|
32
|
+
return this.getField(23);
|
33
|
+
}
|
34
|
+
initializeFields() {
|
35
|
+
return {
|
36
|
+
1: PointerField.create({
|
37
|
+
parent: this,
|
38
|
+
fieldKey: 1,
|
39
|
+
fieldName: "root",
|
40
|
+
pointerRules: NoPointers,
|
41
|
+
}, Pointers.User, true),
|
42
|
+
10: Field.hook({
|
43
|
+
parent: this,
|
44
|
+
fieldKey: 10,
|
45
|
+
fieldName: "selection",
|
46
|
+
pointerRules: { accepts: [Pointers.Selection], mandatory: false },
|
47
|
+
}),
|
48
|
+
21: PointerField.create({
|
49
|
+
parent: this,
|
50
|
+
fieldKey: 21,
|
51
|
+
fieldName: "editingDeviceChain",
|
52
|
+
pointerRules: NoPointers,
|
53
|
+
}, Pointers.Editing, false),
|
54
|
+
22: PointerField.create({
|
55
|
+
parent: this,
|
56
|
+
fieldKey: 22,
|
57
|
+
fieldName: "editingTimelineRegion",
|
58
|
+
pointerRules: NoPointers,
|
59
|
+
}, Pointers.Editing, false),
|
60
|
+
23: PointerField.create({
|
61
|
+
parent: this,
|
62
|
+
fieldKey: 23,
|
63
|
+
fieldName: "editingModularSystem",
|
64
|
+
pointerRules: NoPointers,
|
65
|
+
}, Pointers.Editing, false),
|
66
|
+
};
|
67
|
+
}
|
68
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, Int32Field, BooleanField, StringField } from "@opendaw/lib-box";
|
3
|
+
import { ClipPlaybackFields } from "./ClipPlaybackFields";
|
4
|
+
import { BoxVisitor } from ".";
|
5
|
+
import { Pointers } from "@opendaw/studio-enums";
|
6
|
+
export type ValueClipBoxFields = {
|
7
|
+
1: PointerField<Pointers.ClipCollection>;
|
8
|
+
2: PointerField<Pointers.ValueEventCollection>;
|
9
|
+
3: Int32Field;
|
10
|
+
4: ClipPlaybackFields;
|
11
|
+
10: Int32Field;
|
12
|
+
11: BooleanField;
|
13
|
+
12: StringField;
|
14
|
+
13: Int32Field;
|
15
|
+
};
|
16
|
+
export declare class ValueClipBox extends Box<Pointers.Selection | Pointers.Editing, ValueClipBoxFields> {
|
17
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<ValueClipBox>): ValueClipBox;
|
18
|
+
private constructor();
|
19
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
20
|
+
get clips(): PointerField<Pointers.ClipCollection>;
|
21
|
+
get events(): PointerField<Pointers.ValueEventCollection>;
|
22
|
+
get index(): Int32Field;
|
23
|
+
get playback(): ClipPlaybackFields;
|
24
|
+
get duration(): Int32Field;
|
25
|
+
get mute(): BooleanField;
|
26
|
+
get label(): StringField;
|
27
|
+
get hue(): Int32Field;
|
28
|
+
initializeFields(): ValueClipBoxFields;
|
29
|
+
}
|
30
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AC,QAAQ,CAAC,cAAc,CAAC,CAEjD;IAED,IAAI,MAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAExD;IAED,IAAI,KAAK,IAAI,UAAU,CAEtB;IAED,IAAI,QAAQ,IAAI,kBAAkB,CAEjC;IAED,IAAI,QAAQ,IAAI,UAAU,CAEzB;IAED,IAAI,IAAI,IAAI,YAAY,CAEvB;IAED,IAAI,KAAK,IAAI,WAAW,CAEvB;IAED,IAAI,GAAG,IAAI,UAAU,CAEpB;IAED,gBAAgB,IAAI,kBAAkB;CA4DvC"}
|
@@ -0,0 +1,99 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, PointerField, Int32Field, BooleanField, StringField, } from "@opendaw/lib-box";
|
3
|
+
import { ClipPlaybackFields } from "./ClipPlaybackFields";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export class ValueClipBox extends Box {
|
6
|
+
static create(graph, uuid, constructor) {
|
7
|
+
return graph.stageBox(new ValueClipBox({
|
8
|
+
uuid,
|
9
|
+
graph,
|
10
|
+
name: "ValueClipBox",
|
11
|
+
pointerRules: {
|
12
|
+
accepts: [Pointers.Selection, Pointers.Editing],
|
13
|
+
mandatory: false,
|
14
|
+
},
|
15
|
+
}), constructor);
|
16
|
+
}
|
17
|
+
constructor(construct) {
|
18
|
+
super(construct);
|
19
|
+
}
|
20
|
+
accept(visitor) {
|
21
|
+
return safeExecute(visitor.visitValueClipBox, this);
|
22
|
+
}
|
23
|
+
get clips() {
|
24
|
+
return this.getField(1);
|
25
|
+
}
|
26
|
+
get events() {
|
27
|
+
return this.getField(2);
|
28
|
+
}
|
29
|
+
get index() {
|
30
|
+
return this.getField(3);
|
31
|
+
}
|
32
|
+
get playback() {
|
33
|
+
return this.getField(4);
|
34
|
+
}
|
35
|
+
get duration() {
|
36
|
+
return this.getField(10);
|
37
|
+
}
|
38
|
+
get mute() {
|
39
|
+
return this.getField(11);
|
40
|
+
}
|
41
|
+
get label() {
|
42
|
+
return this.getField(12);
|
43
|
+
}
|
44
|
+
get hue() {
|
45
|
+
return this.getField(13);
|
46
|
+
}
|
47
|
+
initializeFields() {
|
48
|
+
return {
|
49
|
+
1: PointerField.create({
|
50
|
+
parent: this,
|
51
|
+
fieldKey: 1,
|
52
|
+
fieldName: "clips",
|
53
|
+
pointerRules: NoPointers,
|
54
|
+
}, Pointers.ClipCollection, true),
|
55
|
+
2: PointerField.create({
|
56
|
+
parent: this,
|
57
|
+
fieldKey: 2,
|
58
|
+
fieldName: "events",
|
59
|
+
pointerRules: NoPointers,
|
60
|
+
}, Pointers.ValueEventCollection, true),
|
61
|
+
3: Int32Field.create({
|
62
|
+
parent: this,
|
63
|
+
fieldKey: 3,
|
64
|
+
fieldName: "index",
|
65
|
+
pointerRules: NoPointers,
|
66
|
+
}),
|
67
|
+
4: ClipPlaybackFields.create({
|
68
|
+
parent: this,
|
69
|
+
fieldKey: 4,
|
70
|
+
fieldName: "playback",
|
71
|
+
pointerRules: NoPointers,
|
72
|
+
}),
|
73
|
+
10: Int32Field.create({
|
74
|
+
parent: this,
|
75
|
+
fieldKey: 10,
|
76
|
+
fieldName: "duration",
|
77
|
+
pointerRules: NoPointers,
|
78
|
+
}),
|
79
|
+
11: BooleanField.create({
|
80
|
+
parent: this,
|
81
|
+
fieldKey: 11,
|
82
|
+
fieldName: "mute",
|
83
|
+
pointerRules: NoPointers,
|
84
|
+
}),
|
85
|
+
12: StringField.create({
|
86
|
+
parent: this,
|
87
|
+
fieldKey: 12,
|
88
|
+
fieldName: "label",
|
89
|
+
pointerRules: NoPointers,
|
90
|
+
}),
|
91
|
+
13: Int32Field.create({
|
92
|
+
parent: this,
|
93
|
+
fieldKey: 13,
|
94
|
+
fieldName: "hue",
|
95
|
+
pointerRules: NoPointers,
|
96
|
+
}),
|
97
|
+
};
|
98
|
+
}
|
99
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, Int32Field, Float32Field } from "@opendaw/lib-box";
|
3
|
+
import { BoxVisitor } from ".";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export type ValueEventBoxFields = {
|
6
|
+
1: PointerField<Pointers.ValueEvents>;
|
7
|
+
10: Int32Field;
|
8
|
+
11: Int32Field;
|
9
|
+
12: Int32Field<Pointers.ValueInterpolation>;
|
10
|
+
13: Float32Field;
|
11
|
+
14: Float32Field;
|
12
|
+
};
|
13
|
+
export declare class ValueEventBox extends Box<Pointers.Selection, ValueEventBoxFields> {
|
14
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<ValueEventBox>): ValueEventBox;
|
15
|
+
private constructor();
|
16
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
17
|
+
get events(): PointerField<Pointers.ValueEvents>;
|
18
|
+
get position(): Int32Field;
|
19
|
+
get index(): Int32Field;
|
20
|
+
get interpolation(): Int32Field<Pointers.ValueInterpolation>;
|
21
|
+
get value(): Float32Field;
|
22
|
+
get slope(): Float32Field;
|
23
|
+
initializeFields(): ValueEventBoxFields;
|
24
|
+
}
|
25
|
+
//# sourceMappingURL=ValueEventBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ValueEventBox.d.ts","sourceRoot":"","sources":["../src/ValueEventBox.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,YAAY,EACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,EAAe,YAAY,CAA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