@opendaw/studio-boxes 0.0.106 → 0.0.108
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/ConvolverDeviceBox.d.ts +40 -0
- package/dist/ConvolverDeviceBox.d.ts.map +1 -0
- package/dist/ConvolverDeviceBox.js +175 -0
- 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 +214 -0
- package/dist/RootBox.d.ts +2 -0
- package/dist/RootBox.d.ts.map +1 -1
- package/dist/RootBox.js +14 -0
- package/dist/StepsModulatorBox.d.ts +48 -0
- package/dist/StepsModulatorBox.d.ts.map +1 -0
- package/dist/StepsModulatorBox.js +214 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/io.d.ts +7 -1
- package/dist/io.d.ts.map +1 -1
- package/dist/io.js +19 -1
- package/dist/visitor.d.ts +7 -1
- package/dist/visitor.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Maybe, Optional, UUID, Procedure } from "@opendaw/lib-std";
|
|
2
|
+
import { Box, BoxGraph, ResourceType, PointerField, Int32Field, StringField, BooleanField, Float32Field } from "@opendaw/lib-box";
|
|
3
|
+
import { BoxVisitor } from ".";
|
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
|
5
|
+
export type ConvolverDeviceBoxFields = {
|
|
6
|
+
1: PointerField<Pointers.AudioEffectHost>;
|
|
7
|
+
2: Int32Field;
|
|
8
|
+
3: StringField;
|
|
9
|
+
4: BooleanField;
|
|
10
|
+
5: BooleanField;
|
|
11
|
+
10: PointerField<Pointers.AudioFile>;
|
|
12
|
+
11: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
|
|
13
|
+
12: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
|
|
14
|
+
13: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
|
|
15
|
+
14: BooleanField;
|
|
16
|
+
15: BooleanField;
|
|
17
|
+
};
|
|
18
|
+
export declare class ConvolverDeviceBox extends Box<Pointers.Device | Pointers.Selection | Pointers.MetaData | Pointers.SideChain, ConvolverDeviceBoxFields> {
|
|
19
|
+
static create(graph: BoxGraph, uuid: UUID.Bytes, constructor?: Procedure<ConvolverDeviceBox>): ConvolverDeviceBox;
|
|
20
|
+
static readonly ClassName: string;
|
|
21
|
+
static readonly Resource: Optional<ResourceType>;
|
|
22
|
+
static readonly Ephemeral: boolean;
|
|
23
|
+
static readonly Tags: Readonly<Record<string, string | number | boolean>>;
|
|
24
|
+
private constructor();
|
|
25
|
+
accept<R>(visitor: BoxVisitor<R>): Maybe<R>;
|
|
26
|
+
get tags(): Readonly<Record<string, string | number | boolean>>;
|
|
27
|
+
get host(): PointerField<Pointers.AudioEffectHost>;
|
|
28
|
+
get index(): Int32Field;
|
|
29
|
+
get label(): StringField;
|
|
30
|
+
get enabled(): BooleanField;
|
|
31
|
+
get minimized(): BooleanField;
|
|
32
|
+
get file(): PointerField<Pointers.AudioFile>;
|
|
33
|
+
get wet(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
|
|
34
|
+
get dry(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
|
|
35
|
+
get preDelay(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
|
|
36
|
+
get normalize(): BooleanField;
|
|
37
|
+
get reverse(): BooleanField;
|
|
38
|
+
initializeFields(): ConvolverDeviceBoxFields;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=ConvolverDeviceBox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConvolverDeviceBox.d.ts","sourceRoot":"","sources":["../src/ConvolverDeviceBox.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,UAAU,EACV,WAAW,EACX,YAAY,EACZ,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,wBAAwB,GAAG;IACrC,CAAC,EAAa,YAAY,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;IACrD,CAAC,EAAc,UAAU,CAAC;IAC1B,CAAC,EAAc,WAAW,CAAC;IAC3B,CAAC,EAAsB,YAAY,CAAC;IACpC,CAAC,EAAyB,YAAY,CAAC;IACvC,EAAE,EAAa,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAChD,EAAE,EAAgB,YAAY,CAC5B,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAAC;IACF,EAAE,EAAe,YAAY,CAC3B,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAAC;IACF,EAAE,EAAoB,YAAY,CAChC,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAAC;IACF,EAAE,EAAwB,YAAY,CAAC;IACvC,EAAE,EAAgB,YAA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,QAAQ,CAAC,WAAW,CACjE,CAEA;IAED,IAAI,GAAG,IAAI,YAAY,CACrB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAEA;IAED,IAAI,QAAQ,IAAI,YAAY,CAC1B,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAEA;IAED,IAAI,SAAS,IAAI,YAAY,CAE5B;IAED,IAAI,OAAO,IAAI,YAAY,CAE1B;IAED,gBAAgB,IAAI,wBAAwB;CA6I7C"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { safeExecute, } from "@opendaw/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 ConvolverDeviceBox extends Box {
|
|
5
|
+
static create(graph, uuid, constructor) {
|
|
6
|
+
return graph.stageBox(new ConvolverDeviceBox({
|
|
7
|
+
uuid,
|
|
8
|
+
graph,
|
|
9
|
+
name: "ConvolverDeviceBox",
|
|
10
|
+
pointerRules: {
|
|
11
|
+
accepts: [
|
|
12
|
+
Pointers.Device,
|
|
13
|
+
Pointers.Selection,
|
|
14
|
+
Pointers.MetaData,
|
|
15
|
+
Pointers.SideChain,
|
|
16
|
+
],
|
|
17
|
+
mandatory: false,
|
|
18
|
+
exclusive: false,
|
|
19
|
+
},
|
|
20
|
+
resource: undefined,
|
|
21
|
+
ephemeral: false,
|
|
22
|
+
}), constructor);
|
|
23
|
+
}
|
|
24
|
+
static ClassName = "ConvolverDeviceBox";
|
|
25
|
+
static Resource = undefined;
|
|
26
|
+
static Ephemeral = false;
|
|
27
|
+
static Tags = Object.freeze({ type: "device", deviceType: "audio-effect" });
|
|
28
|
+
constructor(construct) {
|
|
29
|
+
super(construct);
|
|
30
|
+
}
|
|
31
|
+
accept(visitor) {
|
|
32
|
+
return safeExecute(visitor.visitConvolverDeviceBox, this);
|
|
33
|
+
}
|
|
34
|
+
get tags() {
|
|
35
|
+
return ConvolverDeviceBox.Tags;
|
|
36
|
+
}
|
|
37
|
+
get host() {
|
|
38
|
+
return this.getField(1);
|
|
39
|
+
}
|
|
40
|
+
get index() {
|
|
41
|
+
return this.getField(2);
|
|
42
|
+
}
|
|
43
|
+
get label() {
|
|
44
|
+
return this.getField(3);
|
|
45
|
+
}
|
|
46
|
+
get enabled() {
|
|
47
|
+
return this.getField(4);
|
|
48
|
+
}
|
|
49
|
+
get minimized() {
|
|
50
|
+
return this.getField(5);
|
|
51
|
+
}
|
|
52
|
+
get file() {
|
|
53
|
+
return this.getField(10);
|
|
54
|
+
}
|
|
55
|
+
get wet() {
|
|
56
|
+
return this.getField(11);
|
|
57
|
+
}
|
|
58
|
+
get dry() {
|
|
59
|
+
return this.getField(12);
|
|
60
|
+
}
|
|
61
|
+
get preDelay() {
|
|
62
|
+
return this.getField(13);
|
|
63
|
+
}
|
|
64
|
+
get normalize() {
|
|
65
|
+
return this.getField(14);
|
|
66
|
+
}
|
|
67
|
+
get reverse() {
|
|
68
|
+
return this.getField(15);
|
|
69
|
+
}
|
|
70
|
+
initializeFields() {
|
|
71
|
+
return {
|
|
72
|
+
1: PointerField.create({
|
|
73
|
+
parent: this,
|
|
74
|
+
fieldKey: 1,
|
|
75
|
+
fieldName: "host",
|
|
76
|
+
deprecated: false,
|
|
77
|
+
pointerRules: NoPointers,
|
|
78
|
+
}, Pointers.AudioEffectHost, true),
|
|
79
|
+
2: Int32Field.create({
|
|
80
|
+
parent: this,
|
|
81
|
+
fieldKey: 2,
|
|
82
|
+
fieldName: "index",
|
|
83
|
+
deprecated: false,
|
|
84
|
+
pointerRules: NoPointers,
|
|
85
|
+
}, "index", ""),
|
|
86
|
+
3: StringField.create({
|
|
87
|
+
parent: this,
|
|
88
|
+
fieldKey: 3,
|
|
89
|
+
fieldName: "label",
|
|
90
|
+
deprecated: false,
|
|
91
|
+
pointerRules: NoPointers,
|
|
92
|
+
}),
|
|
93
|
+
4: BooleanField.create({
|
|
94
|
+
parent: this,
|
|
95
|
+
fieldKey: 4,
|
|
96
|
+
fieldName: "enabled",
|
|
97
|
+
deprecated: false,
|
|
98
|
+
pointerRules: NoPointers,
|
|
99
|
+
}, true),
|
|
100
|
+
5: BooleanField.create({
|
|
101
|
+
parent: this,
|
|
102
|
+
fieldKey: 5,
|
|
103
|
+
fieldName: "minimized",
|
|
104
|
+
deprecated: false,
|
|
105
|
+
pointerRules: NoPointers,
|
|
106
|
+
}, false),
|
|
107
|
+
10: PointerField.create({
|
|
108
|
+
parent: this,
|
|
109
|
+
fieldKey: 10,
|
|
110
|
+
fieldName: "file",
|
|
111
|
+
deprecated: false,
|
|
112
|
+
pointerRules: NoPointers,
|
|
113
|
+
}, Pointers.AudioFile, false),
|
|
114
|
+
11: Float32Field.create({
|
|
115
|
+
parent: this,
|
|
116
|
+
fieldKey: 11,
|
|
117
|
+
fieldName: "wet",
|
|
118
|
+
deprecated: false,
|
|
119
|
+
pointerRules: {
|
|
120
|
+
accepts: [
|
|
121
|
+
Pointers.Modulation,
|
|
122
|
+
Pointers.Automation,
|
|
123
|
+
Pointers.MIDIControl,
|
|
124
|
+
],
|
|
125
|
+
mandatory: false,
|
|
126
|
+
exclusive: false,
|
|
127
|
+
},
|
|
128
|
+
}, "decibel", "dB", -3),
|
|
129
|
+
12: Float32Field.create({
|
|
130
|
+
parent: this,
|
|
131
|
+
fieldKey: 12,
|
|
132
|
+
fieldName: "dry",
|
|
133
|
+
deprecated: false,
|
|
134
|
+
pointerRules: {
|
|
135
|
+
accepts: [
|
|
136
|
+
Pointers.Modulation,
|
|
137
|
+
Pointers.Automation,
|
|
138
|
+
Pointers.MIDIControl,
|
|
139
|
+
],
|
|
140
|
+
mandatory: false,
|
|
141
|
+
exclusive: false,
|
|
142
|
+
},
|
|
143
|
+
}, "decibel", "dB", 0),
|
|
144
|
+
13: Float32Field.create({
|
|
145
|
+
parent: this,
|
|
146
|
+
fieldKey: 13,
|
|
147
|
+
fieldName: "preDelay",
|
|
148
|
+
deprecated: false,
|
|
149
|
+
pointerRules: {
|
|
150
|
+
accepts: [
|
|
151
|
+
Pointers.Modulation,
|
|
152
|
+
Pointers.Automation,
|
|
153
|
+
Pointers.MIDIControl,
|
|
154
|
+
],
|
|
155
|
+
mandatory: false,
|
|
156
|
+
exclusive: false,
|
|
157
|
+
},
|
|
158
|
+
}, { min: 0, max: 0.5, scaling: "linear" }, "s", 0),
|
|
159
|
+
14: BooleanField.create({
|
|
160
|
+
parent: this,
|
|
161
|
+
fieldKey: 14,
|
|
162
|
+
fieldName: "normalize",
|
|
163
|
+
deprecated: false,
|
|
164
|
+
pointerRules: NoPointers,
|
|
165
|
+
}, true),
|
|
166
|
+
15: BooleanField.create({
|
|
167
|
+
parent: this,
|
|
168
|
+
fieldKey: 15,
|
|
169
|
+
fieldName: "reverse",
|
|
170
|
+
deprecated: false,
|
|
171
|
+
pointerRules: NoPointers,
|
|
172
|
+
}),
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
}
|
|
@@ -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(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AM,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,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: 10, 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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AAI,WAAW,IAAI,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,CAEjD;IAED,IAAI,KAAK,IAAI,WAAW,CAEvB;IAED,IAAI,OAAO,IAAI,YAAY,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
|