@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,69 @@
|
|
1
|
+
import "@opendaw/lib-std";
|
2
|
+
import { ObjectField, NoPointers, PointerField, StringField, Int32Field, BooleanField, } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class ModuleAttributes extends ObjectField {
|
5
|
+
static create(construct) {
|
6
|
+
return new ModuleAttributes(construct);
|
7
|
+
}
|
8
|
+
constructor(construct) {
|
9
|
+
super(construct);
|
10
|
+
}
|
11
|
+
get collection() {
|
12
|
+
return this.getField(1);
|
13
|
+
}
|
14
|
+
get label() {
|
15
|
+
return this.getField(2);
|
16
|
+
}
|
17
|
+
get x() {
|
18
|
+
return this.getField(3);
|
19
|
+
}
|
20
|
+
get y() {
|
21
|
+
return this.getField(4);
|
22
|
+
}
|
23
|
+
get collapsed() {
|
24
|
+
return this.getField(5);
|
25
|
+
}
|
26
|
+
get removable() {
|
27
|
+
return this.getField(6);
|
28
|
+
}
|
29
|
+
initializeFields() {
|
30
|
+
return {
|
31
|
+
1: PointerField.create({
|
32
|
+
parent: this,
|
33
|
+
fieldKey: 1,
|
34
|
+
fieldName: "collection",
|
35
|
+
pointerRules: NoPointers,
|
36
|
+
}, Pointers.ModuleCollection, true),
|
37
|
+
2: StringField.create({
|
38
|
+
parent: this,
|
39
|
+
fieldKey: 2,
|
40
|
+
fieldName: "label",
|
41
|
+
pointerRules: NoPointers,
|
42
|
+
}),
|
43
|
+
3: Int32Field.create({
|
44
|
+
parent: this,
|
45
|
+
fieldKey: 3,
|
46
|
+
fieldName: "x",
|
47
|
+
pointerRules: NoPointers,
|
48
|
+
}),
|
49
|
+
4: Int32Field.create({
|
50
|
+
parent: this,
|
51
|
+
fieldKey: 4,
|
52
|
+
fieldName: "y",
|
53
|
+
pointerRules: NoPointers,
|
54
|
+
}),
|
55
|
+
5: BooleanField.create({
|
56
|
+
parent: this,
|
57
|
+
fieldKey: 5,
|
58
|
+
fieldName: "collapsed",
|
59
|
+
pointerRules: NoPointers,
|
60
|
+
}, false),
|
61
|
+
6: BooleanField.create({
|
62
|
+
parent: this,
|
63
|
+
fieldKey: 6,
|
64
|
+
fieldName: "removable",
|
65
|
+
pointerRules: NoPointers,
|
66
|
+
}, true),
|
67
|
+
};
|
68
|
+
}
|
69
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, UnreferenceableType } from "@opendaw/lib-box";
|
3
|
+
import { BoxVisitor } from ".";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export type ModuleConnectionBoxFields = {
|
6
|
+
1: PointerField<Pointers.ConnectionCollection>;
|
7
|
+
2: PointerField<Pointers.VoltageConnection>;
|
8
|
+
3: PointerField<Pointers.VoltageConnection>;
|
9
|
+
};
|
10
|
+
export declare class ModuleConnectionBox extends Box<UnreferenceableType, ModuleConnectionBoxFields> {
|
11
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<ModuleConnectionBox>): ModuleConnectionBox;
|
12
|
+
private constructor();
|
13
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
14
|
+
get collection(): PointerField<Pointers.ConnectionCollection>;
|
15
|
+
get source(): PointerField<Pointers.VoltageConnection>;
|
16
|
+
get target(): PointerField<Pointers.VoltageConnection>;
|
17
|
+
initializeFields(): ModuleConnectionBoxFields;
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=ModuleConnectionBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModuleConnectionBox.d.ts","sourceRoot":"","sources":["../src/ModuleConnectionBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EACL,GAAG,EAEH,QAAQ,EAER,YAAY,EACZ,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,yBAAyB,GAAG;IACtC,CAAC,EAAmB,YAAY,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC;IAChE,CAAC,EAAe,YAAY,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IACzD,CAAC,EAAe,YAAY,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;CAC1D,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,GAAG,CAC1C,mBAAmB,EACnB,yBAAyB,CAC1B;IACC,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,mBAAmB,CAAC,GAC3C,mBAAmB;IAYtB,OAAO;IAIP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,UAAU,IAAI,YAAY,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAE5D;IAED,IAAI,MAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAErD;IAED,IAAI,MAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAErD;IAED,gBAAgB,IAAI,yBAAyB;CAkC9C"}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, PointerField, } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class ModuleConnectionBox extends Box {
|
5
|
+
static create(graph, uuid, constructor) {
|
6
|
+
return graph.stageBox(new ModuleConnectionBox({
|
7
|
+
uuid,
|
8
|
+
graph,
|
9
|
+
name: "ModuleConnectionBox",
|
10
|
+
pointerRules: NoPointers,
|
11
|
+
}), constructor);
|
12
|
+
}
|
13
|
+
constructor(construct) {
|
14
|
+
super(construct);
|
15
|
+
}
|
16
|
+
accept(visitor) {
|
17
|
+
return safeExecute(visitor.visitModuleConnectionBox, this);
|
18
|
+
}
|
19
|
+
get collection() {
|
20
|
+
return this.getField(1);
|
21
|
+
}
|
22
|
+
get source() {
|
23
|
+
return this.getField(2);
|
24
|
+
}
|
25
|
+
get target() {
|
26
|
+
return this.getField(3);
|
27
|
+
}
|
28
|
+
initializeFields() {
|
29
|
+
return {
|
30
|
+
1: PointerField.create({
|
31
|
+
parent: this,
|
32
|
+
fieldKey: 1,
|
33
|
+
fieldName: "collection",
|
34
|
+
pointerRules: NoPointers,
|
35
|
+
}, Pointers.ConnectionCollection, true),
|
36
|
+
2: PointerField.create({
|
37
|
+
parent: this,
|
38
|
+
fieldKey: 2,
|
39
|
+
fieldName: "source",
|
40
|
+
pointerRules: NoPointers,
|
41
|
+
}, Pointers.VoltageConnection, true),
|
42
|
+
3: PointerField.create({
|
43
|
+
parent: this,
|
44
|
+
fieldKey: 3,
|
45
|
+
fieldName: "target",
|
46
|
+
pointerRules: NoPointers,
|
47
|
+
}, Pointers.VoltageConnection, true),
|
48
|
+
};
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, Field, Float32Field } from "@opendaw/lib-box";
|
3
|
+
import { ModuleAttributes } from "./ModuleAttributes";
|
4
|
+
import { BoxVisitor } from ".";
|
5
|
+
import { Pointers } from "@opendaw/studio-enums";
|
6
|
+
export type ModuleDelayBoxFields = {
|
7
|
+
1: ModuleAttributes;
|
8
|
+
10: Field<Pointers.VoltageConnection>;
|
9
|
+
11: Field<Pointers.VoltageConnection>;
|
10
|
+
20: Float32Field<Pointers.ParameterController>;
|
11
|
+
};
|
12
|
+
export declare class ModuleDelayBox extends Box<Pointers.Selection, ModuleDelayBoxFields> {
|
13
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<ModuleDelayBox>): ModuleDelayBox;
|
14
|
+
private constructor();
|
15
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
16
|
+
get attributes(): ModuleAttributes;
|
17
|
+
get voltageInput(): Field<Pointers.VoltageConnection>;
|
18
|
+
get voltageOutput(): Field<Pointers.VoltageConnection>;
|
19
|
+
get time(): Float32Field<Pointers.ParameterController>;
|
20
|
+
initializeFields(): ModuleDelayBoxFields;
|
21
|
+
}
|
22
|
+
//# sourceMappingURL=ModuleDelayBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModuleDelayBox.d.ts","sourceRoot":"","sources":["../src/ModuleDelayBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EACL,GAAG,EAEH,QAAQ,EAER,KAAK,EACL,YAAY,EACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,oBAAoB,GAAG;IACjC,CAAC,EAAmB,gBAAgB,CAAC;IACrC,EAAE,EAAqB,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IACzD,EAAE,EAAsB,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IAC1D,EAAE,EAAkB,YAAY,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;CAChE,CAAC;AAEF,qBAAa,cAAe,SAAQ,GAAG,CACrC,QAAQ,CAAC,SAAS,EAClB,oBAAoB,CACrB;IACC,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,GACtC,cAAc;IAYjB,OAAO;IAIP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,UAAU,IAAI,gBAAgB,CAEjC;IAED,IAAI,YAAY,IAAI,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAEpD;IAED,IAAI,aAAa,IAAI,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAErD;IAED,IAAI,IAAI,IAAI,YAAY,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAErD;IAED,gBAAgB,IAAI,oBAAoB;CAwCzC"}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, Field, Float32Field, } from "@opendaw/lib-box";
|
3
|
+
import { ModuleAttributes } from "./ModuleAttributes";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export class ModuleDelayBox extends Box {
|
6
|
+
static create(graph, uuid, constructor) {
|
7
|
+
return graph.stageBox(new ModuleDelayBox({
|
8
|
+
uuid,
|
9
|
+
graph,
|
10
|
+
name: "ModuleDelayBox",
|
11
|
+
pointerRules: { accepts: [Pointers.Selection], mandatory: false },
|
12
|
+
}), constructor);
|
13
|
+
}
|
14
|
+
constructor(construct) {
|
15
|
+
super(construct);
|
16
|
+
}
|
17
|
+
accept(visitor) {
|
18
|
+
return safeExecute(visitor.visitModuleDelayBox, this);
|
19
|
+
}
|
20
|
+
get attributes() {
|
21
|
+
return this.getField(1);
|
22
|
+
}
|
23
|
+
get voltageInput() {
|
24
|
+
return this.getField(10);
|
25
|
+
}
|
26
|
+
get voltageOutput() {
|
27
|
+
return this.getField(11);
|
28
|
+
}
|
29
|
+
get time() {
|
30
|
+
return this.getField(20);
|
31
|
+
}
|
32
|
+
initializeFields() {
|
33
|
+
return {
|
34
|
+
1: ModuleAttributes.create({
|
35
|
+
parent: this,
|
36
|
+
fieldKey: 1,
|
37
|
+
fieldName: "attributes",
|
38
|
+
pointerRules: NoPointers,
|
39
|
+
}),
|
40
|
+
10: Field.hook({
|
41
|
+
parent: this,
|
42
|
+
fieldKey: 10,
|
43
|
+
fieldName: "voltageInput",
|
44
|
+
pointerRules: {
|
45
|
+
accepts: [Pointers.VoltageConnection],
|
46
|
+
mandatory: false,
|
47
|
+
},
|
48
|
+
}),
|
49
|
+
11: Field.hook({
|
50
|
+
parent: this,
|
51
|
+
fieldKey: 11,
|
52
|
+
fieldName: "voltageOutput",
|
53
|
+
pointerRules: {
|
54
|
+
accepts: [Pointers.VoltageConnection],
|
55
|
+
mandatory: false,
|
56
|
+
},
|
57
|
+
}),
|
58
|
+
20: Float32Field.create({
|
59
|
+
parent: this,
|
60
|
+
fieldKey: 20,
|
61
|
+
fieldName: "time",
|
62
|
+
pointerRules: {
|
63
|
+
accepts: [Pointers.ParameterController],
|
64
|
+
mandatory: false,
|
65
|
+
},
|
66
|
+
}, 500),
|
67
|
+
};
|
68
|
+
}
|
69
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, Field, Float32Field } from "@opendaw/lib-box";
|
3
|
+
import { ModuleAttributes } from "./ModuleAttributes";
|
4
|
+
import { BoxVisitor } from ".";
|
5
|
+
import { Pointers } from "@opendaw/studio-enums";
|
6
|
+
export type ModuleGainBoxFields = {
|
7
|
+
1: ModuleAttributes;
|
8
|
+
10: Field<Pointers.VoltageConnection>;
|
9
|
+
12: Field<Pointers.VoltageConnection>;
|
10
|
+
20: Float32Field<Pointers.ParameterController>;
|
11
|
+
};
|
12
|
+
export declare class ModuleGainBox extends Box<Pointers.Selection, ModuleGainBoxFields> {
|
13
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<ModuleGainBox>): ModuleGainBox;
|
14
|
+
private constructor();
|
15
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
16
|
+
get attributes(): ModuleAttributes;
|
17
|
+
get voltageInput(): Field<Pointers.VoltageConnection>;
|
18
|
+
get voltageOutput(): Field<Pointers.VoltageConnection>;
|
19
|
+
get gain(): Float32Field<Pointers.ParameterController>;
|
20
|
+
initializeFields(): ModuleGainBoxFields;
|
21
|
+
}
|
22
|
+
//# sourceMappingURL=ModuleGainBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModuleGainBox.d.ts","sourceRoot":"","sources":["../src/ModuleGainBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EACL,GAAG,EAEH,QAAQ,EAER,KAAK,EACL,YAAY,EACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,EAAmB,gBAAgB,CAAC;IACrC,EAAE,EAAqB,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IACzD,EAAE,EAAsB,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IAC1D,EAAE,EAAa,YAAY,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;CAC3D,CAAC;AAEF,qBAAa,aAAc,SAAQ,GAAG,CACpC,QAAQ,CAAC,SAAS,EAClB,mBAAmB,CACpB;IACC,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,aAAa,CAAC,GACrC,aAAa;IAYhB,OAAO;IAIP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,UAAU,IAAI,gBAAgB,CAEjC;IAED,IAAI,YAAY,IAAI,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAEpD;IAED,IAAI,aAAa,IAAI,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAErD;IAED,IAAI,IAAI,IAAI,YAAY,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAErD;IAED,gBAAgB,IAAI,mBAAmB;CAqCxC"}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, Field, Float32Field, } from "@opendaw/lib-box";
|
3
|
+
import { ModuleAttributes } from "./ModuleAttributes";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export class ModuleGainBox extends Box {
|
6
|
+
static create(graph, uuid, constructor) {
|
7
|
+
return graph.stageBox(new ModuleGainBox({
|
8
|
+
uuid,
|
9
|
+
graph,
|
10
|
+
name: "ModuleGainBox",
|
11
|
+
pointerRules: { accepts: [Pointers.Selection], mandatory: false },
|
12
|
+
}), constructor);
|
13
|
+
}
|
14
|
+
constructor(construct) {
|
15
|
+
super(construct);
|
16
|
+
}
|
17
|
+
accept(visitor) {
|
18
|
+
return safeExecute(visitor.visitModuleGainBox, this);
|
19
|
+
}
|
20
|
+
get attributes() {
|
21
|
+
return this.getField(1);
|
22
|
+
}
|
23
|
+
get voltageInput() {
|
24
|
+
return this.getField(10);
|
25
|
+
}
|
26
|
+
get voltageOutput() {
|
27
|
+
return this.getField(12);
|
28
|
+
}
|
29
|
+
get gain() {
|
30
|
+
return this.getField(20);
|
31
|
+
}
|
32
|
+
initializeFields() {
|
33
|
+
return {
|
34
|
+
1: ModuleAttributes.create({
|
35
|
+
parent: this,
|
36
|
+
fieldKey: 1,
|
37
|
+
fieldName: "attributes",
|
38
|
+
pointerRules: NoPointers,
|
39
|
+
}),
|
40
|
+
10: Field.hook({
|
41
|
+
parent: this,
|
42
|
+
fieldKey: 10,
|
43
|
+
fieldName: "voltageInput",
|
44
|
+
pointerRules: {
|
45
|
+
accepts: [Pointers.VoltageConnection],
|
46
|
+
mandatory: false,
|
47
|
+
},
|
48
|
+
}),
|
49
|
+
12: Field.hook({
|
50
|
+
parent: this,
|
51
|
+
fieldKey: 12,
|
52
|
+
fieldName: "voltageOutput",
|
53
|
+
pointerRules: {
|
54
|
+
accepts: [Pointers.VoltageConnection],
|
55
|
+
mandatory: false,
|
56
|
+
},
|
57
|
+
}),
|
58
|
+
20: Float32Field.create({
|
59
|
+
parent: this,
|
60
|
+
fieldKey: 20,
|
61
|
+
fieldName: "gain",
|
62
|
+
pointerRules: {
|
63
|
+
accepts: [Pointers.ParameterController],
|
64
|
+
mandatory: false,
|
65
|
+
},
|
66
|
+
}),
|
67
|
+
};
|
68
|
+
}
|
69
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, Field, Float32Field } from "@opendaw/lib-box";
|
3
|
+
import { ModuleAttributes } from "./ModuleAttributes";
|
4
|
+
import { BoxVisitor } from ".";
|
5
|
+
import { Pointers } from "@opendaw/studio-enums";
|
6
|
+
export type ModuleMultiplierBoxFields = {
|
7
|
+
1: ModuleAttributes;
|
8
|
+
10: Field<Pointers.VoltageConnection>;
|
9
|
+
11: Field<Pointers.VoltageConnection>;
|
10
|
+
12: Field<Pointers.VoltageConnection>;
|
11
|
+
20: Float32Field;
|
12
|
+
};
|
13
|
+
export declare class ModuleMultiplierBox extends Box<Pointers.Selection, ModuleMultiplierBoxFields> {
|
14
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<ModuleMultiplierBox>): ModuleMultiplierBox;
|
15
|
+
private constructor();
|
16
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
17
|
+
get attributes(): ModuleAttributes;
|
18
|
+
get voltageInputX(): Field<Pointers.VoltageConnection>;
|
19
|
+
get voltageInputY(): Field<Pointers.VoltageConnection>;
|
20
|
+
get voltageOutput(): Field<Pointers.VoltageConnection>;
|
21
|
+
get multiplier(): Float32Field;
|
22
|
+
initializeFields(): ModuleMultiplierBoxFields;
|
23
|
+
}
|
24
|
+
//# sourceMappingURL=ModuleMultiplierBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModuleMultiplierBox.d.ts","sourceRoot":"","sources":["../src/ModuleMultiplierBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EACL,GAAG,EAEH,QAAQ,EAER,KAAK,EACL,YAAY,EACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,yBAAyB,GAAG;IACtC,CAAC,EAAmB,gBAAgB,CAAC;IACrC,EAAE,EAAsB,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IAC1D,EAAE,EAAsB,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IAC1D,EAAE,EAAsB,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IAC1D,EAAE,EAAmB,YAAY,CAAC;CACnC,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,GAAG,CAC1C,QAAQ,CAAC,SAAS,EAClB,yBAAyB,CAC1B;IACC,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,mBAAmB,CAAC,GAC3C,mBAAmB;IAYtB,OAAO;IAIP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,UAAU,IAAI,gBAAgB,CAEjC;IAED,IAAI,aAAa,IAAI,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAErD;IAED,IAAI,aAAa,IAAI,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAErD;IAED,IAAI,aAAa,IAAI,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAErD;IAED,IAAI,UAAU,IAAI,YAAY,CAE7B;IAED,gBAAgB,IAAI,yBAAyB;CA2C9C"}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, Field, Float32Field, } from "@opendaw/lib-box";
|
3
|
+
import { ModuleAttributes } from "./ModuleAttributes";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export class ModuleMultiplierBox extends Box {
|
6
|
+
static create(graph, uuid, constructor) {
|
7
|
+
return graph.stageBox(new ModuleMultiplierBox({
|
8
|
+
uuid,
|
9
|
+
graph,
|
10
|
+
name: "ModuleMultiplierBox",
|
11
|
+
pointerRules: { accepts: [Pointers.Selection], mandatory: false },
|
12
|
+
}), constructor);
|
13
|
+
}
|
14
|
+
constructor(construct) {
|
15
|
+
super(construct);
|
16
|
+
}
|
17
|
+
accept(visitor) {
|
18
|
+
return safeExecute(visitor.visitModuleMultiplierBox, this);
|
19
|
+
}
|
20
|
+
get attributes() {
|
21
|
+
return this.getField(1);
|
22
|
+
}
|
23
|
+
get voltageInputX() {
|
24
|
+
return this.getField(10);
|
25
|
+
}
|
26
|
+
get voltageInputY() {
|
27
|
+
return this.getField(11);
|
28
|
+
}
|
29
|
+
get voltageOutput() {
|
30
|
+
return this.getField(12);
|
31
|
+
}
|
32
|
+
get multiplier() {
|
33
|
+
return this.getField(20);
|
34
|
+
}
|
35
|
+
initializeFields() {
|
36
|
+
return {
|
37
|
+
1: ModuleAttributes.create({
|
38
|
+
parent: this,
|
39
|
+
fieldKey: 1,
|
40
|
+
fieldName: "attributes",
|
41
|
+
pointerRules: NoPointers,
|
42
|
+
}),
|
43
|
+
10: Field.hook({
|
44
|
+
parent: this,
|
45
|
+
fieldKey: 10,
|
46
|
+
fieldName: "voltageInputX",
|
47
|
+
pointerRules: {
|
48
|
+
accepts: [Pointers.VoltageConnection],
|
49
|
+
mandatory: false,
|
50
|
+
},
|
51
|
+
}),
|
52
|
+
11: Field.hook({
|
53
|
+
parent: this,
|
54
|
+
fieldKey: 11,
|
55
|
+
fieldName: "voltageInputY",
|
56
|
+
pointerRules: {
|
57
|
+
accepts: [Pointers.VoltageConnection],
|
58
|
+
mandatory: false,
|
59
|
+
},
|
60
|
+
}),
|
61
|
+
12: Field.hook({
|
62
|
+
parent: this,
|
63
|
+
fieldKey: 12,
|
64
|
+
fieldName: "voltageOutput",
|
65
|
+
pointerRules: {
|
66
|
+
accepts: [Pointers.VoltageConnection],
|
67
|
+
mandatory: false,
|
68
|
+
},
|
69
|
+
}),
|
70
|
+
20: Float32Field.create({
|
71
|
+
parent: this,
|
72
|
+
fieldKey: 20,
|
73
|
+
fieldName: "multiplier",
|
74
|
+
pointerRules: NoPointers,
|
75
|
+
}),
|
76
|
+
};
|
77
|
+
}
|
78
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, StringField, BooleanField, Float32Field } from "@opendaw/lib-box";
|
3
|
+
import { BoxVisitor } from ".";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export type NanoDeviceBoxFields = {
|
6
|
+
1: PointerField<Pointers.InstrumentHost>;
|
7
|
+
2: StringField;
|
8
|
+
3: StringField;
|
9
|
+
4: BooleanField;
|
10
|
+
5: BooleanField;
|
11
|
+
10: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
12
|
+
15: PointerField<Pointers.AudioFile>;
|
13
|
+
20: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
14
|
+
};
|
15
|
+
export declare class NanoDeviceBox extends Box<Pointers.Device | Pointers.Selection, NanoDeviceBoxFields> {
|
16
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<NanoDeviceBox>): NanoDeviceBox;
|
17
|
+
private constructor();
|
18
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
19
|
+
get host(): PointerField<Pointers.InstrumentHost>;
|
20
|
+
get label(): StringField;
|
21
|
+
get icon(): StringField;
|
22
|
+
get enabled(): BooleanField;
|
23
|
+
get minimized(): BooleanField;
|
24
|
+
get volume(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
25
|
+
get file(): PointerField<Pointers.AudioFile>;
|
26
|
+
get release(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
27
|
+
initializeFields(): NanoDeviceBoxFields;
|
28
|
+
}
|
29
|
+
//# sourceMappingURL=NanoDeviceBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NanoDeviceBox.d.ts","sourceRoot":"","sources":["../src/NanoDeviceBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EACL,GAAG,EAEH,QAAQ,EAER,YAAY,EACZ,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,mBAAmB,GAAG;IAChC,CAAC,EAAa,YAAY,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IACpD,CAAC,EAAc,WAAW,CAAC;IAC3B,CAAC,EAAa,WAAW,CAAC;IAC1B,CAAC,EAAsB,YAAY,CAAC;IACpC,CAAC,EAAyB,YAAY,CAAC;IACvC,EAAE,EAAmB,YAAY,CAC/B,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAAC;IACF,EAAE,EAAa,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAChD,EAAE,EAAqB,YAAY,CACjC,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAAC;CACH,CAAC;AAEF,qBAAa,aAAc,SAAQ,GAAG,CACpC,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC,SAAS,EACpC,mBAAmB,CACpB;IACC,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,aAAa,CAAC,GACrC,aAAa;IAehB,OAAO;IAMP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,IAAI,IAAI,YAAY,CAAC,QAAQ,CAAC,cAAc,CAAC,CAEhD;IAED,IAAI,KAAK,IAAI,WAAW,CAEvB;IAED,IAAI,IAAI,IAAI,WAAW,CAEtB;IAED,IAAI,OAAO,IAAI,YAAY,CAE1B;IAED,IAAI,SAAS,IAAI,YAAY,CAE5B;IAED,IAAI,MAAM,IAAI,YAAY,CACxB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAEA;IAED,IAAI,IAAI,IAAI,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,CAE3C;IAED,IAAI,OAAO,IAAI,YAAY,CACzB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAEA;IAED,gBAAgB,IAAI,mBAAmB;CAsFxC"}
|
@@ -0,0 +1,112 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, PointerField, StringField, BooleanField, Float32Field, } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class NanoDeviceBox extends Box {
|
5
|
+
static create(graph, uuid, constructor) {
|
6
|
+
return graph.stageBox(new NanoDeviceBox({
|
7
|
+
uuid,
|
8
|
+
graph,
|
9
|
+
name: "NanoDeviceBox",
|
10
|
+
pointerRules: {
|
11
|
+
accepts: [Pointers.Device, Pointers.Selection],
|
12
|
+
mandatory: false,
|
13
|
+
},
|
14
|
+
}), constructor);
|
15
|
+
}
|
16
|
+
constructor(construct) {
|
17
|
+
super(construct);
|
18
|
+
}
|
19
|
+
accept(visitor) {
|
20
|
+
return safeExecute(visitor.visitNanoDeviceBox, this);
|
21
|
+
}
|
22
|
+
get host() {
|
23
|
+
return this.getField(1);
|
24
|
+
}
|
25
|
+
get label() {
|
26
|
+
return this.getField(2);
|
27
|
+
}
|
28
|
+
get icon() {
|
29
|
+
return this.getField(3);
|
30
|
+
}
|
31
|
+
get enabled() {
|
32
|
+
return this.getField(4);
|
33
|
+
}
|
34
|
+
get minimized() {
|
35
|
+
return this.getField(5);
|
36
|
+
}
|
37
|
+
get volume() {
|
38
|
+
return this.getField(10);
|
39
|
+
}
|
40
|
+
get file() {
|
41
|
+
return this.getField(15);
|
42
|
+
}
|
43
|
+
get release() {
|
44
|
+
return this.getField(20);
|
45
|
+
}
|
46
|
+
initializeFields() {
|
47
|
+
return {
|
48
|
+
1: PointerField.create({
|
49
|
+
parent: this,
|
50
|
+
fieldKey: 1,
|
51
|
+
fieldName: "host",
|
52
|
+
pointerRules: NoPointers,
|
53
|
+
}, Pointers.InstrumentHost, true),
|
54
|
+
2: StringField.create({
|
55
|
+
parent: this,
|
56
|
+
fieldKey: 2,
|
57
|
+
fieldName: "label",
|
58
|
+
pointerRules: NoPointers,
|
59
|
+
}),
|
60
|
+
3: StringField.create({
|
61
|
+
parent: this,
|
62
|
+
fieldKey: 3,
|
63
|
+
fieldName: "icon",
|
64
|
+
pointerRules: NoPointers,
|
65
|
+
}),
|
66
|
+
4: BooleanField.create({
|
67
|
+
parent: this,
|
68
|
+
fieldKey: 4,
|
69
|
+
fieldName: "enabled",
|
70
|
+
pointerRules: NoPointers,
|
71
|
+
}, true),
|
72
|
+
5: BooleanField.create({
|
73
|
+
parent: this,
|
74
|
+
fieldKey: 5,
|
75
|
+
fieldName: "minimized",
|
76
|
+
pointerRules: NoPointers,
|
77
|
+
}, false),
|
78
|
+
10: Float32Field.create({
|
79
|
+
parent: this,
|
80
|
+
fieldKey: 10,
|
81
|
+
fieldName: "volume",
|
82
|
+
pointerRules: {
|
83
|
+
accepts: [
|
84
|
+
Pointers.Modulation,
|
85
|
+
Pointers.Automation,
|
86
|
+
Pointers.MidiControl,
|
87
|
+
],
|
88
|
+
mandatory: false,
|
89
|
+
},
|
90
|
+
}, -3),
|
91
|
+
15: PointerField.create({
|
92
|
+
parent: this,
|
93
|
+
fieldKey: 15,
|
94
|
+
fieldName: "file",
|
95
|
+
pointerRules: NoPointers,
|
96
|
+
}, Pointers.AudioFile, false),
|
97
|
+
20: Float32Field.create({
|
98
|
+
parent: this,
|
99
|
+
fieldKey: 20,
|
100
|
+
fieldName: "release",
|
101
|
+
pointerRules: {
|
102
|
+
accepts: [
|
103
|
+
Pointers.Modulation,
|
104
|
+
Pointers.Automation,
|
105
|
+
Pointers.MidiControl,
|
106
|
+
],
|
107
|
+
mandatory: false,
|
108
|
+
},
|
109
|
+
}, 0.1),
|
110
|
+
};
|
111
|
+
}
|
112
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, Int32Field, BooleanField, StringField } from "@opendaw/lib-box";
|
3
|
+
import { ClipPlaybackFields } from "./ClipPlaybackFields";
|
4
|
+
import { BoxVisitor } from ".";
|
5
|
+
import { Pointers } from "@opendaw/studio-enums";
|
6
|
+
export type NoteClipBoxFields = {
|
7
|
+
1: PointerField<Pointers.ClipCollection>;
|
8
|
+
2: PointerField<Pointers.NoteEventCollection>;
|
9
|
+
3: Int32Field;
|
10
|
+
4: ClipPlaybackFields;
|
11
|
+
10: Int32Field;
|
12
|
+
11: BooleanField;
|
13
|
+
12: StringField;
|
14
|
+
13: Int32Field;
|
15
|
+
};
|
16
|
+
export declare class NoteClipBox extends Box<Pointers.Selection | Pointers.Editing, NoteClipBoxFields> {
|
17
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<NoteClipBox>): NoteClipBox;
|
18
|
+
private constructor();
|
19
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
20
|
+
get clips(): PointerField<Pointers.ClipCollection>;
|
21
|
+
get events(): PointerField<Pointers.NoteEventCollection>;
|
22
|
+
get index(): Int32Field;
|
23
|
+
get playback(): ClipPlaybackFields;
|
24
|
+
get duration(): Int32Field;
|
25
|
+
get mute(): BooleanField;
|
26
|
+
get label(): StringField;
|
27
|
+
get hue(): Int32Field;
|
28
|
+
initializeFields(): NoteClipBoxFields;
|
29
|
+
}
|
30
|
+
//# sourceMappingURL=NoteClipBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NoteClipBox.d.ts","sourceRoot":"","sources":["../src/NoteClipBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EACL,GAAG,EAEH,QAAQ,EAER,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,CAAC,EAAc,YAAY,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IACrD,CAAC,EAAe,YAAY,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IAC3D,CAAC,EAAc,UAAU,CAAC;IAC1B,CAAC,EAAiB,kBAAkB,CAAC;IACrC,EAAE,EAAiB,UAAU,CAAC;IAC9B,EAAE,EAAa,YAAY,CAAC;IAC5B,EAAE,EAAc,WAAW,CAAC;IAC5B,EAAE,EAAY,UAAU,CAAC;CAC1B,CAAC;AAEF,qBAAa,WAAY,SAAQ,GAAG,CAClC,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,OAAO,EACrC,iBAAiB,CAClB;IACC,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,GACnC,WAAW;IAed,OAAO;IAMP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,KAAK,IAAI,YAAY,CAAC,QAAQ,CAAC,cAAc,CAAC,CAEjD;IAED,IAAI,MAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAEvD;IAED,IAAI,KAAK,IAAI,UAAU,CAEtB;IAED,IAAI,QAAQ,IAAI,kBAAkB,CAEjC;IAED,IAAI,QAAQ,IAAI,UAAU,CAEzB;IAED,IAAI,IAAI,IAAI,YAAY,CAEvB;IAED,IAAI,KAAK,IAAI,WAAW,CAEvB;IAED,IAAI,GAAG,IAAI,UAAU,CAEpB;IAED,gBAAgB,IAAI,iBAAiB;CA4DtC"}
|