@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
package/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
This package is part of the openDAW SDK
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, Int32Field, StringField, BooleanField, Float32Field } from "@opendaw/lib-box";
|
3
|
+
import { BoxVisitor } from ".";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export type ArpeggioDeviceBoxFields = {
|
6
|
+
1: PointerField<Pointers.MidiEffectHost>;
|
7
|
+
2: Int32Field;
|
8
|
+
3: StringField;
|
9
|
+
4: BooleanField;
|
10
|
+
5: BooleanField;
|
11
|
+
10: Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
12
|
+
11: Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
13
|
+
12: Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
14
|
+
13: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
15
|
+
14: Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
16
|
+
15: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
17
|
+
};
|
18
|
+
export declare class ArpeggioDeviceBox extends Box<Pointers.Device | Pointers.Selection, ArpeggioDeviceBoxFields> {
|
19
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<ArpeggioDeviceBox>): ArpeggioDeviceBox;
|
20
|
+
private constructor();
|
21
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
22
|
+
get host(): PointerField<Pointers.MidiEffectHost>;
|
23
|
+
get index(): Int32Field;
|
24
|
+
get label(): StringField;
|
25
|
+
get enabled(): BooleanField;
|
26
|
+
get minimized(): BooleanField;
|
27
|
+
get modeIndex(): Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
28
|
+
get numOctaves(): Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
29
|
+
get rateIndex(): Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
30
|
+
get gate(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
31
|
+
get repeat(): Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
32
|
+
get velocity(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
33
|
+
initializeFields(): ArpeggioDeviceBoxFields;
|
34
|
+
}
|
35
|
+
//# sourceMappingURL=ArpeggioDeviceBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ArpeggioDeviceBox.d.ts","sourceRoot":"","sources":["../src/ArpeggioDeviceBox.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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w/lib-std";
|
2
|
+
import { Box, NoPointers, PointerField, Int32Field, StringField, BooleanField, Float32Field, } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class ArpeggioDeviceBox extends Box {
|
5
|
+
static create(graph, uuid, constructor) {
|
6
|
+
return graph.stageBox(new ArpeggioDeviceBox({
|
7
|
+
uuid,
|
8
|
+
graph,
|
9
|
+
name: "ArpeggioDeviceBox",
|
10
|
+
pointerRules: {
|
11
|
+
accepts: [Pointers.Device, Pointers.Selection],
|
12
|
+
mandatory: false,
|
13
|
+
},
|
14
|
+
}), constructor);
|
15
|
+
}
|
16
|
+
constructor(construct) {
|
17
|
+
super(construct);
|
18
|
+
}
|
19
|
+
accept(visitor) {
|
20
|
+
return safeExecute(visitor.visitArpeggioDeviceBox, this);
|
21
|
+
}
|
22
|
+
get host() {
|
23
|
+
return this.getField(1);
|
24
|
+
}
|
25
|
+
get index() {
|
26
|
+
return this.getField(2);
|
27
|
+
}
|
28
|
+
get label() {
|
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 modeIndex() {
|
38
|
+
return this.getField(10);
|
39
|
+
}
|
40
|
+
get numOctaves() {
|
41
|
+
return this.getField(11);
|
42
|
+
}
|
43
|
+
get rateIndex() {
|
44
|
+
return this.getField(12);
|
45
|
+
}
|
46
|
+
get gate() {
|
47
|
+
return this.getField(13);
|
48
|
+
}
|
49
|
+
get repeat() {
|
50
|
+
return this.getField(14);
|
51
|
+
}
|
52
|
+
get velocity() {
|
53
|
+
return this.getField(15);
|
54
|
+
}
|
55
|
+
initializeFields() {
|
56
|
+
return {
|
57
|
+
1: PointerField.create({
|
58
|
+
parent: this,
|
59
|
+
fieldKey: 1,
|
60
|
+
fieldName: "host",
|
61
|
+
pointerRules: NoPointers,
|
62
|
+
}, Pointers.MidiEffectHost, true),
|
63
|
+
2: Int32Field.create({
|
64
|
+
parent: this,
|
65
|
+
fieldKey: 2,
|
66
|
+
fieldName: "index",
|
67
|
+
pointerRules: NoPointers,
|
68
|
+
}),
|
69
|
+
3: StringField.create({
|
70
|
+
parent: this,
|
71
|
+
fieldKey: 3,
|
72
|
+
fieldName: "label",
|
73
|
+
pointerRules: NoPointers,
|
74
|
+
}),
|
75
|
+
4: BooleanField.create({
|
76
|
+
parent: this,
|
77
|
+
fieldKey: 4,
|
78
|
+
fieldName: "enabled",
|
79
|
+
pointerRules: NoPointers,
|
80
|
+
}, true),
|
81
|
+
5: BooleanField.create({
|
82
|
+
parent: this,
|
83
|
+
fieldKey: 5,
|
84
|
+
fieldName: "minimized",
|
85
|
+
pointerRules: NoPointers,
|
86
|
+
}, false),
|
87
|
+
10: Int32Field.create({
|
88
|
+
parent: this,
|
89
|
+
fieldKey: 10,
|
90
|
+
fieldName: "modeIndex",
|
91
|
+
pointerRules: {
|
92
|
+
accepts: [
|
93
|
+
Pointers.Modulation,
|
94
|
+
Pointers.Automation,
|
95
|
+
Pointers.MidiControl,
|
96
|
+
],
|
97
|
+
mandatory: false,
|
98
|
+
},
|
99
|
+
}),
|
100
|
+
11: Int32Field.create({
|
101
|
+
parent: this,
|
102
|
+
fieldKey: 11,
|
103
|
+
fieldName: "numOctaves",
|
104
|
+
pointerRules: {
|
105
|
+
accepts: [
|
106
|
+
Pointers.Modulation,
|
107
|
+
Pointers.Automation,
|
108
|
+
Pointers.MidiControl,
|
109
|
+
],
|
110
|
+
mandatory: false,
|
111
|
+
},
|
112
|
+
}, 1),
|
113
|
+
12: Int32Field.create({
|
114
|
+
parent: this,
|
115
|
+
fieldKey: 12,
|
116
|
+
fieldName: "rateIndex",
|
117
|
+
pointerRules: {
|
118
|
+
accepts: [
|
119
|
+
Pointers.Modulation,
|
120
|
+
Pointers.Automation,
|
121
|
+
Pointers.MidiControl,
|
122
|
+
],
|
123
|
+
mandatory: false,
|
124
|
+
},
|
125
|
+
}, 9),
|
126
|
+
13: Float32Field.create({
|
127
|
+
parent: this,
|
128
|
+
fieldKey: 13,
|
129
|
+
fieldName: "gate",
|
130
|
+
pointerRules: {
|
131
|
+
accepts: [
|
132
|
+
Pointers.Modulation,
|
133
|
+
Pointers.Automation,
|
134
|
+
Pointers.MidiControl,
|
135
|
+
],
|
136
|
+
mandatory: false,
|
137
|
+
},
|
138
|
+
}, 1),
|
139
|
+
14: Int32Field.create({
|
140
|
+
parent: this,
|
141
|
+
fieldKey: 14,
|
142
|
+
fieldName: "repeat",
|
143
|
+
pointerRules: {
|
144
|
+
accepts: [
|
145
|
+
Pointers.Modulation,
|
146
|
+
Pointers.Automation,
|
147
|
+
Pointers.MidiControl,
|
148
|
+
],
|
149
|
+
mandatory: false,
|
150
|
+
},
|
151
|
+
}, 1),
|
152
|
+
15: Float32Field.create({
|
153
|
+
parent: this,
|
154
|
+
fieldKey: 15,
|
155
|
+
fieldName: "velocity",
|
156
|
+
pointerRules: {
|
157
|
+
accepts: [
|
158
|
+
Pointers.Modulation,
|
159
|
+
Pointers.Automation,
|
160
|
+
Pointers.MidiControl,
|
161
|
+
],
|
162
|
+
mandatory: false,
|
163
|
+
},
|
164
|
+
}),
|
165
|
+
};
|
166
|
+
}
|
167
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, Field, BooleanField, StringField, UnreferenceableType } from "@opendaw/lib-box";
|
3
|
+
import { BoxVisitor } from ".";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export type AudioBusBoxFields = {
|
6
|
+
1: PointerField<Pointers.AudioBusses>;
|
7
|
+
2: PointerField<Pointers.AudioOutput>;
|
8
|
+
3: Field<Pointers.AudioOutput>;
|
9
|
+
4: BooleanField;
|
10
|
+
5: StringField;
|
11
|
+
6: StringField;
|
12
|
+
7: StringField;
|
13
|
+
8: BooleanField;
|
14
|
+
};
|
15
|
+
export declare class AudioBusBox extends Box<UnreferenceableType, AudioBusBoxFields> {
|
16
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<AudioBusBox>): AudioBusBox;
|
17
|
+
private constructor();
|
18
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
19
|
+
get collection(): PointerField<Pointers.AudioBusses>;
|
20
|
+
get output(): PointerField<Pointers.AudioOutput>;
|
21
|
+
get input(): Field<Pointers.AudioOutput>;
|
22
|
+
get enabled(): BooleanField;
|
23
|
+
get icon(): StringField;
|
24
|
+
get label(): StringField;
|
25
|
+
get color(): StringField;
|
26
|
+
get minimized(): BooleanField;
|
27
|
+
initializeFields(): AudioBusBoxFields;
|
28
|
+
}
|
29
|
+
//# sourceMappingURL=AudioBusBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AudioBusBox.d.ts","sourceRoot":"","sources":["../src/AudioBusBox.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,YAAY,EACZ,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,iBAAiB,GAAG;IAC9B,CAAC,EAAmB,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IACvD,CAAC,EAAe,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IACnD,CAAC,EAAc,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC3C,CAAC,EAAsB,YAAY,CAAC;IACpC,CAAC,EAAa,WAAW,CAAC;IAC1B,CAAC,EAAc,WAAW,CAAC;IAC3B,CAAC,EAAmB,WAAW,CAAC;IAChC,CAAC,EAAkB,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,UAAU,IAAI,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAEnD;IAED,IAAI,MAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAE/C;IAED,IAAI,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,CAEvC;IAED,IAAI,OAAO,IAAI,YAAY,CAE1B;IAED,IAAI,IAAI,IAAI,WAAW,CAEtB;IAED,IAAI,KAAK,IAAI,WAAW,CAEvB;IAED,IAAI,KAAK,IAAI,WAAW,CAEvB;IAED,IAAI,SAAS,IAAI,YAAY,CAE5B;IAED,gBAAgB,IAAI,iBAAiB;CAkEtC"}
|
@@ -0,0 +1,95 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, PointerField, Field, BooleanField, StringField, } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class AudioBusBox extends Box {
|
5
|
+
static create(graph, uuid, constructor) {
|
6
|
+
return graph.stageBox(new AudioBusBox({
|
7
|
+
uuid,
|
8
|
+
graph,
|
9
|
+
name: "AudioBusBox",
|
10
|
+
pointerRules: NoPointers,
|
11
|
+
}), constructor);
|
12
|
+
}
|
13
|
+
constructor(construct) {
|
14
|
+
super(construct);
|
15
|
+
}
|
16
|
+
accept(visitor) {
|
17
|
+
return safeExecute(visitor.visitAudioBusBox, this);
|
18
|
+
}
|
19
|
+
get collection() {
|
20
|
+
return this.getField(1);
|
21
|
+
}
|
22
|
+
get output() {
|
23
|
+
return this.getField(2);
|
24
|
+
}
|
25
|
+
get input() {
|
26
|
+
return this.getField(3);
|
27
|
+
}
|
28
|
+
get enabled() {
|
29
|
+
return this.getField(4);
|
30
|
+
}
|
31
|
+
get icon() {
|
32
|
+
return this.getField(5);
|
33
|
+
}
|
34
|
+
get label() {
|
35
|
+
return this.getField(6);
|
36
|
+
}
|
37
|
+
get color() {
|
38
|
+
return this.getField(7);
|
39
|
+
}
|
40
|
+
get minimized() {
|
41
|
+
return this.getField(8);
|
42
|
+
}
|
43
|
+
initializeFields() {
|
44
|
+
return {
|
45
|
+
1: PointerField.create({
|
46
|
+
parent: this,
|
47
|
+
fieldKey: 1,
|
48
|
+
fieldName: "collection",
|
49
|
+
pointerRules: NoPointers,
|
50
|
+
}, Pointers.AudioBusses, true),
|
51
|
+
2: PointerField.create({
|
52
|
+
parent: this,
|
53
|
+
fieldKey: 2,
|
54
|
+
fieldName: "output",
|
55
|
+
pointerRules: NoPointers,
|
56
|
+
}, Pointers.AudioOutput, true),
|
57
|
+
3: Field.hook({
|
58
|
+
parent: this,
|
59
|
+
fieldKey: 3,
|
60
|
+
fieldName: "input",
|
61
|
+
pointerRules: { accepts: [Pointers.AudioOutput], mandatory: false },
|
62
|
+
}),
|
63
|
+
4: BooleanField.create({
|
64
|
+
parent: this,
|
65
|
+
fieldKey: 4,
|
66
|
+
fieldName: "enabled",
|
67
|
+
pointerRules: NoPointers,
|
68
|
+
}, true),
|
69
|
+
5: StringField.create({
|
70
|
+
parent: this,
|
71
|
+
fieldKey: 5,
|
72
|
+
fieldName: "icon",
|
73
|
+
pointerRules: NoPointers,
|
74
|
+
}),
|
75
|
+
6: StringField.create({
|
76
|
+
parent: this,
|
77
|
+
fieldKey: 6,
|
78
|
+
fieldName: "label",
|
79
|
+
pointerRules: NoPointers,
|
80
|
+
}),
|
81
|
+
7: StringField.create({
|
82
|
+
parent: this,
|
83
|
+
fieldKey: 7,
|
84
|
+
fieldName: "color",
|
85
|
+
pointerRules: NoPointers,
|
86
|
+
}, "red"),
|
87
|
+
8: BooleanField.create({
|
88
|
+
parent: this,
|
89
|
+
fieldKey: 8,
|
90
|
+
fieldName: "minimized",
|
91
|
+
pointerRules: NoPointers,
|
92
|
+
}),
|
93
|
+
};
|
94
|
+
}
|
95
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, Int32Field, BooleanField, StringField, Float32Field } from "@opendaw/lib-box";
|
3
|
+
import { ClipPlaybackFields } from "./ClipPlaybackFields";
|
4
|
+
import { BoxVisitor } from ".";
|
5
|
+
import { Pointers } from "@opendaw/studio-enums";
|
6
|
+
export type AudioClipBoxFields = {
|
7
|
+
1: PointerField<Pointers.ClipCollection>;
|
8
|
+
2: PointerField<Pointers.AudioFile>;
|
9
|
+
3: Int32Field;
|
10
|
+
4: ClipPlaybackFields;
|
11
|
+
10: Int32Field;
|
12
|
+
11: BooleanField;
|
13
|
+
12: StringField;
|
14
|
+
13: Int32Field;
|
15
|
+
14: Float32Field;
|
16
|
+
};
|
17
|
+
export declare class AudioClipBox extends Box<Pointers.Selection | Pointers.Editing, AudioClipBoxFields> {
|
18
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<AudioClipBox>): AudioClipBox;
|
19
|
+
private constructor();
|
20
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
21
|
+
get clips(): PointerField<Pointers.ClipCollection>;
|
22
|
+
get file(): PointerField<Pointers.AudioFile>;
|
23
|
+
get index(): Int32Field;
|
24
|
+
get playback(): ClipPlaybackFields;
|
25
|
+
get duration(): Int32Field;
|
26
|
+
get mute(): BooleanField;
|
27
|
+
get label(): StringField;
|
28
|
+
get hue(): Int32Field;
|
29
|
+
get gain(): Float32Field;
|
30
|
+
initializeFields(): AudioClipBoxFields;
|
31
|
+
}
|
32
|
+
//# sourceMappingURL=AudioClipBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AudioClipBox.d.ts","sourceRoot":"","sources":["../src/AudioClipBox.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,EACZ,WAAW,EACX,YAAY,EACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,CAAC,EAAc,YAAY,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IACrD,CAAC,EAAa,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC/C,CAAC,EAAc,UAAU,CAAC;IAC1B,CAAC,EAAiB,kBAAkB,CAAC;IACrC,EAAE,EAAiB,UAAU,CAAC;IAC9B,EAAE,EAAa,YAAY,CAAC;IAC5B,EAAE,EAAc,WAAW,CAAC;IAC5B,EAAE,EAAY,UAAU,CAAC;IACzB,EAAE,EAAa,YAAY,CAAC;CAC7B,CAAC;AAEF,qBAAa,YAAa,SAAQ,GAAG,CACnC,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,OAAO,EACrC,kBAAkB,CACnB;IACC,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,GACpC,YAAY;IAef,OAAO;IAMP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,KAAK,IAAI,YAAY,CAAC,QAAQ,CAAC,cAAc,CAAC,CAEjD;IAED,IAAI,IAAI,IAAI,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,CAE3C;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,IAAI,IAAI,IAAI,YAAY,CAEvB;IAED,gBAAgB,IAAI,kBAAkB;CAkEvC"}
|
@@ -0,0 +1,108 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, PointerField, Int32Field, BooleanField, StringField, Float32Field, } from "@opendaw/lib-box";
|
3
|
+
import { ClipPlaybackFields } from "./ClipPlaybackFields";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export class AudioClipBox extends Box {
|
6
|
+
static create(graph, uuid, constructor) {
|
7
|
+
return graph.stageBox(new AudioClipBox({
|
8
|
+
uuid,
|
9
|
+
graph,
|
10
|
+
name: "AudioClipBox",
|
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.visitAudioClipBox, this);
|
22
|
+
}
|
23
|
+
get clips() {
|
24
|
+
return this.getField(1);
|
25
|
+
}
|
26
|
+
get file() {
|
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
|
+
get gain() {
|
48
|
+
return this.getField(14);
|
49
|
+
}
|
50
|
+
initializeFields() {
|
51
|
+
return {
|
52
|
+
1: PointerField.create({
|
53
|
+
parent: this,
|
54
|
+
fieldKey: 1,
|
55
|
+
fieldName: "clips",
|
56
|
+
pointerRules: NoPointers,
|
57
|
+
}, Pointers.ClipCollection, true),
|
58
|
+
2: PointerField.create({
|
59
|
+
parent: this,
|
60
|
+
fieldKey: 2,
|
61
|
+
fieldName: "file",
|
62
|
+
pointerRules: NoPointers,
|
63
|
+
}, Pointers.AudioFile, true),
|
64
|
+
3: Int32Field.create({
|
65
|
+
parent: this,
|
66
|
+
fieldKey: 3,
|
67
|
+
fieldName: "index",
|
68
|
+
pointerRules: NoPointers,
|
69
|
+
}),
|
70
|
+
4: ClipPlaybackFields.create({
|
71
|
+
parent: this,
|
72
|
+
fieldKey: 4,
|
73
|
+
fieldName: "playback",
|
74
|
+
pointerRules: NoPointers,
|
75
|
+
}),
|
76
|
+
10: Int32Field.create({
|
77
|
+
parent: this,
|
78
|
+
fieldKey: 10,
|
79
|
+
fieldName: "duration",
|
80
|
+
pointerRules: NoPointers,
|
81
|
+
}),
|
82
|
+
11: BooleanField.create({
|
83
|
+
parent: this,
|
84
|
+
fieldKey: 11,
|
85
|
+
fieldName: "mute",
|
86
|
+
pointerRules: NoPointers,
|
87
|
+
}),
|
88
|
+
12: StringField.create({
|
89
|
+
parent: this,
|
90
|
+
fieldKey: 12,
|
91
|
+
fieldName: "label",
|
92
|
+
pointerRules: NoPointers,
|
93
|
+
}),
|
94
|
+
13: Int32Field.create({
|
95
|
+
parent: this,
|
96
|
+
fieldKey: 13,
|
97
|
+
fieldName: "hue",
|
98
|
+
pointerRules: NoPointers,
|
99
|
+
}),
|
100
|
+
14: Float32Field.create({
|
101
|
+
parent: this,
|
102
|
+
fieldKey: 14,
|
103
|
+
fieldName: "gain",
|
104
|
+
pointerRules: NoPointers,
|
105
|
+
}),
|
106
|
+
};
|
107
|
+
}
|
108
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, Int32Field, StringField } from "@opendaw/lib-box";
|
3
|
+
import { BoxVisitor } from ".";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export type AudioFileBoxFields = {
|
6
|
+
1: Int32Field;
|
7
|
+
2: Int32Field;
|
8
|
+
3: StringField;
|
9
|
+
};
|
10
|
+
export declare class AudioFileBox extends Box<Pointers.AudioFile, AudioFileBoxFields> {
|
11
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<AudioFileBox>): AudioFileBox;
|
12
|
+
private constructor();
|
13
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
14
|
+
get startInSeconds(): Int32Field;
|
15
|
+
get endInSeconds(): Int32Field;
|
16
|
+
get fileName(): StringField;
|
17
|
+
initializeFields(): AudioFileBoxFields;
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=AudioFileBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AudioFileBox.d.ts","sourceRoot":"","sources":["../src/AudioFileBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EACL,GAAG,EAEH,QAAQ,EAER,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,kBAAkB,GAAG;IAC/B,CAAC,EAAuB,UAAU,CAAC;IACnC,CAAC,EAAqB,UAAU,CAAC;IACjC,CAAC,EAAiB,WAAW,CAAC;CAC/B,CAAC;AAEF,qBAAa,YAAa,SAAQ,GAAG,CAAC,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;IAC3E,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,GACpC,YAAY;IAYf,OAAO;IAIP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,cAAc,IAAI,UAAU,CAE/B;IAED,IAAI,YAAY,IAAI,UAAU,CAE7B;IAED,IAAI,QAAQ,IAAI,WAAW,CAE1B;IAED,gBAAgB,IAAI,kBAAkB;CAsBvC"}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, Int32Field, StringField, } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class AudioFileBox extends Box {
|
5
|
+
static create(graph, uuid, constructor) {
|
6
|
+
return graph.stageBox(new AudioFileBox({
|
7
|
+
uuid,
|
8
|
+
graph,
|
9
|
+
name: "AudioFileBox",
|
10
|
+
pointerRules: { accepts: [Pointers.AudioFile], mandatory: true },
|
11
|
+
}), constructor);
|
12
|
+
}
|
13
|
+
constructor(construct) {
|
14
|
+
super(construct);
|
15
|
+
}
|
16
|
+
accept(visitor) {
|
17
|
+
return safeExecute(visitor.visitAudioFileBox, this);
|
18
|
+
}
|
19
|
+
get startInSeconds() {
|
20
|
+
return this.getField(1);
|
21
|
+
}
|
22
|
+
get endInSeconds() {
|
23
|
+
return this.getField(2);
|
24
|
+
}
|
25
|
+
get fileName() {
|
26
|
+
return this.getField(3);
|
27
|
+
}
|
28
|
+
initializeFields() {
|
29
|
+
return {
|
30
|
+
1: Int32Field.create({
|
31
|
+
parent: this,
|
32
|
+
fieldKey: 1,
|
33
|
+
fieldName: "startInSeconds",
|
34
|
+
pointerRules: NoPointers,
|
35
|
+
}),
|
36
|
+
2: Int32Field.create({
|
37
|
+
parent: this,
|
38
|
+
fieldKey: 2,
|
39
|
+
fieldName: "endInSeconds",
|
40
|
+
pointerRules: NoPointers,
|
41
|
+
}),
|
42
|
+
3: StringField.create({
|
43
|
+
parent: this,
|
44
|
+
fieldKey: 3,
|
45
|
+
fieldName: "fileName",
|
46
|
+
pointerRules: NoPointers,
|
47
|
+
}),
|
48
|
+
};
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, Int32Field, BooleanField, StringField, Float32Field } from "@opendaw/lib-box";
|
3
|
+
import { BoxVisitor } from ".";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export type AudioRegionBoxFields = {
|
6
|
+
1: PointerField<Pointers.RegionCollection>;
|
7
|
+
2: PointerField<Pointers.AudioFile>;
|
8
|
+
10: Int32Field;
|
9
|
+
11: Int32Field;
|
10
|
+
12: Int32Field;
|
11
|
+
13: Int32Field;
|
12
|
+
14: BooleanField;
|
13
|
+
15: StringField;
|
14
|
+
16: Int32Field;
|
15
|
+
17: Float32Field;
|
16
|
+
};
|
17
|
+
export declare class AudioRegionBox extends Box<Pointers.Selection | Pointers.Editing, AudioRegionBoxFields> {
|
18
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<AudioRegionBox>): AudioRegionBox;
|
19
|
+
private constructor();
|
20
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
21
|
+
get regions(): PointerField<Pointers.RegionCollection>;
|
22
|
+
get file(): PointerField<Pointers.AudioFile>;
|
23
|
+
get position(): Int32Field;
|
24
|
+
get duration(): Int32Field;
|
25
|
+
get loopOffset(): Int32Field;
|
26
|
+
get loopDuration(): Int32Field;
|
27
|
+
get mute(): BooleanField;
|
28
|
+
get label(): StringField;
|
29
|
+
get hue(): Int32Field;
|
30
|
+
get gain(): Float32Field;
|
31
|
+
initializeFields(): AudioRegionBoxFields;
|
32
|
+
}
|
33
|
+
//# sourceMappingURL=AudioRegionBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AudioRegionBox.d.ts","sourceRoot":"","sources":["../src/AudioRegionBox.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,EACZ,WAAW,EACX,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,oBAAoB,GAAG;IACjC,CAAC,EAAgB,YAAY,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACzD,CAAC,EAAa,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC/C,EAAE,EAAiB,UAAU,CAAC;IAC9B,EAAE,EAAiB,UAAU,CAAC;IAC9B,EAAE,EAAmB,UAAU,CAAC;IAChC,EAAE,EAAqB,UAAU,CAAC;IAClC,EAAE,EAAa,YAAY,CAAC;IAC5B,EAAE,EAAc,WAAW,CAAC;IAC5B,EAAE,EAAY,UAAU,CAAC;IACzB,EAAE,EAAa,YAAY,CAAC;CAC7B,CAAC;AAEF,qBAAa,cAAe,SAAQ,GAAG,CACrC,QAAQ,CAAC,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