@opendaw/studio-boxes 0.0.105 → 0.0.107

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.
@@ -0,0 +1,51 @@
1
+ import { Maybe, Optional, UUID, Procedure } from "@opendaw/lib-std";
2
+ import { Box, BoxGraph, ResourceType, PointerField, StringField, BooleanField, Float32Field, Int32Field, ArrayField } from "@opendaw/lib-box";
3
+ import { CubedPattern } from "./CubedPattern";
4
+ import { BoxVisitor } from ".";
5
+ import { Pointers } from "@opendaw/studio-enums";
6
+ export type CubedDeviceBoxFields = {
7
+ 1: PointerField<Pointers.InstrumentHost>;
8
+ 2: StringField;
9
+ 3: StringField;
10
+ 4: BooleanField;
11
+ 5: BooleanField;
12
+ 10: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
13
+ 11: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
14
+ 12: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
15
+ 13: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
16
+ 14: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
17
+ 15: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
18
+ 16: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
19
+ 17: Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
20
+ 20: Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
21
+ 30: ArrayField<CubedPattern>;
22
+ 99: Int32Field;
23
+ };
24
+ export declare class CubedDeviceBox extends Box<Pointers.Device | Pointers.Selection | Pointers.MetaData | Pointers.SideChain, CubedDeviceBoxFields> {
25
+ static create(graph: BoxGraph, uuid: UUID.Bytes, constructor?: Procedure<CubedDeviceBox>): CubedDeviceBox;
26
+ static readonly ClassName: string;
27
+ static readonly Resource: Optional<ResourceType>;
28
+ static readonly Ephemeral: boolean;
29
+ static readonly Tags: Readonly<Record<string, string | number | boolean>>;
30
+ private constructor();
31
+ accept<R>(visitor: BoxVisitor<R>): Maybe<R>;
32
+ get tags(): Readonly<Record<string, string | number | boolean>>;
33
+ get host(): PointerField<Pointers.InstrumentHost>;
34
+ get label(): StringField;
35
+ get icon(): StringField;
36
+ get enabled(): BooleanField;
37
+ get minimized(): BooleanField;
38
+ get tuning(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
39
+ get cutoff(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
40
+ get resonance(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
41
+ get envMod(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
42
+ get decay(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
43
+ get accent(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
44
+ get volume(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
45
+ get waveform(): Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
46
+ get patternIndex(): Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
47
+ get patterns(): ArrayField<CubedPattern>;
48
+ get version(): Int32Field;
49
+ initializeFields(): CubedDeviceBoxFields;
50
+ }
51
+ //# sourceMappingURL=CubedDeviceBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CubedDeviceBox.d.ts","sourceRoot":"","sources":["../src/CubedDeviceBox.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,QAAQ,EAER,IAAI,EACJ,SAAS,EACV,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,GAAG,EAEH,QAAQ,EACR,YAAY,EAEZ,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,UAAU,EACX,MAAM,kBAAkB,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gB,IAAI,oBAAoB;CA2PzC"}
@@ -0,0 +1,278 @@
1
+ import { safeExecute, } from "@opendaw/lib-std";
2
+ import { Box, NoPointers, PointerField, StringField, BooleanField, Float32Field, Int32Field, ArrayField, } from "@opendaw/lib-box";
3
+ import { CubedPattern } from "./CubedPattern";
4
+ import { Pointers } from "@opendaw/studio-enums";
5
+ export class CubedDeviceBox extends Box {
6
+ static create(graph, uuid, constructor) {
7
+ return graph.stageBox(new CubedDeviceBox({
8
+ uuid,
9
+ graph,
10
+ name: "CubedDeviceBox",
11
+ pointerRules: {
12
+ accepts: [
13
+ Pointers.Device,
14
+ Pointers.Selection,
15
+ Pointers.MetaData,
16
+ Pointers.SideChain,
17
+ ],
18
+ mandatory: false,
19
+ exclusive: false,
20
+ },
21
+ resource: undefined,
22
+ ephemeral: false,
23
+ }), constructor);
24
+ }
25
+ static ClassName = "CubedDeviceBox";
26
+ static Resource = undefined;
27
+ static Ephemeral = false;
28
+ static Tags = Object.freeze({
29
+ type: "device",
30
+ deviceType: "instrument",
31
+ content: "notes",
32
+ });
33
+ constructor(construct) {
34
+ super(construct);
35
+ }
36
+ accept(visitor) {
37
+ return safeExecute(visitor.visitCubedDeviceBox, this);
38
+ }
39
+ get tags() {
40
+ return CubedDeviceBox.Tags;
41
+ }
42
+ get host() {
43
+ return this.getField(1);
44
+ }
45
+ get label() {
46
+ return this.getField(2);
47
+ }
48
+ get icon() {
49
+ return this.getField(3);
50
+ }
51
+ get enabled() {
52
+ return this.getField(4);
53
+ }
54
+ get minimized() {
55
+ return this.getField(5);
56
+ }
57
+ get tuning() {
58
+ return this.getField(10);
59
+ }
60
+ get cutoff() {
61
+ return this.getField(11);
62
+ }
63
+ get resonance() {
64
+ return this.getField(12);
65
+ }
66
+ get envMod() {
67
+ return this.getField(13);
68
+ }
69
+ get decay() {
70
+ return this.getField(14);
71
+ }
72
+ get accent() {
73
+ return this.getField(15);
74
+ }
75
+ get volume() {
76
+ return this.getField(16);
77
+ }
78
+ get waveform() {
79
+ return this.getField(17);
80
+ }
81
+ get patternIndex() {
82
+ return this.getField(20);
83
+ }
84
+ get patterns() {
85
+ return this.getField(30);
86
+ }
87
+ get version() {
88
+ return this.getField(99);
89
+ }
90
+ initializeFields() {
91
+ return {
92
+ 1: PointerField.create({
93
+ parent: this,
94
+ fieldKey: 1,
95
+ fieldName: "host",
96
+ deprecated: false,
97
+ pointerRules: NoPointers,
98
+ }, Pointers.InstrumentHost, true),
99
+ 2: StringField.create({
100
+ parent: this,
101
+ fieldKey: 2,
102
+ fieldName: "label",
103
+ deprecated: false,
104
+ pointerRules: NoPointers,
105
+ }),
106
+ 3: StringField.create({
107
+ parent: this,
108
+ fieldKey: 3,
109
+ fieldName: "icon",
110
+ deprecated: false,
111
+ pointerRules: NoPointers,
112
+ }),
113
+ 4: BooleanField.create({
114
+ parent: this,
115
+ fieldKey: 4,
116
+ fieldName: "enabled",
117
+ deprecated: false,
118
+ pointerRules: NoPointers,
119
+ }, true),
120
+ 5: BooleanField.create({
121
+ parent: this,
122
+ fieldKey: 5,
123
+ fieldName: "minimized",
124
+ deprecated: false,
125
+ pointerRules: NoPointers,
126
+ }, false),
127
+ 10: Float32Field.create({
128
+ parent: this,
129
+ fieldKey: 10,
130
+ fieldName: "tuning",
131
+ deprecated: false,
132
+ pointerRules: {
133
+ accepts: [
134
+ Pointers.Modulation,
135
+ Pointers.Automation,
136
+ Pointers.MIDIControl,
137
+ ],
138
+ mandatory: false,
139
+ exclusive: false,
140
+ },
141
+ }, { min: -1200, max: 1200, scaling: "linear" }, "ct", 0),
142
+ 11: Float32Field.create({
143
+ parent: this,
144
+ fieldKey: 11,
145
+ fieldName: "cutoff",
146
+ deprecated: false,
147
+ pointerRules: {
148
+ accepts: [
149
+ Pointers.Modulation,
150
+ Pointers.Automation,
151
+ Pointers.MIDIControl,
152
+ ],
153
+ mandatory: false,
154
+ exclusive: false,
155
+ },
156
+ }, "unipolar", "%", 0),
157
+ 12: Float32Field.create({
158
+ parent: this,
159
+ fieldKey: 12,
160
+ fieldName: "resonance",
161
+ deprecated: false,
162
+ pointerRules: {
163
+ accepts: [
164
+ Pointers.Modulation,
165
+ Pointers.Automation,
166
+ Pointers.MIDIControl,
167
+ ],
168
+ mandatory: false,
169
+ exclusive: false,
170
+ },
171
+ }, "unipolar", "%", 1),
172
+ 13: Float32Field.create({
173
+ parent: this,
174
+ fieldKey: 13,
175
+ fieldName: "envMod",
176
+ deprecated: false,
177
+ pointerRules: {
178
+ accepts: [
179
+ Pointers.Modulation,
180
+ Pointers.Automation,
181
+ Pointers.MIDIControl,
182
+ ],
183
+ mandatory: false,
184
+ exclusive: false,
185
+ },
186
+ }, "unipolar", "%", 1),
187
+ 14: Float32Field.create({
188
+ parent: this,
189
+ fieldKey: 14,
190
+ fieldName: "decay",
191
+ deprecated: false,
192
+ pointerRules: {
193
+ accepts: [
194
+ Pointers.Modulation,
195
+ Pointers.Automation,
196
+ Pointers.MIDIControl,
197
+ ],
198
+ mandatory: false,
199
+ exclusive: false,
200
+ },
201
+ }, "unipolar", "%", 0.5),
202
+ 15: Float32Field.create({
203
+ parent: this,
204
+ fieldKey: 15,
205
+ fieldName: "accent",
206
+ deprecated: false,
207
+ pointerRules: {
208
+ accepts: [
209
+ Pointers.Modulation,
210
+ Pointers.Automation,
211
+ Pointers.MIDIControl,
212
+ ],
213
+ mandatory: false,
214
+ exclusive: false,
215
+ },
216
+ }, "unipolar", "%", 1),
217
+ 16: Float32Field.create({
218
+ parent: this,
219
+ fieldKey: 16,
220
+ fieldName: "volume",
221
+ deprecated: false,
222
+ pointerRules: {
223
+ accepts: [
224
+ Pointers.Modulation,
225
+ Pointers.Automation,
226
+ Pointers.MIDIControl,
227
+ ],
228
+ mandatory: false,
229
+ exclusive: false,
230
+ },
231
+ }, "decibel", "dB", -12),
232
+ 17: Int32Field.create({
233
+ parent: this,
234
+ fieldKey: 17,
235
+ fieldName: "waveform",
236
+ deprecated: false,
237
+ pointerRules: {
238
+ accepts: [
239
+ Pointers.Modulation,
240
+ Pointers.Automation,
241
+ Pointers.MIDIControl,
242
+ ],
243
+ mandatory: false,
244
+ exclusive: false,
245
+ },
246
+ }, { values: [0, 1] }, "", 0),
247
+ 20: Int32Field.create({
248
+ parent: this,
249
+ fieldKey: 20,
250
+ fieldName: "patternIndex",
251
+ deprecated: false,
252
+ pointerRules: {
253
+ accepts: [
254
+ Pointers.Modulation,
255
+ Pointers.Automation,
256
+ Pointers.MIDIControl,
257
+ ],
258
+ mandatory: false,
259
+ exclusive: false,
260
+ },
261
+ }, { min: 0, max: 15 }, "", 0),
262
+ 30: ArrayField.create({
263
+ parent: this,
264
+ fieldKey: 30,
265
+ fieldName: "patterns",
266
+ deprecated: false,
267
+ pointerRules: NoPointers,
268
+ }, (construct) => CubedPattern.create(construct), 16),
269
+ 99: Int32Field.create({
270
+ parent: this,
271
+ fieldKey: 99,
272
+ fieldName: "version",
273
+ deprecated: false,
274
+ pointerRules: NoPointers,
275
+ }, "any", ""),
276
+ };
277
+ }
278
+ }
@@ -0,0 +1,13 @@
1
+ import { ObjectField, FieldConstruct, Int32Field, ArrayField, UnreferenceableType } from "@opendaw/lib-box";
2
+ export type CubedPatternFields = {
3
+ 1: Int32Field;
4
+ 2: ArrayField<Int32Field>;
5
+ };
6
+ export declare class CubedPattern extends ObjectField<CubedPatternFields> {
7
+ static create(construct: FieldConstruct<UnreferenceableType>): CubedPattern;
8
+ private constructor();
9
+ get length(): Int32Field;
10
+ get steps(): ArrayField<Int32Field>;
11
+ initializeFields(): CubedPatternFields;
12
+ }
13
+ //# sourceMappingURL=CubedPattern.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CubedPattern.d.ts","sourceRoot":"","sources":["../src/CubedPattern.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,cAAc,EAEd,UAAU,EACV,UAAU,EACV,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAW1B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,CAAC,EAAmB,UAAU,CAAC;IAC/B,CAAC,EAAc,UAAU,CAAC,UAAU,CAAC,CAAC;CACvC,CAAC;AAEF,qBAAa,YAAa,SAAQ,WAAW,CAAC,kBAAkB,CAAC;IAC/D,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,cAAc,CAAC,mBAAmB,CAAC,GAAG,YAAY;IAI3E,OAAO;IAIP,IAAI,MAAM,IAAI,UAAU,CAEvB;IAED,IAAI,KAAK,IAAI,UAAU,CAAC,UAAU,CAAC,CAElC;IAED,gBAAgB,IAAI,kBAAkB;CA2BvC"}
@@ -0,0 +1,33 @@
1
+ import { ObjectField, NoPointers, Int32Field, ArrayField, } from "@opendaw/lib-box";
2
+ export class CubedPattern extends ObjectField {
3
+ static create(construct) {
4
+ return new CubedPattern(construct);
5
+ }
6
+ constructor(construct) {
7
+ super(construct);
8
+ }
9
+ get length() {
10
+ return this.getField(1);
11
+ }
12
+ get steps() {
13
+ return this.getField(2);
14
+ }
15
+ initializeFields() {
16
+ return {
17
+ 1: Int32Field.create({
18
+ parent: this,
19
+ fieldKey: 1,
20
+ fieldName: "length",
21
+ deprecated: false,
22
+ pointerRules: NoPointers,
23
+ }, { min: 1, max: 64 }, "", 16),
24
+ 2: ArrayField.create({
25
+ parent: this,
26
+ fieldKey: 2,
27
+ fieldName: "steps",
28
+ deprecated: false,
29
+ pointerRules: NoPointers,
30
+ }, (construct) => Int32Field.create(construct, "any", "", 60), 64),
31
+ };
32
+ }
33
+ }
@@ -0,0 +1,44 @@
1
+ import { Maybe, Optional, UUID, Procedure } from "@opendaw/lib-std";
2
+ import { Box, BoxGraph, ResourceType, PointerField, Field, StringField, BooleanField, Int32Field, Float32Field } from "@opendaw/lib-box";
3
+ import { BoxVisitor } from ".";
4
+ import { Pointers } from "@opendaw/studio-enums";
5
+ export type LfoModulatorBoxFields = {
6
+ 1: PointerField<Pointers.ModulatorCollection>;
7
+ 2: Field<Pointers.ModulatorSource>;
8
+ 3: StringField;
9
+ 4: BooleanField;
10
+ 5: Int32Field;
11
+ 6: Field<Pointers.TrackCollection>;
12
+ 7: BooleanField;
13
+ 8: Float32Field<Pointers.MIDIControl | Pointers.Automation>;
14
+ 10: Int32Field<Pointers.MIDIControl | Pointers.Automation>;
15
+ 11: Int32Field<Pointers.MIDIControl | Pointers.Automation>;
16
+ 12: Float32Field<Pointers.MIDIControl | Pointers.Automation>;
17
+ 13: Float32Field<Pointers.MIDIControl | Pointers.Automation>;
18
+ 15: Float32Field<Pointers.MIDIControl | Pointers.Automation>;
19
+ };
20
+ export declare class LfoModulatorBox extends Box<Pointers.Selection | Pointers.MetaData, LfoModulatorBoxFields> {
21
+ static create(graph: BoxGraph, uuid: UUID.Bytes, constructor?: Procedure<LfoModulatorBox>): LfoModulatorBox;
22
+ static readonly ClassName: string;
23
+ static readonly Resource: Optional<ResourceType>;
24
+ static readonly Ephemeral: boolean;
25
+ static readonly Tags: Readonly<Record<string, string | number | boolean>>;
26
+ private constructor();
27
+ accept<R>(visitor: BoxVisitor<R>): Maybe<R>;
28
+ get tags(): Readonly<Record<string, string | number | boolean>>;
29
+ get collection(): PointerField<Pointers.ModulatorCollection>;
30
+ get assignments(): Field<Pointers.ModulatorSource>;
31
+ get label(): StringField;
32
+ get enabled(): BooleanField;
33
+ get index(): Int32Field;
34
+ get tracks(): Field<Pointers.TrackCollection>;
35
+ get bipolar(): BooleanField;
36
+ get amount(): Float32Field<Pointers.MIDIControl | Pointers.Automation>;
37
+ get shape(): Int32Field<Pointers.MIDIControl | Pointers.Automation>;
38
+ get rateSync(): Int32Field<Pointers.MIDIControl | Pointers.Automation>;
39
+ get rateAbsolute(): Float32Field<Pointers.MIDIControl | Pointers.Automation>;
40
+ get phase(): Float32Field<Pointers.MIDIControl | Pointers.Automation>;
41
+ get exponent(): Float32Field<Pointers.MIDIControl | Pointers.Automation>;
42
+ initializeFields(): LfoModulatorBoxFields;
43
+ }
44
+ //# sourceMappingURL=LfoModulatorBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version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,CAAC,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAErE;IAED,IAAI,KAAK,IAAI,UAAU,CAAC,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAElE;IAED,IAAI,QAAQ,IAAI,UAAU,CAAC,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAErE;IAED,IAAI,YAAY,IAAI,YAAY,CAAC,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAE3E;IAED,IAAI,KAAK,IAAI,YAAY,CAAC,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAEpE;IAED,IAAI,QAAQ,IAAI,YAAY,CAAC,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAEvE;IAED,gBAAgB,IAAI,qBAAqB;CA2K1C"}
@@ -0,0 +1,198 @@
1
+ import { safeExecute, } from "@opendaw/lib-std";
2
+ import { Box, NoPointers, PointerField, Field, StringField, BooleanField, Int32Field, Float32Field, } from "@opendaw/lib-box";
3
+ import { Pointers } from "@opendaw/studio-enums";
4
+ export class LfoModulatorBox extends Box {
5
+ static create(graph, uuid, constructor) {
6
+ return graph.stageBox(new LfoModulatorBox({
7
+ uuid,
8
+ graph,
9
+ name: "LfoModulatorBox",
10
+ pointerRules: {
11
+ accepts: [Pointers.Selection, Pointers.MetaData],
12
+ mandatory: false,
13
+ exclusive: false,
14
+ },
15
+ resource: undefined,
16
+ ephemeral: false,
17
+ }), constructor);
18
+ }
19
+ static ClassName = "LfoModulatorBox";
20
+ static Resource = undefined;
21
+ static Ephemeral = false;
22
+ static Tags = Object.freeze({ type: "modulator" });
23
+ constructor(construct) {
24
+ super(construct);
25
+ }
26
+ accept(visitor) {
27
+ return safeExecute(visitor.visitLfoModulatorBox, this);
28
+ }
29
+ get tags() {
30
+ return LfoModulatorBox.Tags;
31
+ }
32
+ get collection() {
33
+ return this.getField(1);
34
+ }
35
+ get assignments() {
36
+ return this.getField(2);
37
+ }
38
+ get label() {
39
+ return this.getField(3);
40
+ }
41
+ get enabled() {
42
+ return this.getField(4);
43
+ }
44
+ get index() {
45
+ return this.getField(5);
46
+ }
47
+ get tracks() {
48
+ return this.getField(6);
49
+ }
50
+ get bipolar() {
51
+ return this.getField(7);
52
+ }
53
+ get amount() {
54
+ return this.getField(8);
55
+ }
56
+ get shape() {
57
+ return this.getField(10);
58
+ }
59
+ get rateSync() {
60
+ return this.getField(11);
61
+ }
62
+ get rateAbsolute() {
63
+ return this.getField(12);
64
+ }
65
+ get phase() {
66
+ return this.getField(13);
67
+ }
68
+ get exponent() {
69
+ return this.getField(15);
70
+ }
71
+ initializeFields() {
72
+ return {
73
+ 1: PointerField.create({
74
+ parent: this,
75
+ fieldKey: 1,
76
+ fieldName: "collection",
77
+ deprecated: false,
78
+ pointerRules: NoPointers,
79
+ }, Pointers.ModulatorCollection, true),
80
+ 2: Field.hook({
81
+ parent: this,
82
+ fieldKey: 2,
83
+ fieldName: "assignments",
84
+ deprecated: false,
85
+ pointerRules: {
86
+ accepts: [Pointers.ModulatorSource],
87
+ mandatory: false,
88
+ exclusive: false,
89
+ },
90
+ }),
91
+ 3: StringField.create({
92
+ parent: this,
93
+ fieldKey: 3,
94
+ fieldName: "label",
95
+ deprecated: false,
96
+ pointerRules: NoPointers,
97
+ }),
98
+ 4: BooleanField.create({
99
+ parent: this,
100
+ fieldKey: 4,
101
+ fieldName: "enabled",
102
+ deprecated: false,
103
+ pointerRules: NoPointers,
104
+ }, true),
105
+ 5: Int32Field.create({
106
+ parent: this,
107
+ fieldKey: 5,
108
+ fieldName: "index",
109
+ deprecated: false,
110
+ pointerRules: NoPointers,
111
+ }, "index", ""),
112
+ 6: Field.hook({
113
+ parent: this,
114
+ fieldKey: 6,
115
+ fieldName: "tracks",
116
+ deprecated: false,
117
+ pointerRules: {
118
+ accepts: [Pointers.TrackCollection],
119
+ mandatory: false,
120
+ exclusive: false,
121
+ },
122
+ }),
123
+ 7: BooleanField.create({
124
+ parent: this,
125
+ fieldKey: 7,
126
+ fieldName: "bipolar",
127
+ deprecated: false,
128
+ pointerRules: NoPointers,
129
+ }, true),
130
+ 8: Float32Field.create({
131
+ parent: this,
132
+ fieldKey: 8,
133
+ fieldName: "amount",
134
+ deprecated: false,
135
+ pointerRules: {
136
+ accepts: [Pointers.MIDIControl, Pointers.Automation],
137
+ mandatory: false,
138
+ exclusive: false,
139
+ },
140
+ }, "unipolar", "%", 1),
141
+ 10: Int32Field.create({
142
+ parent: this,
143
+ fieldKey: 10,
144
+ fieldName: "shape",
145
+ deprecated: false,
146
+ pointerRules: {
147
+ accepts: [Pointers.MIDIControl, Pointers.Automation],
148
+ mandatory: false,
149
+ exclusive: false,
150
+ },
151
+ }, { values: [0, 1, 2, 3, 4] }, "", 0),
152
+ 11: Int32Field.create({
153
+ parent: this,
154
+ fieldKey: 11,
155
+ fieldName: "rateSync",
156
+ deprecated: false,
157
+ pointerRules: {
158
+ accepts: [Pointers.MIDIControl, Pointers.Automation],
159
+ mandatory: false,
160
+ exclusive: false,
161
+ },
162
+ }, { min: 0, max: 12 }, "", 4),
163
+ 12: Float32Field.create({
164
+ parent: this,
165
+ fieldKey: 12,
166
+ fieldName: "rateAbsolute",
167
+ deprecated: false,
168
+ pointerRules: {
169
+ accepts: [Pointers.MIDIControl, Pointers.Automation],
170
+ mandatory: false,
171
+ exclusive: false,
172
+ },
173
+ }, { min: 0, max: 20, scaling: "linear" }, "Hz", 0),
174
+ 13: Float32Field.create({
175
+ parent: this,
176
+ fieldKey: 13,
177
+ fieldName: "phase",
178
+ deprecated: false,
179
+ pointerRules: {
180
+ accepts: [Pointers.MIDIControl, Pointers.Automation],
181
+ mandatory: false,
182
+ exclusive: false,
183
+ },
184
+ }, "unipolar", "%", 0),
185
+ 15: Float32Field.create({
186
+ parent: this,
187
+ fieldKey: 15,
188
+ fieldName: "exponent",
189
+ deprecated: false,
190
+ pointerRules: {
191
+ accepts: [Pointers.MIDIControl, Pointers.Automation],
192
+ mandatory: false,
193
+ exclusive: false,
194
+ },
195
+ }, "bipolar", "%", 0),
196
+ };
197
+ }
198
+ }
@@ -0,0 +1,36 @@
1
+ import { Maybe, Optional, UUID, Procedure } from "@opendaw/lib-std";
2
+ import { Box, BoxGraph, ResourceType, PointerField, Field, StringField, BooleanField, Int32Field, Float32Field } from "@opendaw/lib-box";
3
+ import { BoxVisitor } from ".";
4
+ import { Pointers } from "@opendaw/studio-enums";
5
+ export type MacroModulatorBoxFields = {
6
+ 1: PointerField<Pointers.ModulatorCollection>;
7
+ 2: Field<Pointers.ModulatorSource>;
8
+ 3: StringField;
9
+ 4: BooleanField;
10
+ 5: Int32Field;
11
+ 6: Field<Pointers.TrackCollection>;
12
+ 7: BooleanField;
13
+ 8: Float32Field<Pointers.MIDIControl | Pointers.Automation>;
14
+ 10: Float32Field<Pointers.MIDIControl | Pointers.Automation>;
15
+ };
16
+ export declare class MacroModulatorBox extends Box<Pointers.Selection | Pointers.MetaData, MacroModulatorBoxFields> {
17
+ static create(graph: BoxGraph, uuid: UUID.Bytes, constructor?: Procedure<MacroModulatorBox>): MacroModulatorBox;
18
+ static readonly ClassName: string;
19
+ static readonly Resource: Optional<ResourceType>;
20
+ static readonly Ephemeral: boolean;
21
+ static readonly Tags: Readonly<Record<string, string | number | boolean>>;
22
+ private constructor();
23
+ accept<R>(visitor: BoxVisitor<R>): Maybe<R>;
24
+ get tags(): Readonly<Record<string, string | number | boolean>>;
25
+ get collection(): PointerField<Pointers.ModulatorCollection>;
26
+ get assignments(): Field<Pointers.ModulatorSource>;
27
+ get label(): StringField;
28
+ get enabled(): BooleanField;
29
+ get index(): Int32Field;
30
+ get tracks(): Field<Pointers.TrackCollection>;
31
+ get bipolar(): BooleanField;
32
+ get amount(): Float32Field<Pointers.MIDIControl | Pointers.Automation>;
33
+ get value(): Float32Field<Pointers.MIDIControl | Pointers.Automation>;
34
+ initializeFields(): MacroModulatorBoxFields;
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