@opendaw/studio-boxes 0.0.6
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/README.md +1 -0
- package/dist/ArpeggioDeviceBox.d.ts +35 -0
- package/dist/ArpeggioDeviceBox.d.ts.map +1 -0
- package/dist/ArpeggioDeviceBox.js +167 -0
- package/dist/AudioBusBox.d.ts +29 -0
- package/dist/AudioBusBox.d.ts.map +1 -0
- package/dist/AudioBusBox.js +95 -0
- package/dist/AudioClipBox.d.ts +32 -0
- package/dist/AudioClipBox.d.ts.map +1 -0
- package/dist/AudioClipBox.js +108 -0
- package/dist/AudioFileBox.d.ts +19 -0
- package/dist/AudioFileBox.d.ts.map +1 -0
- package/dist/AudioFileBox.js +50 -0
- package/dist/AudioRegionBox.d.ts +33 -0
- package/dist/AudioRegionBox.d.ts.map +1 -0
- package/dist/AudioRegionBox.js +116 -0
- package/dist/AudioUnitBox.d.ts +41 -0
- package/dist/AudioUnitBox.d.ts.map +1 -0
- package/dist/AudioUnitBox.js +183 -0
- package/dist/AuxSendBox.d.ts +25 -0
- package/dist/AuxSendBox.d.ts.map +1 -0
- package/dist/AuxSendBox.js +91 -0
- package/dist/ClashPattern.d.ts +17 -0
- package/dist/ClashPattern.d.ts.map +1 -0
- package/dist/ClashPattern.js +42 -0
- package/dist/ClashStep.d.ts +13 -0
- package/dist/ClashStep.d.ts.map +1 -0
- package/dist/ClashStep.js +24 -0
- package/dist/ClipPlaybackFields.d.ts +22 -0
- package/dist/ClipPlaybackFields.d.ts.map +1 -0
- package/dist/ClipPlaybackFields.js +68 -0
- package/dist/DelayDeviceBox.d.ts +35 -0
- package/dist/DelayDeviceBox.d.ts.map +1 -0
- package/dist/DelayDeviceBox.js +167 -0
- package/dist/DeviceClashBox.d.ts +38 -0
- package/dist/DeviceClashBox.d.ts.map +1 -0
- package/dist/DeviceClashBox.js +177 -0
- package/dist/DeviceInterfaceKnobBox.d.ts +23 -0
- package/dist/DeviceInterfaceKnobBox.d.ts.map +1 -0
- package/dist/DeviceInterfaceKnobBox.js +68 -0
- package/dist/DeviceUserInterface.d.ts +13 -0
- package/dist/DeviceUserInterface.d.ts.map +1 -0
- package/dist/DeviceUserInterface.js +27 -0
- package/dist/GrooveShuffleBox.d.ts +19 -0
- package/dist/GrooveShuffleBox.d.ts.map +1 -0
- package/dist/GrooveShuffleBox.js +64 -0
- package/dist/LoopArea.d.ts +16 -0
- package/dist/LoopArea.d.ts.map +1 -0
- package/dist/LoopArea.js +41 -0
- package/dist/MarkerBox.d.ts +23 -0
- package/dist/MarkerBox.d.ts.map +1 -0
- package/dist/MarkerBox.js +68 -0
- package/dist/MarkerTrack.d.ts +17 -0
- package/dist/MarkerTrack.d.ts.map +1 -0
- package/dist/MarkerTrack.js +42 -0
- package/dist/ModularAudioInputBox.d.ts +18 -0
- package/dist/ModularAudioInputBox.d.ts.map +1 -0
- package/dist/ModularAudioInputBox.js +45 -0
- package/dist/ModularAudioOutputBox.d.ts +18 -0
- package/dist/ModularAudioOutputBox.d.ts.map +1 -0
- package/dist/ModularAudioOutputBox.js +45 -0
- package/dist/ModularBox.d.ts +25 -0
- package/dist/ModularBox.d.ts.map +1 -0
- package/dist/ModularBox.js +83 -0
- package/dist/ModularDeviceBox.d.ts +28 -0
- package/dist/ModularDeviceBox.d.ts.map +1 -0
- package/dist/ModularDeviceBox.js +90 -0
- package/dist/ModuleAttributes.d.ts +23 -0
- package/dist/ModuleAttributes.d.ts.map +1 -0
- package/dist/ModuleAttributes.js +69 -0
- package/dist/ModuleConnectionBox.d.ts +19 -0
- package/dist/ModuleConnectionBox.d.ts.map +1 -0
- package/dist/ModuleConnectionBox.js +50 -0
- package/dist/ModuleDelayBox.d.ts +22 -0
- package/dist/ModuleDelayBox.d.ts.map +1 -0
- package/dist/ModuleDelayBox.js +69 -0
- package/dist/ModuleGainBox.d.ts +22 -0
- package/dist/ModuleGainBox.d.ts.map +1 -0
- package/dist/ModuleGainBox.js +69 -0
- package/dist/ModuleMultiplierBox.d.ts +24 -0
- package/dist/ModuleMultiplierBox.d.ts.map +1 -0
- package/dist/ModuleMultiplierBox.js +78 -0
- package/dist/NanoDeviceBox.d.ts +29 -0
- package/dist/NanoDeviceBox.d.ts.map +1 -0
- package/dist/NanoDeviceBox.js +112 -0
- package/dist/NoteClipBox.d.ts +30 -0
- package/dist/NoteClipBox.d.ts.map +1 -0
- package/dist/NoteClipBox.js +99 -0
- package/dist/NoteEventBox.d.ts +31 -0
- package/dist/NoteEventBox.d.ts.map +1 -0
- package/dist/NoteEventBox.js +107 -0
- package/dist/NoteEventCollectionBox.d.ts +17 -0
- package/dist/NoteEventCollectionBox.d.ts.map +1 -0
- package/dist/NoteEventCollectionBox.js +44 -0
- package/dist/NoteEventRepeatBox.d.ts +21 -0
- package/dist/NoteEventRepeatBox.d.ts.map +1 -0
- package/dist/NoteEventRepeatBox.js +59 -0
- package/dist/NoteRegionBox.d.ts +33 -0
- package/dist/NoteRegionBox.d.ts.map +1 -0
- package/dist/NoteRegionBox.js +116 -0
- package/dist/PianoMode.d.ts +20 -0
- package/dist/PianoMode.d.ts.map +1 -0
- package/dist/PianoMode.js +59 -0
- package/dist/PitchDeviceBox.d.ts +29 -0
- package/dist/PitchDeviceBox.d.ts.map +1 -0
- package/dist/PitchDeviceBox.js +119 -0
- package/dist/PlayfieldDeviceBox.d.ts +25 -0
- package/dist/PlayfieldDeviceBox.d.ts.map +1 -0
- package/dist/PlayfieldDeviceBox.js +80 -0
- package/dist/PlayfieldSampleBox.d.ts +51 -0
- package/dist/PlayfieldSampleBox.d.ts.map +1 -0
- package/dist/PlayfieldSampleBox.js +229 -0
- package/dist/RevampBell.d.ts +19 -0
- package/dist/RevampBell.d.ts.map +1 -0
- package/dist/RevampBell.js +79 -0
- package/dist/RevampDeviceBox.d.ts +42 -0
- package/dist/RevampDeviceBox.d.ts.map +1 -0
- package/dist/RevampDeviceBox.js +153 -0
- package/dist/RevampPass.d.ts +19 -0
- package/dist/RevampPass.d.ts.map +1 -0
- package/dist/RevampPass.js +79 -0
- package/dist/RevampShelf.d.ts +17 -0
- package/dist/RevampShelf.d.ts.map +1 -0
- package/dist/RevampShelf.js +63 -0
- package/dist/ReverbDeviceBox.d.ts +35 -0
- package/dist/ReverbDeviceBox.d.ts.map +1 -0
- package/dist/ReverbDeviceBox.js +167 -0
- package/dist/RootBox.d.ts +34 -0
- package/dist/RootBox.d.ts.map +1 -0
- package/dist/RootBox.js +109 -0
- package/dist/SelectionBox.d.ts +17 -0
- package/dist/SelectionBox.d.ts.map +1 -0
- package/dist/SelectionBox.js +41 -0
- package/dist/Signature.d.ts +14 -0
- package/dist/Signature.d.ts.map +1 -0
- package/dist/Signature.js +32 -0
- package/dist/StepAutomationBox.d.ts +19 -0
- package/dist/StepAutomationBox.d.ts.map +1 -0
- package/dist/StepAutomationBox.js +50 -0
- package/dist/StereoToolDeviceBox.d.ts +37 -0
- package/dist/StereoToolDeviceBox.d.ts.map +1 -0
- package/dist/StereoToolDeviceBox.js +176 -0
- package/dist/TapeDeviceBox.d.ts +31 -0
- package/dist/TapeDeviceBox.d.ts.map +1 -0
- package/dist/TapeDeviceBox.js +135 -0
- package/dist/TimelineBox.d.ts +30 -0
- package/dist/TimelineBox.d.ts.map +1 -0
- package/dist/TimelineBox.js +89 -0
- package/dist/TrackBox.d.ts +29 -0
- package/dist/TrackBox.d.ts.map +1 -0
- package/dist/TrackBox.js +101 -0
- package/dist/UserInterfaceBox.d.ts +23 -0
- package/dist/UserInterfaceBox.d.ts.map +1 -0
- package/dist/UserInterfaceBox.js +68 -0
- package/dist/ValueClipBox.d.ts +30 -0
- package/dist/ValueClipBox.d.ts.map +1 -0
- package/dist/ValueClipBox.js +99 -0
- package/dist/ValueEventBox.d.ts +25 -0
- package/dist/ValueEventBox.d.ts.map +1 -0
- package/dist/ValueEventBox.js +80 -0
- package/dist/ValueEventCollectionBox.d.ts +17 -0
- package/dist/ValueEventCollectionBox.d.ts.map +1 -0
- package/dist/ValueEventCollectionBox.js +44 -0
- package/dist/ValueEventCurveBox.d.ts +17 -0
- package/dist/ValueEventCurveBox.d.ts.map +1 -0
- package/dist/ValueEventCurveBox.js +41 -0
- package/dist/ValueRegionBox.d.ts +31 -0
- package/dist/ValueRegionBox.d.ts.map +1 -0
- package/dist/ValueRegionBox.js +107 -0
- package/dist/VaporisateurDeviceBox.d.ts +41 -0
- package/dist/VaporisateurDeviceBox.d.ts.map +1 -0
- package/dist/VaporisateurDeviceBox.js +215 -0
- package/dist/ZeitgeistDeviceBox.d.ts +25 -0
- package/dist/ZeitgeistDeviceBox.d.ts.map +1 -0
- package/dist/ZeitgeistDeviceBox.js +80 -0
- package/dist/index.d.ts +107 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +115 -0
- package/dist/io.d.ts +56 -0
- package/dist/io.d.ts.map +1 -0
- package/dist/io.js +120 -0
- package/dist/visitor.d.ts +51 -0
- package/dist/visitor.d.ts.map +1 -0
- package/dist/visitor.js +1 -0
- package/package.json +35 -0
@@ -0,0 +1,116 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, PointerField, Int32Field, BooleanField, StringField, Float32Field, } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class AudioRegionBox extends Box {
|
5
|
+
static create(graph, uuid, constructor) {
|
6
|
+
return graph.stageBox(new AudioRegionBox({
|
7
|
+
uuid,
|
8
|
+
graph,
|
9
|
+
name: "AudioRegionBox",
|
10
|
+
pointerRules: {
|
11
|
+
accepts: [Pointers.Selection, Pointers.Editing],
|
12
|
+
mandatory: false,
|
13
|
+
},
|
14
|
+
}), constructor);
|
15
|
+
}
|
16
|
+
constructor(construct) {
|
17
|
+
super(construct);
|
18
|
+
}
|
19
|
+
accept(visitor) {
|
20
|
+
return safeExecute(visitor.visitAudioRegionBox, this);
|
21
|
+
}
|
22
|
+
get regions() {
|
23
|
+
return this.getField(1);
|
24
|
+
}
|
25
|
+
get file() {
|
26
|
+
return this.getField(2);
|
27
|
+
}
|
28
|
+
get position() {
|
29
|
+
return this.getField(10);
|
30
|
+
}
|
31
|
+
get duration() {
|
32
|
+
return this.getField(11);
|
33
|
+
}
|
34
|
+
get loopOffset() {
|
35
|
+
return this.getField(12);
|
36
|
+
}
|
37
|
+
get loopDuration() {
|
38
|
+
return this.getField(13);
|
39
|
+
}
|
40
|
+
get mute() {
|
41
|
+
return this.getField(14);
|
42
|
+
}
|
43
|
+
get label() {
|
44
|
+
return this.getField(15);
|
45
|
+
}
|
46
|
+
get hue() {
|
47
|
+
return this.getField(16);
|
48
|
+
}
|
49
|
+
get gain() {
|
50
|
+
return this.getField(17);
|
51
|
+
}
|
52
|
+
initializeFields() {
|
53
|
+
return {
|
54
|
+
1: PointerField.create({
|
55
|
+
parent: this,
|
56
|
+
fieldKey: 1,
|
57
|
+
fieldName: "regions",
|
58
|
+
pointerRules: NoPointers,
|
59
|
+
}, Pointers.RegionCollection, true),
|
60
|
+
2: PointerField.create({
|
61
|
+
parent: this,
|
62
|
+
fieldKey: 2,
|
63
|
+
fieldName: "file",
|
64
|
+
pointerRules: NoPointers,
|
65
|
+
}, Pointers.AudioFile, true),
|
66
|
+
10: Int32Field.create({
|
67
|
+
parent: this,
|
68
|
+
fieldKey: 10,
|
69
|
+
fieldName: "position",
|
70
|
+
pointerRules: NoPointers,
|
71
|
+
}),
|
72
|
+
11: Int32Field.create({
|
73
|
+
parent: this,
|
74
|
+
fieldKey: 11,
|
75
|
+
fieldName: "duration",
|
76
|
+
pointerRules: NoPointers,
|
77
|
+
}),
|
78
|
+
12: Int32Field.create({
|
79
|
+
parent: this,
|
80
|
+
fieldKey: 12,
|
81
|
+
fieldName: "loopOffset",
|
82
|
+
pointerRules: NoPointers,
|
83
|
+
}),
|
84
|
+
13: Int32Field.create({
|
85
|
+
parent: this,
|
86
|
+
fieldKey: 13,
|
87
|
+
fieldName: "loopDuration",
|
88
|
+
pointerRules: NoPointers,
|
89
|
+
}),
|
90
|
+
14: BooleanField.create({
|
91
|
+
parent: this,
|
92
|
+
fieldKey: 14,
|
93
|
+
fieldName: "mute",
|
94
|
+
pointerRules: NoPointers,
|
95
|
+
}),
|
96
|
+
15: StringField.create({
|
97
|
+
parent: this,
|
98
|
+
fieldKey: 15,
|
99
|
+
fieldName: "label",
|
100
|
+
pointerRules: NoPointers,
|
101
|
+
}),
|
102
|
+
16: Int32Field.create({
|
103
|
+
parent: this,
|
104
|
+
fieldKey: 16,
|
105
|
+
fieldName: "hue",
|
106
|
+
pointerRules: NoPointers,
|
107
|
+
}),
|
108
|
+
17: Float32Field.create({
|
109
|
+
parent: this,
|
110
|
+
fieldKey: 17,
|
111
|
+
fieldName: "gain",
|
112
|
+
pointerRules: NoPointers,
|
113
|
+
}),
|
114
|
+
};
|
115
|
+
}
|
116
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, StringField, PointerField, Field, Int32Field, Float32Field, BooleanField } from "@opendaw/lib-box";
|
3
|
+
import { BoxVisitor } from ".";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export type AudioUnitBoxFields = {
|
6
|
+
1: StringField;
|
7
|
+
2: PointerField<Pointers.AudioUnits>;
|
8
|
+
3: Field<Pointers.Editing>;
|
9
|
+
11: Int32Field;
|
10
|
+
12: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
11
|
+
13: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
12
|
+
14: BooleanField<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
13
|
+
15: BooleanField<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
14
|
+
20: Field<Pointers.TrackCollection>;
|
15
|
+
21: Field<Pointers.MidiEffectHost>;
|
16
|
+
22: Field<Pointers.InstrumentHost | Pointers.AudioOutput>;
|
17
|
+
23: Field<Pointers.AudioEffectHost>;
|
18
|
+
24: Field<Pointers.AuxSend>;
|
19
|
+
25: PointerField<Pointers.AudioOutput>;
|
20
|
+
};
|
21
|
+
export declare class AudioUnitBox extends Box<Pointers.Selection | Pointers.Automation, AudioUnitBoxFields> {
|
22
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<AudioUnitBox>): AudioUnitBox;
|
23
|
+
private constructor();
|
24
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
25
|
+
get type(): StringField;
|
26
|
+
get collection(): PointerField<Pointers.AudioUnits>;
|
27
|
+
get editing(): Field<Pointers.Editing>;
|
28
|
+
get index(): Int32Field;
|
29
|
+
get volume(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
30
|
+
get panning(): 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 tracks(): Field<Pointers.TrackCollection>;
|
34
|
+
get midiEffects(): Field<Pointers.MidiEffectHost>;
|
35
|
+
get input(): Field<Pointers.InstrumentHost | Pointers.AudioOutput>;
|
36
|
+
get audioEffects(): Field<Pointers.AudioEffectHost>;
|
37
|
+
get auxSends(): Field<Pointers.AuxSend>;
|
38
|
+
get output(): PointerField<Pointers.AudioOutput>;
|
39
|
+
initializeFields(): AudioUnitBoxFields;
|
40
|
+
}
|
41
|
+
//# sourceMappingURL=AudioUnitBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AudioUnitBox.d.ts","sourceRoot":"","sources":["../src/AudioUnitBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EACL,GAAG,EAEH,QAAQ,EAER,WAAW,EACX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AAC,cAAc,GAAG,QAAQ,CAAC,WAAW,CAAC,CAEjE;IAED,IAAI,YAAY,IAAI,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,CAElD;IAED,IAAI,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAEtC;IAED,IAAI,MAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAE/C;IAED,gBAAgB,IAAI,kBAAkB;CAkIvC"}
|
@@ -0,0 +1,183 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, StringField, PointerField, Field, Int32Field, Float32Field, BooleanField, } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class AudioUnitBox extends Box {
|
5
|
+
static create(graph, uuid, constructor) {
|
6
|
+
return graph.stageBox(new AudioUnitBox({
|
7
|
+
uuid,
|
8
|
+
graph,
|
9
|
+
name: "AudioUnitBox",
|
10
|
+
pointerRules: {
|
11
|
+
accepts: [Pointers.Selection, Pointers.Automation],
|
12
|
+
mandatory: false,
|
13
|
+
},
|
14
|
+
}), constructor);
|
15
|
+
}
|
16
|
+
constructor(construct) {
|
17
|
+
super(construct);
|
18
|
+
}
|
19
|
+
accept(visitor) {
|
20
|
+
return safeExecute(visitor.visitAudioUnitBox, this);
|
21
|
+
}
|
22
|
+
get type() {
|
23
|
+
return this.getField(1);
|
24
|
+
}
|
25
|
+
get collection() {
|
26
|
+
return this.getField(2);
|
27
|
+
}
|
28
|
+
get editing() {
|
29
|
+
return this.getField(3);
|
30
|
+
}
|
31
|
+
get index() {
|
32
|
+
return this.getField(11);
|
33
|
+
}
|
34
|
+
get volume() {
|
35
|
+
return this.getField(12);
|
36
|
+
}
|
37
|
+
get panning() {
|
38
|
+
return this.getField(13);
|
39
|
+
}
|
40
|
+
get mute() {
|
41
|
+
return this.getField(14);
|
42
|
+
}
|
43
|
+
get solo() {
|
44
|
+
return this.getField(15);
|
45
|
+
}
|
46
|
+
get tracks() {
|
47
|
+
return this.getField(20);
|
48
|
+
}
|
49
|
+
get midiEffects() {
|
50
|
+
return this.getField(21);
|
51
|
+
}
|
52
|
+
get input() {
|
53
|
+
return this.getField(22);
|
54
|
+
}
|
55
|
+
get audioEffects() {
|
56
|
+
return this.getField(23);
|
57
|
+
}
|
58
|
+
get auxSends() {
|
59
|
+
return this.getField(24);
|
60
|
+
}
|
61
|
+
get output() {
|
62
|
+
return this.getField(25);
|
63
|
+
}
|
64
|
+
initializeFields() {
|
65
|
+
return {
|
66
|
+
1: StringField.create({
|
67
|
+
parent: this,
|
68
|
+
fieldKey: 1,
|
69
|
+
fieldName: "type",
|
70
|
+
pointerRules: NoPointers,
|
71
|
+
}, "instrument"),
|
72
|
+
2: PointerField.create({
|
73
|
+
parent: this,
|
74
|
+
fieldKey: 2,
|
75
|
+
fieldName: "collection",
|
76
|
+
pointerRules: NoPointers,
|
77
|
+
}, Pointers.AudioUnits, true),
|
78
|
+
3: Field.hook({
|
79
|
+
parent: this,
|
80
|
+
fieldKey: 3,
|
81
|
+
fieldName: "editing",
|
82
|
+
pointerRules: { accepts: [Pointers.Editing], mandatory: false },
|
83
|
+
}),
|
84
|
+
11: Int32Field.create({
|
85
|
+
parent: this,
|
86
|
+
fieldKey: 11,
|
87
|
+
fieldName: "index",
|
88
|
+
pointerRules: NoPointers,
|
89
|
+
}),
|
90
|
+
12: Float32Field.create({
|
91
|
+
parent: this,
|
92
|
+
fieldKey: 12,
|
93
|
+
fieldName: "volume",
|
94
|
+
pointerRules: {
|
95
|
+
accepts: [
|
96
|
+
Pointers.Modulation,
|
97
|
+
Pointers.Automation,
|
98
|
+
Pointers.MidiControl,
|
99
|
+
],
|
100
|
+
mandatory: false,
|
101
|
+
},
|
102
|
+
}),
|
103
|
+
13: Float32Field.create({
|
104
|
+
parent: this,
|
105
|
+
fieldKey: 13,
|
106
|
+
fieldName: "panning",
|
107
|
+
pointerRules: {
|
108
|
+
accepts: [
|
109
|
+
Pointers.Modulation,
|
110
|
+
Pointers.Automation,
|
111
|
+
Pointers.MidiControl,
|
112
|
+
],
|
113
|
+
mandatory: false,
|
114
|
+
},
|
115
|
+
}),
|
116
|
+
14: BooleanField.create({
|
117
|
+
parent: this,
|
118
|
+
fieldKey: 14,
|
119
|
+
fieldName: "mute",
|
120
|
+
pointerRules: {
|
121
|
+
accepts: [
|
122
|
+
Pointers.Modulation,
|
123
|
+
Pointers.Automation,
|
124
|
+
Pointers.MidiControl,
|
125
|
+
],
|
126
|
+
mandatory: false,
|
127
|
+
},
|
128
|
+
}),
|
129
|
+
15: BooleanField.create({
|
130
|
+
parent: this,
|
131
|
+
fieldKey: 15,
|
132
|
+
fieldName: "solo",
|
133
|
+
pointerRules: {
|
134
|
+
accepts: [
|
135
|
+
Pointers.Modulation,
|
136
|
+
Pointers.Automation,
|
137
|
+
Pointers.MidiControl,
|
138
|
+
],
|
139
|
+
mandatory: false,
|
140
|
+
},
|
141
|
+
}),
|
142
|
+
20: Field.hook({
|
143
|
+
parent: this,
|
144
|
+
fieldKey: 20,
|
145
|
+
fieldName: "tracks",
|
146
|
+
pointerRules: { accepts: [Pointers.TrackCollection], mandatory: false },
|
147
|
+
}),
|
148
|
+
21: Field.hook({
|
149
|
+
parent: this,
|
150
|
+
fieldKey: 21,
|
151
|
+
fieldName: "midiEffects",
|
152
|
+
pointerRules: { accepts: [Pointers.MidiEffectHost], mandatory: false },
|
153
|
+
}),
|
154
|
+
22: Field.hook({
|
155
|
+
parent: this,
|
156
|
+
fieldKey: 22,
|
157
|
+
fieldName: "input",
|
158
|
+
pointerRules: {
|
159
|
+
accepts: [Pointers.InstrumentHost, Pointers.AudioOutput],
|
160
|
+
mandatory: false,
|
161
|
+
},
|
162
|
+
}),
|
163
|
+
23: Field.hook({
|
164
|
+
parent: this,
|
165
|
+
fieldKey: 23,
|
166
|
+
fieldName: "audioEffects",
|
167
|
+
pointerRules: { accepts: [Pointers.AudioEffectHost], mandatory: false },
|
168
|
+
}),
|
169
|
+
24: Field.hook({
|
170
|
+
parent: this,
|
171
|
+
fieldKey: 24,
|
172
|
+
fieldName: "auxSends",
|
173
|
+
pointerRules: { accepts: [Pointers.AuxSend], mandatory: false },
|
174
|
+
}),
|
175
|
+
25: PointerField.create({
|
176
|
+
parent: this,
|
177
|
+
fieldKey: 25,
|
178
|
+
fieldName: "output",
|
179
|
+
pointerRules: NoPointers,
|
180
|
+
}, Pointers.AudioOutput, false),
|
181
|
+
};
|
182
|
+
}
|
183
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, Int32Field, Float32Field, UnreferenceableType } from "@opendaw/lib-box";
|
3
|
+
import { BoxVisitor } from ".";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export type AuxSendBoxFields = {
|
6
|
+
1: PointerField<Pointers.AuxSend>;
|
7
|
+
2: PointerField<Pointers.AudioOutput>;
|
8
|
+
3: Int32Field;
|
9
|
+
4: Int32Field;
|
10
|
+
5: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
11
|
+
6: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
12
|
+
};
|
13
|
+
export declare class AuxSendBox extends Box<UnreferenceableType, AuxSendBoxFields> {
|
14
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<AuxSendBox>): AuxSendBox;
|
15
|
+
private constructor();
|
16
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
17
|
+
get audioUnit(): PointerField<Pointers.AuxSend>;
|
18
|
+
get targetBus(): PointerField<Pointers.AudioOutput>;
|
19
|
+
get index(): Int32Field;
|
20
|
+
get routing(): Int32Field;
|
21
|
+
get sendGain(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
22
|
+
get sendPan(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers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C,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,SAAS,IAAI,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,CAE9C;IAED,IAAI,SAAS,IAAI,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAElD;IAED,IAAI,KAAK,IAAI,UAAU,CAEtB;IAED,IAAI,OAAO,IAAI,UAAU,CAExB;IAED,IAAI,QAAQ,IAAI,YAAY,CAC1B,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAEA;IAED,IAAI,OAAO,IAAI,YAAY,CACzB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAEA;IAED,gBAAgB,IAAI,gBAAgB;CA8DrC"}
|
@@ -0,0 +1,91 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, PointerField, Int32Field, Float32Field, } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class AuxSendBox extends Box {
|
5
|
+
static create(graph, uuid, constructor) {
|
6
|
+
return graph.stageBox(new AuxSendBox({
|
7
|
+
uuid,
|
8
|
+
graph,
|
9
|
+
name: "AuxSendBox",
|
10
|
+
pointerRules: NoPointers,
|
11
|
+
}), constructor);
|
12
|
+
}
|
13
|
+
constructor(construct) {
|
14
|
+
super(construct);
|
15
|
+
}
|
16
|
+
accept(visitor) {
|
17
|
+
return safeExecute(visitor.visitAuxSendBox, this);
|
18
|
+
}
|
19
|
+
get audioUnit() {
|
20
|
+
return this.getField(1);
|
21
|
+
}
|
22
|
+
get targetBus() {
|
23
|
+
return this.getField(2);
|
24
|
+
}
|
25
|
+
get index() {
|
26
|
+
return this.getField(3);
|
27
|
+
}
|
28
|
+
get routing() {
|
29
|
+
return this.getField(4);
|
30
|
+
}
|
31
|
+
get sendGain() {
|
32
|
+
return this.getField(5);
|
33
|
+
}
|
34
|
+
get sendPan() {
|
35
|
+
return this.getField(6);
|
36
|
+
}
|
37
|
+
initializeFields() {
|
38
|
+
return {
|
39
|
+
1: PointerField.create({
|
40
|
+
parent: this,
|
41
|
+
fieldKey: 1,
|
42
|
+
fieldName: "audioUnit",
|
43
|
+
pointerRules: NoPointers,
|
44
|
+
}, Pointers.AuxSend, true),
|
45
|
+
2: PointerField.create({
|
46
|
+
parent: this,
|
47
|
+
fieldKey: 2,
|
48
|
+
fieldName: "targetBus",
|
49
|
+
pointerRules: NoPointers,
|
50
|
+
}, Pointers.AudioOutput, true),
|
51
|
+
3: Int32Field.create({
|
52
|
+
parent: this,
|
53
|
+
fieldKey: 3,
|
54
|
+
fieldName: "index",
|
55
|
+
pointerRules: NoPointers,
|
56
|
+
}),
|
57
|
+
4: Int32Field.create({
|
58
|
+
parent: this,
|
59
|
+
fieldKey: 4,
|
60
|
+
fieldName: "routing",
|
61
|
+
pointerRules: NoPointers,
|
62
|
+
}),
|
63
|
+
5: Float32Field.create({
|
64
|
+
parent: this,
|
65
|
+
fieldKey: 5,
|
66
|
+
fieldName: "sendGain",
|
67
|
+
pointerRules: {
|
68
|
+
accepts: [
|
69
|
+
Pointers.Modulation,
|
70
|
+
Pointers.Automation,
|
71
|
+
Pointers.MidiControl,
|
72
|
+
],
|
73
|
+
mandatory: false,
|
74
|
+
},
|
75
|
+
}),
|
76
|
+
6: Float32Field.create({
|
77
|
+
parent: this,
|
78
|
+
fieldKey: 6,
|
79
|
+
fieldName: "sendPan",
|
80
|
+
pointerRules: {
|
81
|
+
accepts: [
|
82
|
+
Pointers.Modulation,
|
83
|
+
Pointers.Automation,
|
84
|
+
Pointers.MidiControl,
|
85
|
+
],
|
86
|
+
mandatory: false,
|
87
|
+
},
|
88
|
+
}),
|
89
|
+
};
|
90
|
+
}
|
91
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import "@opendaw/lib-std";
|
2
|
+
import { ObjectField, FieldConstruct, ArrayField, Int32Field, UnreferenceableType } from "@opendaw/lib-box";
|
3
|
+
import { ClashStep } from "./ClashStep";
|
4
|
+
export type ClashPatternFields = {
|
5
|
+
10: ArrayField<ClashStep>;
|
6
|
+
11: Int32Field;
|
7
|
+
12: Int32Field;
|
8
|
+
};
|
9
|
+
export declare class ClashPattern extends ObjectField<ClashPatternFields> {
|
10
|
+
static create(construct: FieldConstruct<UnreferenceableType>): ClashPattern;
|
11
|
+
private constructor();
|
12
|
+
get steps(): ArrayField<ClashStep>;
|
13
|
+
get length(): Int32Field;
|
14
|
+
get scale(): Int32Field;
|
15
|
+
initializeFields(): ClashPatternFields;
|
16
|
+
}
|
17
|
+
//# sourceMappingURL=ClashPattern.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ClashPattern.d.ts","sourceRoot":"","sources":["../src/ClashPattern.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EACL,WAAW,EACX,cAAc,EAEd,UAAU,EACV,UAAU,EACV,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAWxC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAc,UAAU,CAAC,SAAS,CAAC,CAAC;IACtC,EAAE,EAAmB,UAAU,CAAC;IAChC,EAAE,EAAmB,UAAU,CAAC;CACjC,CAAC;AAEF,qBAAa,YAAa,SAAQ,WAAW,CAAC,kBAAkB,CAAC;IAC/D,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,cAAc,CAAC,mBAAmB,CAAC,GAAG,YAAY;IAI3E,OAAO;IAIP,IAAI,KAAK,IAAI,UAAU,CAAC,SAAS,CAAC,CAEjC;IAED,IAAI,MAAM,IAAI,UAAU,CAEvB;IAED,IAAI,KAAK,IAAI,UAAU,CAEtB;IAED,gBAAgB,IAAI,kBAAkB;CAgCvC"}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import "@opendaw/lib-std";
|
2
|
+
import { ObjectField, NoPointers, ArrayField, Int32Field, } from "@opendaw/lib-box";
|
3
|
+
import { ClashStep } from "./ClashStep";
|
4
|
+
export class ClashPattern extends ObjectField {
|
5
|
+
static create(construct) {
|
6
|
+
return new ClashPattern(construct);
|
7
|
+
}
|
8
|
+
constructor(construct) {
|
9
|
+
super(construct);
|
10
|
+
}
|
11
|
+
get steps() {
|
12
|
+
return this.getField(10);
|
13
|
+
}
|
14
|
+
get length() {
|
15
|
+
return this.getField(11);
|
16
|
+
}
|
17
|
+
get scale() {
|
18
|
+
return this.getField(12);
|
19
|
+
}
|
20
|
+
initializeFields() {
|
21
|
+
return {
|
22
|
+
10: ArrayField.create({
|
23
|
+
parent: this,
|
24
|
+
fieldKey: 10,
|
25
|
+
fieldName: "steps",
|
26
|
+
pointerRules: NoPointers,
|
27
|
+
}, (construct) => ClashStep.create(construct), 128),
|
28
|
+
11: Int32Field.create({
|
29
|
+
parent: this,
|
30
|
+
fieldKey: 11,
|
31
|
+
fieldName: "length",
|
32
|
+
pointerRules: NoPointers,
|
33
|
+
}, 16),
|
34
|
+
12: Int32Field.create({
|
35
|
+
parent: this,
|
36
|
+
fieldKey: 12,
|
37
|
+
fieldName: "scale",
|
38
|
+
pointerRules: NoPointers,
|
39
|
+
}, 960),
|
40
|
+
};
|
41
|
+
}
|
42
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import "@opendaw/lib-std";
|
2
|
+
import { ObjectField, FieldConstruct, BooleanField, UnreferenceableType } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export type ClashStepFields = {
|
5
|
+
1: BooleanField<Pointers.StepAutomation>;
|
6
|
+
};
|
7
|
+
export declare class ClashStep extends ObjectField<ClashStepFields> {
|
8
|
+
static create(construct: FieldConstruct<UnreferenceableType>): ClashStep;
|
9
|
+
private constructor();
|
10
|
+
get active(): BooleanField<Pointers.StepAutomation>;
|
11
|
+
initializeFields(): ClashStepFields;
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=ClashStep.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ClashStep.d.ts","sourceRoot":"","sources":["../src/ClashStep.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EACL,WAAW,EACX,cAAc,EACd,YAAY,EACZ,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,EAAe,YAAY,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;CACvD,CAAC;AAEF,qBAAa,SAAU,SAAQ,WAAW,CAAC,eAAe,CAAC;IACzD,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,cAAc,CAAC,mBAAmB,CAAC,GAAG,SAAS;IAIxE,OAAO;IAIP,IAAI,MAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,cAAc,CAAC,CAElD;IAED,gBAAgB,IAAI,eAAe;CAUpC"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import "@opendaw/lib-std";
|
2
|
+
import { ObjectField, BooleanField, } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class ClashStep extends ObjectField {
|
5
|
+
static create(construct) {
|
6
|
+
return new ClashStep(construct);
|
7
|
+
}
|
8
|
+
constructor(construct) {
|
9
|
+
super(construct);
|
10
|
+
}
|
11
|
+
get active() {
|
12
|
+
return this.getField(1);
|
13
|
+
}
|
14
|
+
initializeFields() {
|
15
|
+
return {
|
16
|
+
1: BooleanField.create({
|
17
|
+
parent: this,
|
18
|
+
fieldKey: 1,
|
19
|
+
fieldName: "active",
|
20
|
+
pointerRules: { accepts: [Pointers.StepAutomation], mandatory: false },
|
21
|
+
}),
|
22
|
+
};
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import "@opendaw/lib-std";
|
2
|
+
import { ObjectField, FieldConstruct, BooleanField, Int32Field, UnreferenceableType } from "@opendaw/lib-box";
|
3
|
+
export type ClipPlaybackFieldsFields = {
|
4
|
+
1: BooleanField;
|
5
|
+
2: BooleanField;
|
6
|
+
3: BooleanField;
|
7
|
+
4: Int32Field;
|
8
|
+
5: Int32Field;
|
9
|
+
6: Int32Field;
|
10
|
+
};
|
11
|
+
export declare class ClipPlaybackFields extends ObjectField<ClipPlaybackFieldsFields> {
|
12
|
+
static create(construct: FieldConstruct<UnreferenceableType>): ClipPlaybackFields;
|
13
|
+
private constructor();
|
14
|
+
get loop(): BooleanField;
|
15
|
+
get reverse(): BooleanField;
|
16
|
+
get mute(): BooleanField;
|
17
|
+
get speed(): Int32Field;
|
18
|
+
get quantise(): Int32Field;
|
19
|
+
get trigger(): Int32Field;
|
20
|
+
initializeFields(): ClipPlaybackFieldsFields;
|
21
|
+
}
|
22
|
+
//# sourceMappingURL=ClipPlaybackFields.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ClipPlaybackFields.d.ts","sourceRoot":"","sources":["../src/ClipPlaybackFields.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EACL,WAAW,EACX,cAAc,EAEd,YAAY,EACZ,UAAU,EACV,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAW1B,MAAM,MAAM,wBAAwB,GAAG;IACrC,CAAC,EAAmB,YAAY,CAAC;IACjC,CAAC,EAAgB,YAAY,CAAC;IAC9B,CAAC,EAAa,YAAY,CAAC;IAC3B,CAAC,EAAc,UAAU,CAAC;IAC1B,CAAC,EAAiB,UAAU,CAAC;IAC7B,CAAC,EAAgB,UAAU,CAAC;CAC7B,CAAC;AAEF,qBAAa,kBAAmB,SAAQ,WAAW,CAAC,wBAAwB,CAAC;IAC3E,MAAM,CAAC,MAAM,CACX,SAAS,EAAE,cAAc,CAAC,mBAAmB,CAAC,GAC7C,kBAAkB;IAIrB,OAAO;IAIP,IAAI,IAAI,IAAI,YAAY,CAEvB;IAED,IAAI,OAAO,IAAI,YAAY,CAE1B;IAED,IAAI,IAAI,IAAI,YAAY,CAEvB;IAED,IAAI,KAAK,IAAI,UAAU,CAEtB;IAED,IAAI,QAAQ,IAAI,UAAU,CAEzB;IAED,IAAI,OAAO,IAAI,UAAU,CAExB;IAED,gBAAgB,IAAI,wBAAwB;CA2C7C"}
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import "@opendaw/lib-std";
|
2
|
+
import { ObjectField, NoPointers, BooleanField, Int32Field, } from "@opendaw/lib-box";
|
3
|
+
export class ClipPlaybackFields extends ObjectField {
|
4
|
+
static create(construct) {
|
5
|
+
return new ClipPlaybackFields(construct);
|
6
|
+
}
|
7
|
+
constructor(construct) {
|
8
|
+
super(construct);
|
9
|
+
}
|
10
|
+
get loop() {
|
11
|
+
return this.getField(1);
|
12
|
+
}
|
13
|
+
get reverse() {
|
14
|
+
return this.getField(2);
|
15
|
+
}
|
16
|
+
get mute() {
|
17
|
+
return this.getField(3);
|
18
|
+
}
|
19
|
+
get speed() {
|
20
|
+
return this.getField(4);
|
21
|
+
}
|
22
|
+
get quantise() {
|
23
|
+
return this.getField(5);
|
24
|
+
}
|
25
|
+
get trigger() {
|
26
|
+
return this.getField(6);
|
27
|
+
}
|
28
|
+
initializeFields() {
|
29
|
+
return {
|
30
|
+
1: BooleanField.create({
|
31
|
+
parent: this,
|
32
|
+
fieldKey: 1,
|
33
|
+
fieldName: "loop",
|
34
|
+
pointerRules: NoPointers,
|
35
|
+
}, true),
|
36
|
+
2: BooleanField.create({
|
37
|
+
parent: this,
|
38
|
+
fieldKey: 2,
|
39
|
+
fieldName: "reverse",
|
40
|
+
pointerRules: NoPointers,
|
41
|
+
}),
|
42
|
+
3: BooleanField.create({
|
43
|
+
parent: this,
|
44
|
+
fieldKey: 3,
|
45
|
+
fieldName: "mute",
|
46
|
+
pointerRules: NoPointers,
|
47
|
+
}),
|
48
|
+
4: Int32Field.create({
|
49
|
+
parent: this,
|
50
|
+
fieldKey: 4,
|
51
|
+
fieldName: "speed",
|
52
|
+
pointerRules: NoPointers,
|
53
|
+
}),
|
54
|
+
5: Int32Field.create({
|
55
|
+
parent: this,
|
56
|
+
fieldKey: 5,
|
57
|
+
fieldName: "quantise",
|
58
|
+
pointerRules: NoPointers,
|
59
|
+
}),
|
60
|
+
6: Int32Field.create({
|
61
|
+
parent: this,
|
62
|
+
fieldKey: 6,
|
63
|
+
fieldName: "trigger",
|
64
|
+
pointerRules: NoPointers,
|
65
|
+
}),
|
66
|
+
};
|
67
|
+
}
|
68
|
+
}
|