@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,99 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, NoPointers, PointerField, Int32Field, BooleanField, StringField, } from "@opendaw/lib-box";
|
3
|
+
import { ClipPlaybackFields } from "./ClipPlaybackFields";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export class NoteClipBox extends Box {
|
6
|
+
static create(graph, uuid, constructor) {
|
7
|
+
return graph.stageBox(new NoteClipBox({
|
8
|
+
uuid,
|
9
|
+
graph,
|
10
|
+
name: "NoteClipBox",
|
11
|
+
pointerRules: {
|
12
|
+
accepts: [Pointers.Selection, Pointers.Editing],
|
13
|
+
mandatory: false,
|
14
|
+
},
|
15
|
+
}), constructor);
|
16
|
+
}
|
17
|
+
constructor(construct) {
|
18
|
+
super(construct);
|
19
|
+
}
|
20
|
+
accept(visitor) {
|
21
|
+
return safeExecute(visitor.visitNoteClipBox, this);
|
22
|
+
}
|
23
|
+
get clips() {
|
24
|
+
return this.getField(1);
|
25
|
+
}
|
26
|
+
get events() {
|
27
|
+
return this.getField(2);
|
28
|
+
}
|
29
|
+
get index() {
|
30
|
+
return this.getField(3);
|
31
|
+
}
|
32
|
+
get playback() {
|
33
|
+
return this.getField(4);
|
34
|
+
}
|
35
|
+
get duration() {
|
36
|
+
return this.getField(10);
|
37
|
+
}
|
38
|
+
get mute() {
|
39
|
+
return this.getField(11);
|
40
|
+
}
|
41
|
+
get label() {
|
42
|
+
return this.getField(12);
|
43
|
+
}
|
44
|
+
get hue() {
|
45
|
+
return this.getField(13);
|
46
|
+
}
|
47
|
+
initializeFields() {
|
48
|
+
return {
|
49
|
+
1: PointerField.create({
|
50
|
+
parent: this,
|
51
|
+
fieldKey: 1,
|
52
|
+
fieldName: "clips",
|
53
|
+
pointerRules: NoPointers,
|
54
|
+
}, Pointers.ClipCollection, true),
|
55
|
+
2: PointerField.create({
|
56
|
+
parent: this,
|
57
|
+
fieldKey: 2,
|
58
|
+
fieldName: "events",
|
59
|
+
pointerRules: NoPointers,
|
60
|
+
}, Pointers.NoteEventCollection, true),
|
61
|
+
3: Int32Field.create({
|
62
|
+
parent: this,
|
63
|
+
fieldKey: 3,
|
64
|
+
fieldName: "index",
|
65
|
+
pointerRules: NoPointers,
|
66
|
+
}),
|
67
|
+
4: ClipPlaybackFields.create({
|
68
|
+
parent: this,
|
69
|
+
fieldKey: 4,
|
70
|
+
fieldName: "playback",
|
71
|
+
pointerRules: NoPointers,
|
72
|
+
}),
|
73
|
+
10: Int32Field.create({
|
74
|
+
parent: this,
|
75
|
+
fieldKey: 10,
|
76
|
+
fieldName: "duration",
|
77
|
+
pointerRules: NoPointers,
|
78
|
+
}),
|
79
|
+
11: BooleanField.create({
|
80
|
+
parent: this,
|
81
|
+
fieldKey: 11,
|
82
|
+
fieldName: "mute",
|
83
|
+
pointerRules: NoPointers,
|
84
|
+
}),
|
85
|
+
12: StringField.create({
|
86
|
+
parent: this,
|
87
|
+
fieldKey: 12,
|
88
|
+
fieldName: "label",
|
89
|
+
pointerRules: NoPointers,
|
90
|
+
}),
|
91
|
+
13: Int32Field.create({
|
92
|
+
parent: this,
|
93
|
+
fieldKey: 13,
|
94
|
+
fieldName: "hue",
|
95
|
+
pointerRules: NoPointers,
|
96
|
+
}),
|
97
|
+
};
|
98
|
+
}
|
99
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, Int32Field, Float32Field } from "@opendaw/lib-box";
|
3
|
+
import { BoxVisitor } from ".";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export type NoteEventBoxFields = {
|
6
|
+
1: PointerField<Pointers.NoteEvents>;
|
7
|
+
10: Int32Field;
|
8
|
+
11: Int32Field;
|
9
|
+
20: Int32Field;
|
10
|
+
21: Float32Field;
|
11
|
+
22: Int32Field;
|
12
|
+
23: Float32Field;
|
13
|
+
24: Float32Field;
|
14
|
+
25: Int32Field;
|
15
|
+
};
|
16
|
+
export declare class NoteEventBox extends Box<Pointers.Selection | Pointers.NoteEventFeature, NoteEventBoxFields> {
|
17
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<NoteEventBox>): NoteEventBox;
|
18
|
+
private constructor();
|
19
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
20
|
+
get events(): PointerField<Pointers.NoteEvents>;
|
21
|
+
get position(): Int32Field;
|
22
|
+
get duration(): Int32Field;
|
23
|
+
get pitch(): Int32Field;
|
24
|
+
get velocity(): Float32Field;
|
25
|
+
get playCount(): Int32Field;
|
26
|
+
get playCurve(): Float32Field;
|
27
|
+
get cent(): Float32Field;
|
28
|
+
get chance(): Int32Field;
|
29
|
+
initializeFields(): NoteEventBoxFields;
|
30
|
+
}
|
31
|
+
//# sourceMappingURL=NoteEventBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NoteEventBox.d.ts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AQ,IAAI,YAAY,CAE3B;IAED,IAAI,SAAS,IAAI,UAAU,CAE1B;IAED,IAAI,SAAS,IAAI,YAAY,CAE5B;IAED,IAAI,IAAI,IAAI,YAAY,CAEvB;IAED,IAAI,MAAM,IAAI,UAAU,CAEvB;IAED,gBAAgB,IAAI,kBAAkB;CAmFvC"}
|
@@ -0,0 +1,107 @@
|
|
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 NoteEventBox extends Box {
|
5
|
+
static create(graph, uuid, constructor) {
|
6
|
+
return graph.stageBox(new NoteEventBox({
|
7
|
+
uuid,
|
8
|
+
graph,
|
9
|
+
name: "NoteEventBox",
|
10
|
+
pointerRules: {
|
11
|
+
accepts: [Pointers.Selection, Pointers.NoteEventFeature],
|
12
|
+
mandatory: false,
|
13
|
+
},
|
14
|
+
}), constructor);
|
15
|
+
}
|
16
|
+
constructor(construct) {
|
17
|
+
super(construct);
|
18
|
+
}
|
19
|
+
accept(visitor) {
|
20
|
+
return safeExecute(visitor.visitNoteEventBox, this);
|
21
|
+
}
|
22
|
+
get events() {
|
23
|
+
return this.getField(1);
|
24
|
+
}
|
25
|
+
get position() {
|
26
|
+
return this.getField(10);
|
27
|
+
}
|
28
|
+
get duration() {
|
29
|
+
return this.getField(11);
|
30
|
+
}
|
31
|
+
get pitch() {
|
32
|
+
return this.getField(20);
|
33
|
+
}
|
34
|
+
get velocity() {
|
35
|
+
return this.getField(21);
|
36
|
+
}
|
37
|
+
get playCount() {
|
38
|
+
return this.getField(22);
|
39
|
+
}
|
40
|
+
get playCurve() {
|
41
|
+
return this.getField(23);
|
42
|
+
}
|
43
|
+
get cent() {
|
44
|
+
return this.getField(24);
|
45
|
+
}
|
46
|
+
get chance() {
|
47
|
+
return this.getField(25);
|
48
|
+
}
|
49
|
+
initializeFields() {
|
50
|
+
return {
|
51
|
+
1: PointerField.create({
|
52
|
+
parent: this,
|
53
|
+
fieldKey: 1,
|
54
|
+
fieldName: "events",
|
55
|
+
pointerRules: NoPointers,
|
56
|
+
}, Pointers.NoteEvents, true),
|
57
|
+
10: Int32Field.create({
|
58
|
+
parent: this,
|
59
|
+
fieldKey: 10,
|
60
|
+
fieldName: "position",
|
61
|
+
pointerRules: NoPointers,
|
62
|
+
}),
|
63
|
+
11: Int32Field.create({
|
64
|
+
parent: this,
|
65
|
+
fieldKey: 11,
|
66
|
+
fieldName: "duration",
|
67
|
+
pointerRules: NoPointers,
|
68
|
+
}, 240),
|
69
|
+
20: Int32Field.create({
|
70
|
+
parent: this,
|
71
|
+
fieldKey: 20,
|
72
|
+
fieldName: "pitch",
|
73
|
+
pointerRules: NoPointers,
|
74
|
+
}, 60),
|
75
|
+
21: Float32Field.create({
|
76
|
+
parent: this,
|
77
|
+
fieldKey: 21,
|
78
|
+
fieldName: "velocity",
|
79
|
+
pointerRules: NoPointers,
|
80
|
+
}, 0.7874015748031497),
|
81
|
+
22: Int32Field.create({
|
82
|
+
parent: this,
|
83
|
+
fieldKey: 22,
|
84
|
+
fieldName: "playCount",
|
85
|
+
pointerRules: NoPointers,
|
86
|
+
}, 1),
|
87
|
+
23: Float32Field.create({
|
88
|
+
parent: this,
|
89
|
+
fieldKey: 23,
|
90
|
+
fieldName: "playCurve",
|
91
|
+
pointerRules: NoPointers,
|
92
|
+
}, 0),
|
93
|
+
24: Float32Field.create({
|
94
|
+
parent: this,
|
95
|
+
fieldKey: 24,
|
96
|
+
fieldName: "cent",
|
97
|
+
pointerRules: NoPointers,
|
98
|
+
}, 0),
|
99
|
+
25: Int32Field.create({
|
100
|
+
parent: this,
|
101
|
+
fieldKey: 25,
|
102
|
+
fieldName: "chance",
|
103
|
+
pointerRules: NoPointers,
|
104
|
+
}, 100),
|
105
|
+
};
|
106
|
+
}
|
107
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, Field } from "@opendaw/lib-box";
|
3
|
+
import { BoxVisitor } from ".";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export type NoteEventCollectionBoxFields = {
|
6
|
+
1: Field<Pointers.NoteEvents>;
|
7
|
+
2: Field<Pointers.NoteEventCollection>;
|
8
|
+
};
|
9
|
+
export declare class NoteEventCollectionBox extends Box<Pointers.Selection, NoteEventCollectionBoxFields> {
|
10
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<NoteEventCollectionBox>): NoteEventCollectionBox;
|
11
|
+
private constructor();
|
12
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
13
|
+
get events(): Field<Pointers.NoteEvents>;
|
14
|
+
get owners(): Field<Pointers.NoteEventCollection>;
|
15
|
+
initializeFields(): NoteEventCollectionBoxFields;
|
16
|
+
}
|
17
|
+
//# sourceMappingURL=NoteEventCollectionBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NoteEventCollectionBox.d.ts","sourceRoot":"","sources":["../src/NoteEventCollectionBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,GAAG,EAAgB,QAAQ,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,4BAA4B,GAAG;IACzC,CAAC,EAAe,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC,EAAe,KAAK,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;CACrD,CAAC;AAEF,qBAAa,sBAAuB,SAAQ,GAAG,CAC7C,QAAQ,CAAC,SAAS,EAClB,4BAA4B,CAC7B;IACC,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,sBAAsB,CAAC,GAC9C,sBAAsB;IAYzB,OAAO;IAIP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAEvC;IAED,IAAI,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAEhD;IAED,gBAAgB,IAAI,4BAA4B;CAmBjD"}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { safeExecute } from "@opendaw/lib-std";
|
2
|
+
import { Box, Field } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class NoteEventCollectionBox extends Box {
|
5
|
+
static create(graph, uuid, constructor) {
|
6
|
+
return graph.stageBox(new NoteEventCollectionBox({
|
7
|
+
uuid,
|
8
|
+
graph,
|
9
|
+
name: "NoteEventCollectionBox",
|
10
|
+
pointerRules: { accepts: [Pointers.Selection], mandatory: false },
|
11
|
+
}), constructor);
|
12
|
+
}
|
13
|
+
constructor(construct) {
|
14
|
+
super(construct);
|
15
|
+
}
|
16
|
+
accept(visitor) {
|
17
|
+
return safeExecute(visitor.visitNoteEventCollectionBox, this);
|
18
|
+
}
|
19
|
+
get events() {
|
20
|
+
return this.getField(1);
|
21
|
+
}
|
22
|
+
get owners() {
|
23
|
+
return this.getField(2);
|
24
|
+
}
|
25
|
+
initializeFields() {
|
26
|
+
return {
|
27
|
+
1: Field.hook({
|
28
|
+
parent: this,
|
29
|
+
fieldKey: 1,
|
30
|
+
fieldName: "events",
|
31
|
+
pointerRules: { accepts: [Pointers.NoteEvents], mandatory: false },
|
32
|
+
}),
|
33
|
+
2: Field.hook({
|
34
|
+
parent: this,
|
35
|
+
fieldKey: 2,
|
36
|
+
fieldName: "owners",
|
37
|
+
pointerRules: {
|
38
|
+
accepts: [Pointers.NoteEventCollection],
|
39
|
+
mandatory: true,
|
40
|
+
},
|
41
|
+
}),
|
42
|
+
};
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,21 @@
|
|
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 NoteEventRepeatBoxFields = {
|
6
|
+
1: PointerField<Pointers.NoteEventFeature>;
|
7
|
+
2: Int32Field;
|
8
|
+
3: Float32Field;
|
9
|
+
4: Float32Field;
|
10
|
+
};
|
11
|
+
export declare class NoteEventRepeatBox extends Box<UnreferenceableType, NoteEventRepeatBoxFields> {
|
12
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<NoteEventRepeatBox>): NoteEventRepeatBox;
|
13
|
+
private constructor();
|
14
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
15
|
+
get event(): PointerField<Pointers.NoteEventFeature>;
|
16
|
+
get count(): Int32Field;
|
17
|
+
get curve(): Float32Field;
|
18
|
+
get length(): Float32Field;
|
19
|
+
initializeFields(): NoteEventRepeatBoxFields;
|
20
|
+
}
|
21
|
+
//# sourceMappingURL=NoteEventRepeatBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NoteEventRepeatBox.d.ts","sourceRoot":"","sources":["../src/NoteEventRepeatBox.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,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,wBAAwB,GAAG;IACrC,CAAC,EAAc,YAAY,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACvD,CAAC,EAAiB,UAAU,CAAC;IAC7B,CAAC,EAAiB,YAAY,CAAC;IAC/B,CAAC,EAAkB,YAAY,CAAC;CACjC,CAAC;AAEF,qBAAa,kBAAmB,SAAQ,GAAG,CACzC,mBAAmB,EACnB,wBAAwB,CACzB;IACC,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,kBAAkB,CAAC,GAC1C,kBAAkB;IAYrB,OAAO;IAIP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,KAAK,IAAI,YAAY,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAEnD;IAED,IAAI,KAAK,IAAI,UAAU,CAEtB;IAED,IAAI,KAAK,IAAI,YAAY,CAExB;IAED,IAAI,MAAM,IAAI,YAAY,CAEzB;IAED,gBAAgB,IAAI,wBAAwB;CAyC7C"}
|
@@ -0,0 +1,59 @@
|
|
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 NoteEventRepeatBox extends Box {
|
5
|
+
static create(graph, uuid, constructor) {
|
6
|
+
return graph.stageBox(new NoteEventRepeatBox({
|
7
|
+
uuid,
|
8
|
+
graph,
|
9
|
+
name: "NoteEventRepeatBox",
|
10
|
+
pointerRules: NoPointers,
|
11
|
+
}), constructor);
|
12
|
+
}
|
13
|
+
constructor(construct) {
|
14
|
+
super(construct);
|
15
|
+
}
|
16
|
+
accept(visitor) {
|
17
|
+
return safeExecute(visitor.visitNoteEventRepeatBox, this);
|
18
|
+
}
|
19
|
+
get event() {
|
20
|
+
return this.getField(1);
|
21
|
+
}
|
22
|
+
get count() {
|
23
|
+
return this.getField(2);
|
24
|
+
}
|
25
|
+
get curve() {
|
26
|
+
return this.getField(3);
|
27
|
+
}
|
28
|
+
get length() {
|
29
|
+
return this.getField(4);
|
30
|
+
}
|
31
|
+
initializeFields() {
|
32
|
+
return {
|
33
|
+
1: PointerField.create({
|
34
|
+
parent: this,
|
35
|
+
fieldKey: 1,
|
36
|
+
fieldName: "event",
|
37
|
+
pointerRules: NoPointers,
|
38
|
+
}, Pointers.NoteEventFeature, true),
|
39
|
+
2: Int32Field.create({
|
40
|
+
parent: this,
|
41
|
+
fieldKey: 2,
|
42
|
+
fieldName: "count",
|
43
|
+
pointerRules: NoPointers,
|
44
|
+
}, 1),
|
45
|
+
3: Float32Field.create({
|
46
|
+
parent: this,
|
47
|
+
fieldKey: 3,
|
48
|
+
fieldName: "curve",
|
49
|
+
pointerRules: NoPointers,
|
50
|
+
}, 0),
|
51
|
+
4: Float32Field.create({
|
52
|
+
parent: this,
|
53
|
+
fieldKey: 4,
|
54
|
+
fieldName: "length",
|
55
|
+
pointerRules: NoPointers,
|
56
|
+
}, 1),
|
57
|
+
};
|
58
|
+
}
|
59
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, Int32Field, BooleanField, StringField } from "@opendaw/lib-box";
|
3
|
+
import { BoxVisitor } from ".";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export type NoteRegionBoxFields = {
|
6
|
+
1: PointerField<Pointers.RegionCollection>;
|
7
|
+
2: PointerField<Pointers.NoteEventCollection>;
|
8
|
+
10: Int32Field;
|
9
|
+
11: Int32Field;
|
10
|
+
12: Int32Field;
|
11
|
+
13: Int32Field;
|
12
|
+
14: Int32Field;
|
13
|
+
15: BooleanField;
|
14
|
+
16: StringField;
|
15
|
+
17: Int32Field;
|
16
|
+
};
|
17
|
+
export declare class NoteRegionBox extends Box<Pointers.Selection | Pointers.Editing, NoteRegionBoxFields> {
|
18
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<NoteRegionBox>): NoteRegionBox;
|
19
|
+
private constructor();
|
20
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
21
|
+
get regions(): PointerField<Pointers.RegionCollection>;
|
22
|
+
get events(): PointerField<Pointers.NoteEventCollection>;
|
23
|
+
get position(): Int32Field;
|
24
|
+
get duration(): Int32Field;
|
25
|
+
get loopOffset(): Int32Field;
|
26
|
+
get loopDuration(): Int32Field;
|
27
|
+
get eventOffset(): Int32Field;
|
28
|
+
get mute(): BooleanField;
|
29
|
+
get label(): StringField;
|
30
|
+
get hue(): Int32Field;
|
31
|
+
initializeFields(): NoteRegionBoxFields;
|
32
|
+
}
|
33
|
+
//# sourceMappingURL=NoteRegionBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NoteRegionBox.d.ts","sourceRoot":"","sources":["../src/NoteRegionBox.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,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,EAAgB,YAAY,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACzD,CAAC,EAAe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BooleanField, StringField, } from "@opendaw/lib-box";
|
3
|
+
import { Pointers } from "@opendaw/studio-enums";
|
4
|
+
export class NoteRegionBox extends Box {
|
5
|
+
static create(graph, uuid, constructor) {
|
6
|
+
return graph.stageBox(new NoteRegionBox({
|
7
|
+
uuid,
|
8
|
+
graph,
|
9
|
+
name: "NoteRegionBox",
|
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.visitNoteRegionBox, this);
|
21
|
+
}
|
22
|
+
get regions() {
|
23
|
+
return this.getField(1);
|
24
|
+
}
|
25
|
+
get events() {
|
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 eventOffset() {
|
41
|
+
return this.getField(14);
|
42
|
+
}
|
43
|
+
get mute() {
|
44
|
+
return this.getField(15);
|
45
|
+
}
|
46
|
+
get label() {
|
47
|
+
return this.getField(16);
|
48
|
+
}
|
49
|
+
get hue() {
|
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: "events",
|
64
|
+
pointerRules: NoPointers,
|
65
|
+
}, Pointers.NoteEventCollection, 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: Int32Field.create({
|
91
|
+
parent: this,
|
92
|
+
fieldKey: 14,
|
93
|
+
fieldName: "eventOffset",
|
94
|
+
pointerRules: NoPointers,
|
95
|
+
}),
|
96
|
+
15: BooleanField.create({
|
97
|
+
parent: this,
|
98
|
+
fieldKey: 15,
|
99
|
+
fieldName: "mute",
|
100
|
+
pointerRules: NoPointers,
|
101
|
+
}),
|
102
|
+
16: StringField.create({
|
103
|
+
parent: this,
|
104
|
+
fieldKey: 16,
|
105
|
+
fieldName: "label",
|
106
|
+
pointerRules: NoPointers,
|
107
|
+
}),
|
108
|
+
17: Int32Field.create({
|
109
|
+
parent: this,
|
110
|
+
fieldKey: 17,
|
111
|
+
fieldName: "hue",
|
112
|
+
pointerRules: NoPointers,
|
113
|
+
}),
|
114
|
+
};
|
115
|
+
}
|
116
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import "@opendaw/lib-std";
|
2
|
+
import { ObjectField, FieldConstruct, Int32Field, Float32Field, BooleanField, UnreferenceableType } from "@opendaw/lib-box";
|
3
|
+
export type PianoModeFields = {
|
4
|
+
1: Int32Field;
|
5
|
+
2: Float32Field;
|
6
|
+
3: Float32Field;
|
7
|
+
4: BooleanField;
|
8
|
+
5: Int32Field;
|
9
|
+
};
|
10
|
+
export declare class PianoMode extends ObjectField<PianoModeFields> {
|
11
|
+
static create(construct: FieldConstruct<UnreferenceableType>): PianoMode;
|
12
|
+
private constructor();
|
13
|
+
get keyboard(): Int32Field;
|
14
|
+
get timeRangeInQuarters(): Float32Field;
|
15
|
+
get noteScale(): Float32Field;
|
16
|
+
get noteLabels(): BooleanField;
|
17
|
+
get transpose(): Int32Field;
|
18
|
+
initializeFields(): PianoModeFields;
|
19
|
+
}
|
20
|
+
//# sourceMappingURL=PianoMode.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"PianoMode.d.ts","sourceRoot":"","sources":["../src/PianoMode.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EACL,WAAW,EACX,cAAc,EAEd,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAW1B,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,EAAoB,UAAU,CAAC;IAChC,CAAC,EAA+B,YAAY,CAAC;IAC7C,CAAC,EAAuB,YAAY,CAAC;IACrC,CAAC,EAAyB,YAAY,CAAC;IACvC,CAAC,EAAqB,UAAU,CAAC;CAClC,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,QAAQ,IAAI,UAAU,CAEzB;IAED,IAAI,mBAAmB,IAAI,YAAY,CAEtC;IAED,IAAI,SAAS,IAAI,YAAY,CAE5B;IAED,IAAI,UAAU,IAAI,YAAY,CAE7B;IAED,IAAI,SAAS,IAAI,UAAU,CAE1B;IAED,gBAAgB,IAAI,eAAe;CAiDpC"}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import "@opendaw/lib-std";
|
2
|
+
import { ObjectField, NoPointers, Int32Field, Float32Field, BooleanField, } from "@opendaw/lib-box";
|
3
|
+
export class PianoMode extends ObjectField {
|
4
|
+
static create(construct) {
|
5
|
+
return new PianoMode(construct);
|
6
|
+
}
|
7
|
+
constructor(construct) {
|
8
|
+
super(construct);
|
9
|
+
}
|
10
|
+
get keyboard() {
|
11
|
+
return this.getField(1);
|
12
|
+
}
|
13
|
+
get timeRangeInQuarters() {
|
14
|
+
return this.getField(2);
|
15
|
+
}
|
16
|
+
get noteScale() {
|
17
|
+
return this.getField(3);
|
18
|
+
}
|
19
|
+
get noteLabels() {
|
20
|
+
return this.getField(4);
|
21
|
+
}
|
22
|
+
get transpose() {
|
23
|
+
return this.getField(5);
|
24
|
+
}
|
25
|
+
initializeFields() {
|
26
|
+
return {
|
27
|
+
1: Int32Field.create({
|
28
|
+
parent: this,
|
29
|
+
fieldKey: 1,
|
30
|
+
fieldName: "keyboard",
|
31
|
+
pointerRules: NoPointers,
|
32
|
+
}, 0),
|
33
|
+
2: Float32Field.create({
|
34
|
+
parent: this,
|
35
|
+
fieldKey: 2,
|
36
|
+
fieldName: "timeRangeInQuarters",
|
37
|
+
pointerRules: NoPointers,
|
38
|
+
}, 8),
|
39
|
+
3: Float32Field.create({
|
40
|
+
parent: this,
|
41
|
+
fieldKey: 3,
|
42
|
+
fieldName: "noteScale",
|
43
|
+
pointerRules: NoPointers,
|
44
|
+
}, 1.5),
|
45
|
+
4: BooleanField.create({
|
46
|
+
parent: this,
|
47
|
+
fieldKey: 4,
|
48
|
+
fieldName: "noteLabels",
|
49
|
+
pointerRules: NoPointers,
|
50
|
+
}, true),
|
51
|
+
5: Int32Field.create({
|
52
|
+
parent: this,
|
53
|
+
fieldKey: 5,
|
54
|
+
fieldName: "transpose",
|
55
|
+
pointerRules: NoPointers,
|
56
|
+
}, 0),
|
57
|
+
};
|
58
|
+
}
|
59
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
|
2
|
+
import { Box, BoxGraph, PointerField, Int32Field, StringField, BooleanField, Float32Field } from "@opendaw/lib-box";
|
3
|
+
import { BoxVisitor } from ".";
|
4
|
+
import { Pointers } from "@opendaw/studio-enums";
|
5
|
+
export type PitchDeviceBoxFields = {
|
6
|
+
1: PointerField<Pointers.MidiEffectHost>;
|
7
|
+
2: Int32Field;
|
8
|
+
3: StringField;
|
9
|
+
4: BooleanField;
|
10
|
+
5: BooleanField;
|
11
|
+
10: Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
12
|
+
11: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
13
|
+
12: Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
14
|
+
};
|
15
|
+
export declare class PitchDeviceBox extends Box<Pointers.Device | Pointers.Selection, PitchDeviceBoxFields> {
|
16
|
+
static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<PitchDeviceBox>): PitchDeviceBox;
|
17
|
+
private constructor();
|
18
|
+
accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
|
19
|
+
get host(): PointerField<Pointers.MidiEffectHost>;
|
20
|
+
get index(): Int32Field;
|
21
|
+
get label(): StringField;
|
22
|
+
get enabled(): BooleanField;
|
23
|
+
get minimized(): BooleanField;
|
24
|
+
get semiTones(): Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
25
|
+
get cents(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
26
|
+
get octaves(): Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
|
27
|
+
initializeFields(): PitchDeviceBoxFields;
|
28
|
+
}
|
29
|
+
//# sourceMappingURL=PitchDeviceBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"PitchDeviceBox.d.ts","sourceRoot":"","sources":["../src/PitchDeviceBox.ts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