@opendaw/studio-boxes 0.0.106 → 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.
- package/dist/LfoModulatorBox.d.ts +44 -0
- package/dist/LfoModulatorBox.d.ts.map +1 -0
- package/dist/LfoModulatorBox.js +198 -0
- package/dist/MacroModulatorBox.d.ts +36 -0
- package/dist/MacroModulatorBox.d.ts.map +1 -0
- package/dist/MacroModulatorBox.js +142 -0
- package/dist/ModulationBox.d.ts +28 -0
- package/dist/ModulationBox.d.ts.map +1 -0
- package/dist/ModulationBox.js +94 -0
- package/dist/RandomModulatorBox.d.ts +48 -0
- package/dist/RandomModulatorBox.d.ts.map +1 -0
- package/dist/RandomModulatorBox.js +226 -0
- package/dist/StepsModulatorBox.d.ts +48 -0
- package/dist/StepsModulatorBox.d.ts.map +1 -0
- package/dist/StepsModulatorBox.js +222 -0
- package/package.json +4 -4
|
@@ -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":3,"file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,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;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=MacroModulatorBox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MacroModulatorBox.d.ts","sourceRoot":"","sources":["../src/MacroModulatorBox.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,KAAK,EACL,WAAW,EACX,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,uBAAuB,GAAG;IACpC,CAAC,EAAmB,YAAY,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IAC/D,CAAC,EAAoB,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;IACrD,CAAC,EAAc,WAAW,CAAC;IAC3B,CAAC,EAAsB,YAAY,CAAC;IACpC,CAAC,EAAc,UAAU,CAAC;IAC1B,CAAC,EAAe,KAAK,CAAC,QAAQ,CAAC,eAA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Y,CAE1B;IAED,IAAI,KAAK,IAAI,UAAU,CAEtB;IAED,IAAI,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,CAE5C;IAED,IAAI,OAAO,IAAI,YAAY,CAE1B;IAED,IAAI,MAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAErE;IAED,IAAI,KAAK,IAAI,YAAY,CAAC,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAEpE;IAED,gBAAgB,IAAI,uBAAuB;CA2G5C"}
|
|
@@ -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,EAC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AC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;IAI3C,IAAI,IAAI,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,CAE9D;IAED,IAAI,MAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,eAAe,CAAC,CAEnD;IAED,IAAI,MAAM,IAAI,YAAY,CAAC,QAAQ,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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YAAY,CAE1B;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,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.ts","sourceRoot":"","sources":["../src/StepsModulatorBox.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,KAAK,EACL,WAAW,EACX,YAAY,EACZ,UAAU,EACV,UAAU,EACX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,uBAAuB,GAAG;IACpC,C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W,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,SAAS,IAAI,UAAU,CAAC,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAEtE;IAED,IAAI,KAAK,IAAI,UAAU,CAAC,YAAY,CAAC,CAEpC;IAED,gBAAgB,IAAI,uBAAuB;CAsM5C"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { safeExecute, } from "@opendaw/lib-std";
|
|
2
|
+
import { Box, NoPointers, Float32Field, PointerField, Field, StringField, BooleanField, Int32Field, ArrayField, } from "@opendaw/lib-box";
|
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
|
4
|
+
export class StepsModulatorBox extends Box {
|
|
5
|
+
static create(graph, uuid, constructor) {
|
|
6
|
+
return graph.stageBox(new StepsModulatorBox({
|
|
7
|
+
uuid,
|
|
8
|
+
graph,
|
|
9
|
+
name: "StepsModulatorBox",
|
|
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 = "StepsModulatorBox";
|
|
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.visitStepsModulatorBox, this);
|
|
28
|
+
}
|
|
29
|
+
get tags() {
|
|
30
|
+
return StepsModulatorBox.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 count() {
|
|
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 direction() {
|
|
72
|
+
return this.getField(16);
|
|
73
|
+
}
|
|
74
|
+
get steps() {
|
|
75
|
+
return this.getField(20);
|
|
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: "count",
|
|
151
|
+
deprecated: false,
|
|
152
|
+
pointerRules: {
|
|
153
|
+
accepts: [Pointers.MIDIControl, Pointers.Automation],
|
|
154
|
+
mandatory: false,
|
|
155
|
+
exclusive: false,
|
|
156
|
+
},
|
|
157
|
+
}, { min: 1, max: 64 }, "", 16),
|
|
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: "direction",
|
|
206
|
+
deprecated: false,
|
|
207
|
+
pointerRules: {
|
|
208
|
+
accepts: [Pointers.MIDIControl, Pointers.Automation],
|
|
209
|
+
mandatory: false,
|
|
210
|
+
exclusive: false,
|
|
211
|
+
},
|
|
212
|
+
}, { values: [0, 1, 2, 3, 4] }, "", 0),
|
|
213
|
+
20: ArrayField.create({
|
|
214
|
+
parent: this,
|
|
215
|
+
fieldKey: 20,
|
|
216
|
+
fieldName: "steps",
|
|
217
|
+
deprecated: false,
|
|
218
|
+
pointerRules: NoPointers,
|
|
219
|
+
}, (construct) => Float32Field.create(construct, "unipolar", "%", 0.5), 64),
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendaw/studio-boxes",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.107",
|
|
4
4
|
"license": "LGPL-3.0-or-later",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"test": "echo \"No tests to run\""
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@opendaw/lib-box": "^0.0.
|
|
25
|
+
"@opendaw/lib-box": "^0.0.92",
|
|
26
26
|
"@opendaw/lib-std": "^0.0.83",
|
|
27
27
|
"@opendaw/studio-enums": "^0.1.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@opendaw/eslint-config": "^0.0.28",
|
|
31
|
-
"@opendaw/studio-forge-boxes": "^0.0.
|
|
31
|
+
"@opendaw/studio-forge-boxes": "^0.0.107",
|
|
32
32
|
"@opendaw/typescript-config": "^0.0.32"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "e1495bbd78b89e262bcd72141dde0344bc328326"
|
|
35
35
|
}
|