@opendaw/studio-boxes 0.0.99 → 0.0.101

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,36 @@
1
+ import { Maybe, Optional, UUID, Procedure } from "@opendaw/lib-std";
2
+ import { Box, BoxGraph, ResourceType, PointerField, Int32Field, StringField, BooleanField, Field, Float32Field } from "@opendaw/lib-box";
3
+ import { BoxVisitor } from ".";
4
+ import { Pointers } from "@opendaw/studio-enums";
5
+ export type AudioEffectCompositeBoxFields = {
6
+ 1: PointerField<Pointers.AudioEffectHost>;
7
+ 2: Int32Field;
8
+ 3: StringField;
9
+ 4: BooleanField;
10
+ 5: BooleanField;
11
+ 10: Field<Pointers.AudioEffectCompositeCell>;
12
+ 11: Field<Pointers.SideChain>;
13
+ 12: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
14
+ 13: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
15
+ };
16
+ export declare class AudioEffectCompositeBox extends Box<Pointers.Device | Pointers.Selection | Pointers.MetaData | Pointers.SideChain, AudioEffectCompositeBoxFields> {
17
+ static create(graph: BoxGraph, uuid: UUID.Bytes, constructor?: Procedure<AudioEffectCompositeBox>): AudioEffectCompositeBox;
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 host(): PointerField<Pointers.AudioEffectHost>;
26
+ get index(): Int32Field;
27
+ get label(): StringField;
28
+ get enabled(): BooleanField;
29
+ get minimized(): BooleanField;
30
+ get entries(): Field<Pointers.AudioEffectCompositeCell>;
31
+ get input(): Field<Pointers.SideChain>;
32
+ get dry(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
33
+ get wet(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
34
+ initializeFields(): AudioEffectCompositeBoxFields;
35
+ }
36
+ //# sourceMappingURL=AudioEffectCompositeBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AudioEffectCompositeBox.d.ts","sourceRoot":"","sources":["../src/AudioEffectCompositeBox.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,KAAK,EACL,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,6BAA6B,GAAG;IAC1C,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,EAAgB,KAAK,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;IAC3D,EAAE,EAAc,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC1C,EAAE,EAAuB,YAAY,CACnC,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;CACH,CAAC;AAEF,qBAAa,uBAAwB,SAAQ,GAAG,CAC9C,QAAQ,CAAC,MAAM,GAAG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WAAW,CACjE,CAEA;IAED,IAAI,GAAG,IAAI,YAAY,CACrB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAEA;IAED,gBAAgB,IAAI,6BAA6B;CAmHlD"}
@@ -0,0 +1,155 @@
1
+ import { safeExecute, } from "@opendaw/lib-std";
2
+ import { Box, NoPointers, PointerField, Int32Field, StringField, BooleanField, Field, Float32Field, } from "@opendaw/lib-box";
3
+ import { Pointers } from "@opendaw/studio-enums";
4
+ export class AudioEffectCompositeBox extends Box {
5
+ static create(graph, uuid, constructor) {
6
+ return graph.stageBox(new AudioEffectCompositeBox({
7
+ uuid,
8
+ graph,
9
+ name: "AudioEffectCompositeBox",
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 = "AudioEffectCompositeBox";
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.visitAudioEffectCompositeBox, this);
33
+ }
34
+ get tags() {
35
+ return AudioEffectCompositeBox.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 entries() {
53
+ return this.getField(10);
54
+ }
55
+ get input() {
56
+ return this.getField(11);
57
+ }
58
+ get dry() {
59
+ return this.getField(12);
60
+ }
61
+ get wet() {
62
+ return this.getField(13);
63
+ }
64
+ initializeFields() {
65
+ return {
66
+ 1: PointerField.create({
67
+ parent: this,
68
+ fieldKey: 1,
69
+ fieldName: "host",
70
+ deprecated: false,
71
+ pointerRules: NoPointers,
72
+ }, Pointers.AudioEffectHost, true),
73
+ 2: Int32Field.create({
74
+ parent: this,
75
+ fieldKey: 2,
76
+ fieldName: "index",
77
+ deprecated: false,
78
+ pointerRules: NoPointers,
79
+ }, "index", ""),
80
+ 3: StringField.create({
81
+ parent: this,
82
+ fieldKey: 3,
83
+ fieldName: "label",
84
+ deprecated: false,
85
+ pointerRules: NoPointers,
86
+ }),
87
+ 4: BooleanField.create({
88
+ parent: this,
89
+ fieldKey: 4,
90
+ fieldName: "enabled",
91
+ deprecated: false,
92
+ pointerRules: NoPointers,
93
+ }, true),
94
+ 5: BooleanField.create({
95
+ parent: this,
96
+ fieldKey: 5,
97
+ fieldName: "minimized",
98
+ deprecated: false,
99
+ pointerRules: NoPointers,
100
+ }, false),
101
+ 10: Field.hook({
102
+ parent: this,
103
+ fieldKey: 10,
104
+ fieldName: "entries",
105
+ deprecated: false,
106
+ pointerRules: {
107
+ accepts: [Pointers.AudioEffectCompositeCell],
108
+ mandatory: false,
109
+ exclusive: false,
110
+ },
111
+ }),
112
+ 11: Field.hook({
113
+ parent: this,
114
+ fieldKey: 11,
115
+ fieldName: "input",
116
+ deprecated: false,
117
+ pointerRules: {
118
+ accepts: [Pointers.SideChain],
119
+ mandatory: false,
120
+ exclusive: false,
121
+ },
122
+ }),
123
+ 12: Float32Field.create({
124
+ parent: this,
125
+ fieldKey: 12,
126
+ fieldName: "dry",
127
+ deprecated: false,
128
+ pointerRules: {
129
+ accepts: [
130
+ Pointers.Modulation,
131
+ Pointers.Automation,
132
+ Pointers.MIDIControl,
133
+ ],
134
+ mandatory: false,
135
+ exclusive: false,
136
+ },
137
+ }, "decibel", "dB", -Infinity),
138
+ 13: Float32Field.create({
139
+ parent: this,
140
+ fieldKey: 13,
141
+ fieldName: "wet",
142
+ deprecated: false,
143
+ pointerRules: {
144
+ accepts: [
145
+ Pointers.Modulation,
146
+ Pointers.Automation,
147
+ Pointers.MIDIControl,
148
+ ],
149
+ mandatory: false,
150
+ exclusive: false,
151
+ },
152
+ }, "decibel", "dB", 0),
153
+ };
154
+ }
155
+ }
@@ -0,0 +1,36 @@
1
+ import { Maybe, Optional, UUID, Procedure } from "@opendaw/lib-std";
2
+ import { Box, BoxGraph, ResourceType, PointerField, Field, Int32Field, StringField, BooleanField, Float32Field } from "@opendaw/lib-box";
3
+ import { BoxVisitor } from ".";
4
+ import { Pointers } from "@opendaw/studio-enums";
5
+ export type AudioEffectCompositeCellBoxFields = {
6
+ 1: PointerField<Pointers.AudioEffectCompositeCell>;
7
+ 2: Field<Pointers.AudioEffectHost>;
8
+ 3: Int32Field;
9
+ 4: StringField;
10
+ 5: BooleanField;
11
+ 40: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
12
+ 41: BooleanField<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
13
+ 42: BooleanField<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
14
+ 43: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
15
+ };
16
+ export declare class AudioEffectCompositeCellBox extends Box<Pointers.Editing | Pointers.Selection, AudioEffectCompositeCellBoxFields> {
17
+ static create(graph: BoxGraph, uuid: UUID.Bytes, constructor?: Procedure<AudioEffectCompositeCellBox>): AudioEffectCompositeCellBox;
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 composite(): PointerField<Pointers.AudioEffectCompositeCell>;
26
+ get audioEffects(): Field<Pointers.AudioEffectHost>;
27
+ get index(): Int32Field;
28
+ get label(): StringField;
29
+ get minimized(): BooleanField;
30
+ get gain(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
31
+ get mute(): BooleanField<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
32
+ get solo(): BooleanField<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
33
+ get pan(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
34
+ initializeFields(): AudioEffectCompositeCellBoxFields;
35
+ }
36
+ //# sourceMappingURL=AudioEffectCompositeCellBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AudioEffectCompositeCellBox.d.ts","sourceRoot":"","sources":["../src/AudioEffectCompositeCellBox.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,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,iCAAiC,GAAG;IAC9C,CAAC,EAAkB,YAAY,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;IACnE,CAAC,EAAqB,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;IACtD,CAAC,EAAc,UAAU,CAAC;IAC1B,CAAC,EAAc,WAAW,CAAC;IAC3B,CAAC,EAAyB,YAAY,CAAC;IACvC,EAAE,EAAgB,YAAY,CAC5B,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAAC;IACF,EAAE,EAAa,YAAY,CACzB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,C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,CAEvB;IAED,IAAI,SAAS,IAAI,YAAY,CAE5B;IAED,IAAI,IAAI,IAAI,YAAY,CACtB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAEA;IAED,IAAI,IAAI,IAAI,YAAY,CACtB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAEA;IAED,IAAI,IAAI,IAAI,YAAY,CACtB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,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,gBAAgB,IAAI,iCAAiC;CA2HtD"}
@@ -0,0 +1,162 @@
1
+ import { safeExecute, } from "@opendaw/lib-std";
2
+ import { Box, NoPointers, PointerField, Field, Int32Field, StringField, BooleanField, Float32Field, } from "@opendaw/lib-box";
3
+ import { Pointers } from "@opendaw/studio-enums";
4
+ export class AudioEffectCompositeCellBox extends Box {
5
+ static create(graph, uuid, constructor) {
6
+ return graph.stageBox(new AudioEffectCompositeCellBox({
7
+ uuid,
8
+ graph,
9
+ name: "AudioEffectCompositeCellBox",
10
+ pointerRules: {
11
+ accepts: [Pointers.Editing, Pointers.Selection],
12
+ mandatory: false,
13
+ exclusive: false,
14
+ },
15
+ resource: undefined,
16
+ ephemeral: false,
17
+ }), constructor);
18
+ }
19
+ static ClassName = "AudioEffectCompositeCellBox";
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.visitAudioEffectCompositeCellBox, this);
28
+ }
29
+ get tags() {
30
+ return AudioEffectCompositeCellBox.Tags;
31
+ }
32
+ get composite() {
33
+ return this.getField(1);
34
+ }
35
+ get audioEffects() {
36
+ return this.getField(2);
37
+ }
38
+ get index() {
39
+ return this.getField(3);
40
+ }
41
+ get label() {
42
+ return this.getField(4);
43
+ }
44
+ get minimized() {
45
+ return this.getField(5);
46
+ }
47
+ get gain() {
48
+ return this.getField(40);
49
+ }
50
+ get mute() {
51
+ return this.getField(41);
52
+ }
53
+ get solo() {
54
+ return this.getField(42);
55
+ }
56
+ get pan() {
57
+ return this.getField(43);
58
+ }
59
+ initializeFields() {
60
+ return {
61
+ 1: PointerField.create({
62
+ parent: this,
63
+ fieldKey: 1,
64
+ fieldName: "composite",
65
+ deprecated: false,
66
+ pointerRules: NoPointers,
67
+ }, Pointers.AudioEffectCompositeCell, true),
68
+ 2: Field.hook({
69
+ parent: this,
70
+ fieldKey: 2,
71
+ fieldName: "audioEffects",
72
+ deprecated: false,
73
+ pointerRules: {
74
+ accepts: [Pointers.AudioEffectHost],
75
+ mandatory: false,
76
+ exclusive: false,
77
+ },
78
+ }),
79
+ 3: Int32Field.create({
80
+ parent: this,
81
+ fieldKey: 3,
82
+ fieldName: "index",
83
+ deprecated: false,
84
+ pointerRules: NoPointers,
85
+ }, "index", ""),
86
+ 4: StringField.create({
87
+ parent: this,
88
+ fieldKey: 4,
89
+ fieldName: "label",
90
+ deprecated: false,
91
+ pointerRules: NoPointers,
92
+ }),
93
+ 5: BooleanField.create({
94
+ parent: this,
95
+ fieldKey: 5,
96
+ fieldName: "minimized",
97
+ deprecated: false,
98
+ pointerRules: NoPointers,
99
+ }, false),
100
+ 40: Float32Field.create({
101
+ parent: this,
102
+ fieldKey: 40,
103
+ fieldName: "gain",
104
+ deprecated: false,
105
+ pointerRules: {
106
+ accepts: [
107
+ Pointers.Modulation,
108
+ Pointers.Automation,
109
+ Pointers.MIDIControl,
110
+ ],
111
+ mandatory: false,
112
+ exclusive: false,
113
+ },
114
+ }, "decibel", "dB", 0),
115
+ 41: BooleanField.create({
116
+ parent: this,
117
+ fieldKey: 41,
118
+ fieldName: "mute",
119
+ deprecated: false,
120
+ pointerRules: {
121
+ accepts: [
122
+ Pointers.Modulation,
123
+ Pointers.Automation,
124
+ Pointers.MIDIControl,
125
+ ],
126
+ mandatory: false,
127
+ exclusive: false,
128
+ },
129
+ }),
130
+ 42: BooleanField.create({
131
+ parent: this,
132
+ fieldKey: 42,
133
+ fieldName: "solo",
134
+ deprecated: false,
135
+ pointerRules: {
136
+ accepts: [
137
+ Pointers.Modulation,
138
+ Pointers.Automation,
139
+ Pointers.MIDIControl,
140
+ ],
141
+ mandatory: false,
142
+ exclusive: false,
143
+ },
144
+ }),
145
+ 43: Float32Field.create({
146
+ parent: this,
147
+ fieldKey: 43,
148
+ fieldName: "pan",
149
+ deprecated: false,
150
+ pointerRules: {
151
+ accepts: [
152
+ Pointers.Modulation,
153
+ Pointers.Automation,
154
+ Pointers.MIDIControl,
155
+ ],
156
+ mandatory: false,
157
+ exclusive: false,
158
+ },
159
+ }, "bipolar", ""),
160
+ };
161
+ }
162
+ }
@@ -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 AutotuneDeviceBoxFields = {
6
+ 1: PointerField<Pointers.AudioEffectHost>;
7
+ 2: Int32Field;
8
+ 3: StringField;
9
+ 4: BooleanField;
10
+ 5: BooleanField;
11
+ 10: Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
12
+ 11: Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
13
+ 12: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
14
+ 13: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
15
+ 14: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
16
+ 15: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
17
+ };
18
+ export declare class AutotuneDeviceBox extends Box<Pointers.Device | Pointers.Selection | Pointers.MetaData | Pointers.SideChain, AutotuneDeviceBoxFields> {
19
+ static create(graph: BoxGraph, uuid: UUID.Bytes, constructor?: Procedure<AutotuneDeviceBox>): AutotuneDeviceBox;
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 key(): Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
33
+ get scale(): Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
34
+ get amount(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
35
+ get retune(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
36
+ get shift(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
37
+ get smooth(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MIDIControl>;
38
+ initializeFields(): AutotuneDeviceBoxFields;
39
+ }
40
+ //# sourceMappingURL=AutotuneDeviceBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutotuneDeviceBox.d.ts","sourceRoot":"","sources":["../src/AutotuneDeviceBox.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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E,CAEA;IAED,IAAI,MAAM,IAAI,YAAY,CACxB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAEA;IAED,IAAI,KAAK,IAAI,YAAY,CACvB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAEA;IAED,IAAI,MAAM,IAAI,YAAY,CACxB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAEA;IAED,gBAAgB,IAAI,uBAAuB;CA6K5C"}
@@ -0,0 +1,199 @@
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 AutotuneDeviceBox extends Box {
5
+ static create(graph, uuid, constructor) {
6
+ return graph.stageBox(new AutotuneDeviceBox({
7
+ uuid,
8
+ graph,
9
+ name: "AutotuneDeviceBox",
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 = "AutotuneDeviceBox";
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.visitAutotuneDeviceBox, this);
33
+ }
34
+ get tags() {
35
+ return AutotuneDeviceBox.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 key() {
53
+ return this.getField(10);
54
+ }
55
+ get scale() {
56
+ return this.getField(11);
57
+ }
58
+ get amount() {
59
+ return this.getField(12);
60
+ }
61
+ get retune() {
62
+ return this.getField(13);
63
+ }
64
+ get shift() {
65
+ return this.getField(14);
66
+ }
67
+ get smooth() {
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: Int32Field.create({
108
+ parent: this,
109
+ fieldKey: 10,
110
+ fieldName: "key",
111
+ deprecated: false,
112
+ pointerRules: {
113
+ accepts: [
114
+ Pointers.Modulation,
115
+ Pointers.Automation,
116
+ Pointers.MIDIControl,
117
+ ],
118
+ mandatory: false,
119
+ exclusive: false,
120
+ },
121
+ }, { min: 0, max: 11 }, "", 0),
122
+ 11: Int32Field.create({
123
+ parent: this,
124
+ fieldKey: 11,
125
+ fieldName: "scale",
126
+ deprecated: false,
127
+ pointerRules: {
128
+ accepts: [
129
+ Pointers.Modulation,
130
+ Pointers.Automation,
131
+ Pointers.MIDIControl,
132
+ ],
133
+ mandatory: false,
134
+ exclusive: false,
135
+ },
136
+ }, { min: 0, max: 7 }, "", 1),
137
+ 12: Float32Field.create({
138
+ parent: this,
139
+ fieldKey: 12,
140
+ fieldName: "amount",
141
+ deprecated: false,
142
+ pointerRules: {
143
+ accepts: [
144
+ Pointers.Modulation,
145
+ Pointers.Automation,
146
+ Pointers.MIDIControl,
147
+ ],
148
+ mandatory: false,
149
+ exclusive: false,
150
+ },
151
+ }, "unipolar", "%", 1),
152
+ 13: Float32Field.create({
153
+ parent: this,
154
+ fieldKey: 13,
155
+ fieldName: "retune",
156
+ deprecated: false,
157
+ pointerRules: {
158
+ accepts: [
159
+ Pointers.Modulation,
160
+ Pointers.Automation,
161
+ Pointers.MIDIControl,
162
+ ],
163
+ mandatory: false,
164
+ exclusive: false,
165
+ },
166
+ }, "unipolar", "%", 0.5),
167
+ 14: Float32Field.create({
168
+ parent: this,
169
+ fieldKey: 14,
170
+ fieldName: "shift",
171
+ deprecated: false,
172
+ pointerRules: {
173
+ accepts: [
174
+ Pointers.Modulation,
175
+ Pointers.Automation,
176
+ Pointers.MIDIControl,
177
+ ],
178
+ mandatory: false,
179
+ exclusive: false,
180
+ },
181
+ }, { min: -12, max: 12, scaling: "linear" }, "st", 0),
182
+ 15: Float32Field.create({
183
+ parent: this,
184
+ fieldKey: 15,
185
+ fieldName: "smooth",
186
+ deprecated: false,
187
+ pointerRules: {
188
+ accepts: [
189
+ Pointers.Modulation,
190
+ Pointers.Automation,
191
+ Pointers.MIDIControl,
192
+ ],
193
+ mandatory: false,
194
+ exclusive: false,
195
+ },
196
+ }, "unipolar", "%", 0.6),
197
+ };
198
+ }
199
+ }