@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,142 @@
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 MacroModulatorBox extends Box {
5
+ static create(graph, uuid, constructor) {
6
+ return graph.stageBox(new MacroModulatorBox({
7
+ uuid,
8
+ graph,
9
+ name: "MacroModulatorBox",
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 = "MacroModulatorBox";
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.visitMacroModulatorBox, this);
28
+ }
29
+ get tags() {
30
+ return MacroModulatorBox.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 value() {
57
+ return this.getField(10);
58
+ }
59
+ initializeFields() {
60
+ return {
61
+ 1: PointerField.create({
62
+ parent: this,
63
+ fieldKey: 1,
64
+ fieldName: "collection",
65
+ deprecated: false,
66
+ pointerRules: NoPointers,
67
+ }, Pointers.ModulatorCollection, true),
68
+ 2: Field.hook({
69
+ parent: this,
70
+ fieldKey: 2,
71
+ fieldName: "assignments",
72
+ deprecated: false,
73
+ pointerRules: {
74
+ accepts: [Pointers.ModulatorSource],
75
+ mandatory: false,
76
+ exclusive: false,
77
+ },
78
+ }),
79
+ 3: StringField.create({
80
+ parent: this,
81
+ fieldKey: 3,
82
+ fieldName: "label",
83
+ deprecated: false,
84
+ pointerRules: NoPointers,
85
+ }),
86
+ 4: BooleanField.create({
87
+ parent: this,
88
+ fieldKey: 4,
89
+ fieldName: "enabled",
90
+ deprecated: false,
91
+ pointerRules: NoPointers,
92
+ }, true),
93
+ 5: Int32Field.create({
94
+ parent: this,
95
+ fieldKey: 5,
96
+ fieldName: "index",
97
+ deprecated: false,
98
+ pointerRules: NoPointers,
99
+ }, "index", ""),
100
+ 6: Field.hook({
101
+ parent: this,
102
+ fieldKey: 6,
103
+ fieldName: "tracks",
104
+ deprecated: false,
105
+ pointerRules: {
106
+ accepts: [Pointers.TrackCollection],
107
+ mandatory: false,
108
+ exclusive: false,
109
+ },
110
+ }),
111
+ 7: BooleanField.create({
112
+ parent: this,
113
+ fieldKey: 7,
114
+ fieldName: "bipolar",
115
+ deprecated: false,
116
+ pointerRules: NoPointers,
117
+ }, true),
118
+ 8: Float32Field.create({
119
+ parent: this,
120
+ fieldKey: 8,
121
+ fieldName: "amount",
122
+ deprecated: false,
123
+ pointerRules: {
124
+ accepts: [Pointers.MIDIControl, Pointers.Automation],
125
+ mandatory: false,
126
+ exclusive: false,
127
+ },
128
+ }, "unipolar", "%", 1),
129
+ 10: Float32Field.create({
130
+ parent: this,
131
+ fieldKey: 10,
132
+ fieldName: "value",
133
+ deprecated: false,
134
+ pointerRules: {
135
+ accepts: [Pointers.MIDIControl, Pointers.Automation],
136
+ mandatory: false,
137
+ exclusive: false,
138
+ },
139
+ }, "unipolar", "%", 0.5),
140
+ };
141
+ }
142
+ }
@@ -0,0 +1,28 @@
1
+ import { Maybe, Optional, UUID, Procedure } from "@opendaw/lib-std";
2
+ import { Box, BoxGraph, ResourceType, PointerField, Float32Field, BooleanField, Int32Field } from "@opendaw/lib-box";
3
+ import { BoxVisitor } from ".";
4
+ import { Pointers } from "@opendaw/studio-enums";
5
+ export type ModulationBoxFields = {
6
+ 1: PointerField<Pointers.ModulatorSource>;
7
+ 2: PointerField<Pointers.Modulation>;
8
+ 3: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
9
+ 4: BooleanField;
10
+ 5: Int32Field;
11
+ };
12
+ export declare class ModulationBox extends Box<Pointers.Selection, ModulationBoxFields> {
13
+ static create(graph: BoxGraph, uuid: UUID.Bytes, constructor?: Procedure<ModulationBox>): ModulationBox;
14
+ static readonly ClassName: string;
15
+ static readonly Resource: Optional<ResourceType>;
16
+ static readonly Ephemeral: boolean;
17
+ static readonly Tags: Readonly<Record<string, string | number | boolean>>;
18
+ private constructor();
19
+ accept<R>(visitor: BoxVisitor<R>): Maybe<R>;
20
+ get tags(): Readonly<Record<string, string | number | boolean>>;
21
+ get source(): PointerField<Pointers.ModulatorSource>;
22
+ get target(): PointerField<Pointers.Modulation>;
23
+ get depth(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
24
+ get enabled(): BooleanField;
25
+ get index(): Int32Field;
26
+ initializeFields(): ModulationBoxFields;
27
+ }
28
+ //# sourceMappingURL=ModulationBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModulationBox.d.ts","sourceRoot":"","sources":["../src/ModulationBox.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,YAAY,EACZ,YAAY,EACZ,UAAU,EACX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,M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Q,CAAC,UAAU,CAAC,CAE9C;IAED,IAAI,KAAK,IAAI,YAAY,CACvB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAEA;IAED,IAAI,OAAO,IAAI,YAAY,CAE1B;IAED,IAAI,KAAK,IAAI,UAAU,CAEtB;IAED,gBAAgB,IAAI,mBAAmB;CAmExC"}
@@ -0,0 +1,94 @@
1
+ import { safeExecute, } from "@opendaw/lib-std";
2
+ import { Box, NoPointers, PointerField, Float32Field, BooleanField, Int32Field, } from "@opendaw/lib-box";
3
+ import { Pointers } from "@opendaw/studio-enums";
4
+ export class ModulationBox extends Box {
5
+ static create(graph, uuid, constructor) {
6
+ return graph.stageBox(new ModulationBox({
7
+ uuid,
8
+ graph,
9
+ name: "ModulationBox",
10
+ pointerRules: {
11
+ accepts: [Pointers.Selection],
12
+ mandatory: false,
13
+ exclusive: false,
14
+ },
15
+ resource: undefined,
16
+ ephemeral: false,
17
+ }), constructor);
18
+ }
19
+ static ClassName = "ModulationBox";
20
+ static Resource = undefined;
21
+ static Ephemeral = false;
22
+ static Tags = Object.freeze({});
23
+ constructor(construct) {
24
+ super(construct);
25
+ }
26
+ accept(visitor) {
27
+ return safeExecute(visitor.visitModulationBox, this);
28
+ }
29
+ get tags() {
30
+ return ModulationBox.Tags;
31
+ }
32
+ get source() {
33
+ return this.getField(1);
34
+ }
35
+ get target() {
36
+ return this.getField(2);
37
+ }
38
+ get depth() {
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
+ initializeFields() {
48
+ return {
49
+ 1: PointerField.create({
50
+ parent: this,
51
+ fieldKey: 1,
52
+ fieldName: "source",
53
+ deprecated: false,
54
+ pointerRules: NoPointers,
55
+ }, Pointers.ModulatorSource, true),
56
+ 2: PointerField.create({
57
+ parent: this,
58
+ fieldKey: 2,
59
+ fieldName: "target",
60
+ deprecated: false,
61
+ pointerRules: NoPointers,
62
+ }, Pointers.Modulation, true),
63
+ 3: Float32Field.create({
64
+ parent: this,
65
+ fieldKey: 3,
66
+ fieldName: "depth",
67
+ deprecated: false,
68
+ pointerRules: {
69
+ accepts: [
70
+ Pointers.Modulation,
71
+ Pointers.Automation,
72
+ Pointers.MIDIControl,
73
+ ],
74
+ mandatory: false,
75
+ exclusive: false,
76
+ },
77
+ }, "bipolar", "%", 0),
78
+ 4: BooleanField.create({
79
+ parent: this,
80
+ fieldKey: 4,
81
+ fieldName: "enabled",
82
+ deprecated: false,
83
+ pointerRules: NoPointers,
84
+ }, true),
85
+ 5: Int32Field.create({
86
+ parent: this,
87
+ fieldKey: 5,
88
+ fieldName: "index",
89
+ deprecated: false,
90
+ pointerRules: NoPointers,
91
+ }, "index", ""),
92
+ };
93
+ }
94
+ }
@@ -0,0 +1,48 @@
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 RandomModulatorBoxFields = {
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
+ 16: Int32Field<Pointers.MIDIControl | Pointers.Automation>;
20
+ 17: Int32Field<Pointers.MIDIControl | Pointers.Automation>;
21
+ };
22
+ export declare class RandomModulatorBox extends Box<Pointers.Selection | Pointers.MetaData, RandomModulatorBoxFields> {
23
+ static create(graph: BoxGraph, uuid: UUID.Bytes, constructor?: Procedure<RandomModulatorBox>): RandomModulatorBox;
24
+ static readonly ClassName: string;
25
+ static readonly Resource: Optional<ResourceType>;
26
+ static readonly Ephemeral: boolean;
27
+ static readonly Tags: Readonly<Record<string, string | number | boolean>>;
28
+ private constructor();
29
+ accept<R>(visitor: BoxVisitor<R>): Maybe<R>;
30
+ get tags(): Readonly<Record<string, string | number | boolean>>;
31
+ get collection(): PointerField<Pointers.ModulatorCollection>;
32
+ get assignments(): Field<Pointers.ModulatorSource>;
33
+ get label(): StringField;
34
+ get enabled(): BooleanField;
35
+ get index(): Int32Field;
36
+ get tracks(): Field<Pointers.TrackCollection>;
37
+ get bipolar(): BooleanField;
38
+ get amount(): Float32Field<Pointers.MIDIControl | Pointers.Automation>;
39
+ get loop(): Int32Field<Pointers.MIDIControl | Pointers.Automation>;
40
+ get rateSync(): Int32Field<Pointers.MIDIControl | Pointers.Automation>;
41
+ get rateAbsolute(): Float32Field<Pointers.MIDIControl | Pointers.Automation>;
42
+ get phase(): Float32Field<Pointers.MIDIControl | Pointers.Automation>;
43
+ get smooth(): Float32Field<Pointers.MIDIControl | Pointers.Automation>;
44
+ get seed(): Int32Field<Pointers.MIDIControl | Pointers.Automation>;
45
+ get levels(): Int32Field<Pointers.MIDIControl | Pointers.Automation>;
46
+ initializeFields(): RandomModulatorBoxFields;
47
+ }
48
+ //# sourceMappingURL=RandomModulatorBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RandomModulatorBox.d.ts","sourceRoot":"","sources":["../src/RandomModulatorBox.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,QAAQ,EAER,IAAI,EACJ,SAAS,EACV,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,GAAG,EAEH,QAAQ,EACR,YA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,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAErE;IAED,IAAI,IAAI,IAAI,UAAU,CAAC,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAEjE;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,MAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAErE;IAED,IAAI,IAAI,IAAI,UAAU,CAAC,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAEjE;IAED,IAAI,MAAM,IAAI,UAAU,CAAC,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAEnE;IAED,gBAAgB,IAAI,wBAAwB;CA2M7C"}
@@ -0,0 +1,226 @@
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 RandomModulatorBox extends Box {
5
+ static create(graph, uuid, constructor) {
6
+ return graph.stageBox(new RandomModulatorBox({
7
+ uuid,
8
+ graph,
9
+ name: "RandomModulatorBox",
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 = "RandomModulatorBox";
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.visitRandomModulatorBox, this);
28
+ }
29
+ get tags() {
30
+ return RandomModulatorBox.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 loop() {
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 smooth() {
69
+ return this.getField(15);
70
+ }
71
+ get seed() {
72
+ return this.getField(16);
73
+ }
74
+ get levels() {
75
+ return this.getField(17);
76
+ }
77
+ initializeFields() {
78
+ return {
79
+ 1: PointerField.create({
80
+ parent: this,
81
+ fieldKey: 1,
82
+ fieldName: "collection",
83
+ deprecated: false,
84
+ pointerRules: NoPointers,
85
+ }, Pointers.ModulatorCollection, true),
86
+ 2: Field.hook({
87
+ parent: this,
88
+ fieldKey: 2,
89
+ fieldName: "assignments",
90
+ deprecated: false,
91
+ pointerRules: {
92
+ accepts: [Pointers.ModulatorSource],
93
+ mandatory: false,
94
+ exclusive: false,
95
+ },
96
+ }),
97
+ 3: StringField.create({
98
+ parent: this,
99
+ fieldKey: 3,
100
+ fieldName: "label",
101
+ deprecated: false,
102
+ pointerRules: NoPointers,
103
+ }),
104
+ 4: BooleanField.create({
105
+ parent: this,
106
+ fieldKey: 4,
107
+ fieldName: "enabled",
108
+ deprecated: false,
109
+ pointerRules: NoPointers,
110
+ }, true),
111
+ 5: Int32Field.create({
112
+ parent: this,
113
+ fieldKey: 5,
114
+ fieldName: "index",
115
+ deprecated: false,
116
+ pointerRules: NoPointers,
117
+ }, "index", ""),
118
+ 6: Field.hook({
119
+ parent: this,
120
+ fieldKey: 6,
121
+ fieldName: "tracks",
122
+ deprecated: false,
123
+ pointerRules: {
124
+ accepts: [Pointers.TrackCollection],
125
+ mandatory: false,
126
+ exclusive: false,
127
+ },
128
+ }),
129
+ 7: BooleanField.create({
130
+ parent: this,
131
+ fieldKey: 7,
132
+ fieldName: "bipolar",
133
+ deprecated: false,
134
+ pointerRules: NoPointers,
135
+ }, true),
136
+ 8: Float32Field.create({
137
+ parent: this,
138
+ fieldKey: 8,
139
+ fieldName: "amount",
140
+ deprecated: false,
141
+ pointerRules: {
142
+ accepts: [Pointers.MIDIControl, Pointers.Automation],
143
+ mandatory: false,
144
+ exclusive: false,
145
+ },
146
+ }, "unipolar", "%", 1),
147
+ 10: Int32Field.create({
148
+ parent: this,
149
+ fieldKey: 10,
150
+ fieldName: "loop",
151
+ deprecated: false,
152
+ pointerRules: {
153
+ accepts: [Pointers.MIDIControl, Pointers.Automation],
154
+ mandatory: false,
155
+ exclusive: false,
156
+ },
157
+ }, { min: 0, max: 64 }, "", 0),
158
+ 11: Int32Field.create({
159
+ parent: this,
160
+ fieldKey: 11,
161
+ fieldName: "rateSync",
162
+ deprecated: false,
163
+ pointerRules: {
164
+ accepts: [Pointers.MIDIControl, Pointers.Automation],
165
+ mandatory: false,
166
+ exclusive: false,
167
+ },
168
+ }, { min: 0, max: 12 }, "", 10),
169
+ 12: Float32Field.create({
170
+ parent: this,
171
+ fieldKey: 12,
172
+ fieldName: "rateAbsolute",
173
+ deprecated: false,
174
+ pointerRules: {
175
+ accepts: [Pointers.MIDIControl, Pointers.Automation],
176
+ mandatory: false,
177
+ exclusive: false,
178
+ },
179
+ }, { min: 0, max: 20, scaling: "linear" }, "Hz", 0),
180
+ 13: Float32Field.create({
181
+ parent: this,
182
+ fieldKey: 13,
183
+ fieldName: "phase",
184
+ deprecated: false,
185
+ pointerRules: {
186
+ accepts: [Pointers.MIDIControl, Pointers.Automation],
187
+ mandatory: false,
188
+ exclusive: false,
189
+ },
190
+ }, "unipolar", "%", 0),
191
+ 15: Float32Field.create({
192
+ parent: this,
193
+ fieldKey: 15,
194
+ fieldName: "smooth",
195
+ deprecated: false,
196
+ pointerRules: {
197
+ accepts: [Pointers.MIDIControl, Pointers.Automation],
198
+ mandatory: false,
199
+ exclusive: false,
200
+ },
201
+ }, "unipolar", "%", 0),
202
+ 16: Int32Field.create({
203
+ parent: this,
204
+ fieldKey: 16,
205
+ fieldName: "seed",
206
+ deprecated: false,
207
+ pointerRules: {
208
+ accepts: [Pointers.MIDIControl, Pointers.Automation],
209
+ mandatory: false,
210
+ exclusive: false,
211
+ },
212
+ }, { min: 0, max: 999999 }, "", 1),
213
+ 17: Int32Field.create({
214
+ parent: this,
215
+ fieldKey: 17,
216
+ fieldName: "levels",
217
+ deprecated: false,
218
+ pointerRules: {
219
+ accepts: [Pointers.MIDIControl, Pointers.Automation],
220
+ mandatory: false,
221
+ exclusive: false,
222
+ },
223
+ }, { min: 0, max: 32 }, "", 0),
224
+ };
225
+ }
226
+ }
@@ -0,0 +1,48 @@
1
+ import { Maybe, Optional, UUID, Procedure } from "@opendaw/lib-std";
2
+ import { Box, BoxGraph, ResourceType, Float32Field, PointerField, Field, StringField, BooleanField, Int32Field, ArrayField } from "@opendaw/lib-box";
3
+ import { BoxVisitor } from ".";
4
+ import { Pointers } from "@opendaw/studio-enums";
5
+ export type StepsModulatorBoxFields = {
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
+ 16: Int32Field<Pointers.MIDIControl | Pointers.Automation>;
20
+ 20: ArrayField<Float32Field>;
21
+ };
22
+ export declare class StepsModulatorBox extends Box<Pointers.Selection | Pointers.MetaData, StepsModulatorBoxFields> {
23
+ static create(graph: BoxGraph, uuid: UUID.Bytes, constructor?: Procedure<StepsModulatorBox>): StepsModulatorBox;
24
+ static readonly ClassName: string;
25
+ static readonly Resource: Optional<ResourceType>;
26
+ static readonly Ephemeral: boolean;
27
+ static readonly Tags: Readonly<Record<string, string | number | boolean>>;
28
+ private constructor();
29
+ accept<R>(visitor: BoxVisitor<R>): Maybe<R>;
30
+ get tags(): Readonly<Record<string, string | number | boolean>>;
31
+ get collection(): PointerField<Pointers.ModulatorCollection>;
32
+ get assignments(): Field<Pointers.ModulatorSource>;
33
+ get label(): StringField;
34
+ get enabled(): BooleanField;
35
+ get index(): Int32Field;
36
+ get tracks(): Field<Pointers.TrackCollection>;
37
+ get bipolar(): BooleanField;
38
+ get amount(): Float32Field<Pointers.MIDIControl | Pointers.Automation>;
39
+ get count(): Int32Field<Pointers.MIDIControl | Pointers.Automation>;
40
+ get rateSync(): Int32Field<Pointers.MIDIControl | Pointers.Automation>;
41
+ get rateAbsolute(): Float32Field<Pointers.MIDIControl | Pointers.Automation>;
42
+ get phase(): Float32Field<Pointers.MIDIControl | Pointers.Automation>;
43
+ get smooth(): Float32Field<Pointers.MIDIControl | Pointers.Automation>;
44
+ get direction(): Int32Field<Pointers.MIDIControl | Pointers.Automation>;
45
+ get steps(): ArrayField<Float32Field>;
46
+ initializeFields(): StepsModulatorBoxFields;
47
+ }
48
+ //# sourceMappingURL=StepsModulatorBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepsModulatorBox.d.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