@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.
Files changed (185) hide show
  1. package/README.md +1 -0
  2. package/dist/ArpeggioDeviceBox.d.ts +35 -0
  3. package/dist/ArpeggioDeviceBox.d.ts.map +1 -0
  4. package/dist/ArpeggioDeviceBox.js +167 -0
  5. package/dist/AudioBusBox.d.ts +29 -0
  6. package/dist/AudioBusBox.d.ts.map +1 -0
  7. package/dist/AudioBusBox.js +95 -0
  8. package/dist/AudioClipBox.d.ts +32 -0
  9. package/dist/AudioClipBox.d.ts.map +1 -0
  10. package/dist/AudioClipBox.js +108 -0
  11. package/dist/AudioFileBox.d.ts +19 -0
  12. package/dist/AudioFileBox.d.ts.map +1 -0
  13. package/dist/AudioFileBox.js +50 -0
  14. package/dist/AudioRegionBox.d.ts +33 -0
  15. package/dist/AudioRegionBox.d.ts.map +1 -0
  16. package/dist/AudioRegionBox.js +116 -0
  17. package/dist/AudioUnitBox.d.ts +41 -0
  18. package/dist/AudioUnitBox.d.ts.map +1 -0
  19. package/dist/AudioUnitBox.js +183 -0
  20. package/dist/AuxSendBox.d.ts +25 -0
  21. package/dist/AuxSendBox.d.ts.map +1 -0
  22. package/dist/AuxSendBox.js +91 -0
  23. package/dist/ClashPattern.d.ts +17 -0
  24. package/dist/ClashPattern.d.ts.map +1 -0
  25. package/dist/ClashPattern.js +42 -0
  26. package/dist/ClashStep.d.ts +13 -0
  27. package/dist/ClashStep.d.ts.map +1 -0
  28. package/dist/ClashStep.js +24 -0
  29. package/dist/ClipPlaybackFields.d.ts +22 -0
  30. package/dist/ClipPlaybackFields.d.ts.map +1 -0
  31. package/dist/ClipPlaybackFields.js +68 -0
  32. package/dist/DelayDeviceBox.d.ts +35 -0
  33. package/dist/DelayDeviceBox.d.ts.map +1 -0
  34. package/dist/DelayDeviceBox.js +167 -0
  35. package/dist/DeviceClashBox.d.ts +38 -0
  36. package/dist/DeviceClashBox.d.ts.map +1 -0
  37. package/dist/DeviceClashBox.js +177 -0
  38. package/dist/DeviceInterfaceKnobBox.d.ts +23 -0
  39. package/dist/DeviceInterfaceKnobBox.d.ts.map +1 -0
  40. package/dist/DeviceInterfaceKnobBox.js +68 -0
  41. package/dist/DeviceUserInterface.d.ts +13 -0
  42. package/dist/DeviceUserInterface.d.ts.map +1 -0
  43. package/dist/DeviceUserInterface.js +27 -0
  44. package/dist/GrooveShuffleBox.d.ts +19 -0
  45. package/dist/GrooveShuffleBox.d.ts.map +1 -0
  46. package/dist/GrooveShuffleBox.js +64 -0
  47. package/dist/LoopArea.d.ts +16 -0
  48. package/dist/LoopArea.d.ts.map +1 -0
  49. package/dist/LoopArea.js +41 -0
  50. package/dist/MarkerBox.d.ts +23 -0
  51. package/dist/MarkerBox.d.ts.map +1 -0
  52. package/dist/MarkerBox.js +68 -0
  53. package/dist/MarkerTrack.d.ts +17 -0
  54. package/dist/MarkerTrack.d.ts.map +1 -0
  55. package/dist/MarkerTrack.js +42 -0
  56. package/dist/ModularAudioInputBox.d.ts +18 -0
  57. package/dist/ModularAudioInputBox.d.ts.map +1 -0
  58. package/dist/ModularAudioInputBox.js +45 -0
  59. package/dist/ModularAudioOutputBox.d.ts +18 -0
  60. package/dist/ModularAudioOutputBox.d.ts.map +1 -0
  61. package/dist/ModularAudioOutputBox.js +45 -0
  62. package/dist/ModularBox.d.ts +25 -0
  63. package/dist/ModularBox.d.ts.map +1 -0
  64. package/dist/ModularBox.js +83 -0
  65. package/dist/ModularDeviceBox.d.ts +28 -0
  66. package/dist/ModularDeviceBox.d.ts.map +1 -0
  67. package/dist/ModularDeviceBox.js +90 -0
  68. package/dist/ModuleAttributes.d.ts +23 -0
  69. package/dist/ModuleAttributes.d.ts.map +1 -0
  70. package/dist/ModuleAttributes.js +69 -0
  71. package/dist/ModuleConnectionBox.d.ts +19 -0
  72. package/dist/ModuleConnectionBox.d.ts.map +1 -0
  73. package/dist/ModuleConnectionBox.js +50 -0
  74. package/dist/ModuleDelayBox.d.ts +22 -0
  75. package/dist/ModuleDelayBox.d.ts.map +1 -0
  76. package/dist/ModuleDelayBox.js +69 -0
  77. package/dist/ModuleGainBox.d.ts +22 -0
  78. package/dist/ModuleGainBox.d.ts.map +1 -0
  79. package/dist/ModuleGainBox.js +69 -0
  80. package/dist/ModuleMultiplierBox.d.ts +24 -0
  81. package/dist/ModuleMultiplierBox.d.ts.map +1 -0
  82. package/dist/ModuleMultiplierBox.js +78 -0
  83. package/dist/NanoDeviceBox.d.ts +29 -0
  84. package/dist/NanoDeviceBox.d.ts.map +1 -0
  85. package/dist/NanoDeviceBox.js +112 -0
  86. package/dist/NoteClipBox.d.ts +30 -0
  87. package/dist/NoteClipBox.d.ts.map +1 -0
  88. package/dist/NoteClipBox.js +99 -0
  89. package/dist/NoteEventBox.d.ts +31 -0
  90. package/dist/NoteEventBox.d.ts.map +1 -0
  91. package/dist/NoteEventBox.js +107 -0
  92. package/dist/NoteEventCollectionBox.d.ts +17 -0
  93. package/dist/NoteEventCollectionBox.d.ts.map +1 -0
  94. package/dist/NoteEventCollectionBox.js +44 -0
  95. package/dist/NoteEventRepeatBox.d.ts +21 -0
  96. package/dist/NoteEventRepeatBox.d.ts.map +1 -0
  97. package/dist/NoteEventRepeatBox.js +59 -0
  98. package/dist/NoteRegionBox.d.ts +33 -0
  99. package/dist/NoteRegionBox.d.ts.map +1 -0
  100. package/dist/NoteRegionBox.js +116 -0
  101. package/dist/PianoMode.d.ts +20 -0
  102. package/dist/PianoMode.d.ts.map +1 -0
  103. package/dist/PianoMode.js +59 -0
  104. package/dist/PitchDeviceBox.d.ts +29 -0
  105. package/dist/PitchDeviceBox.d.ts.map +1 -0
  106. package/dist/PitchDeviceBox.js +119 -0
  107. package/dist/PlayfieldDeviceBox.d.ts +25 -0
  108. package/dist/PlayfieldDeviceBox.d.ts.map +1 -0
  109. package/dist/PlayfieldDeviceBox.js +80 -0
  110. package/dist/PlayfieldSampleBox.d.ts +51 -0
  111. package/dist/PlayfieldSampleBox.d.ts.map +1 -0
  112. package/dist/PlayfieldSampleBox.js +229 -0
  113. package/dist/RevampBell.d.ts +19 -0
  114. package/dist/RevampBell.d.ts.map +1 -0
  115. package/dist/RevampBell.js +79 -0
  116. package/dist/RevampDeviceBox.d.ts +42 -0
  117. package/dist/RevampDeviceBox.d.ts.map +1 -0
  118. package/dist/RevampDeviceBox.js +153 -0
  119. package/dist/RevampPass.d.ts +19 -0
  120. package/dist/RevampPass.d.ts.map +1 -0
  121. package/dist/RevampPass.js +79 -0
  122. package/dist/RevampShelf.d.ts +17 -0
  123. package/dist/RevampShelf.d.ts.map +1 -0
  124. package/dist/RevampShelf.js +63 -0
  125. package/dist/ReverbDeviceBox.d.ts +35 -0
  126. package/dist/ReverbDeviceBox.d.ts.map +1 -0
  127. package/dist/ReverbDeviceBox.js +167 -0
  128. package/dist/RootBox.d.ts +34 -0
  129. package/dist/RootBox.d.ts.map +1 -0
  130. package/dist/RootBox.js +109 -0
  131. package/dist/SelectionBox.d.ts +17 -0
  132. package/dist/SelectionBox.d.ts.map +1 -0
  133. package/dist/SelectionBox.js +41 -0
  134. package/dist/Signature.d.ts +14 -0
  135. package/dist/Signature.d.ts.map +1 -0
  136. package/dist/Signature.js +32 -0
  137. package/dist/StepAutomationBox.d.ts +19 -0
  138. package/dist/StepAutomationBox.d.ts.map +1 -0
  139. package/dist/StepAutomationBox.js +50 -0
  140. package/dist/StereoToolDeviceBox.d.ts +37 -0
  141. package/dist/StereoToolDeviceBox.d.ts.map +1 -0
  142. package/dist/StereoToolDeviceBox.js +176 -0
  143. package/dist/TapeDeviceBox.d.ts +31 -0
  144. package/dist/TapeDeviceBox.d.ts.map +1 -0
  145. package/dist/TapeDeviceBox.js +135 -0
  146. package/dist/TimelineBox.d.ts +30 -0
  147. package/dist/TimelineBox.d.ts.map +1 -0
  148. package/dist/TimelineBox.js +89 -0
  149. package/dist/TrackBox.d.ts +29 -0
  150. package/dist/TrackBox.d.ts.map +1 -0
  151. package/dist/TrackBox.js +101 -0
  152. package/dist/UserInterfaceBox.d.ts +23 -0
  153. package/dist/UserInterfaceBox.d.ts.map +1 -0
  154. package/dist/UserInterfaceBox.js +68 -0
  155. package/dist/ValueClipBox.d.ts +30 -0
  156. package/dist/ValueClipBox.d.ts.map +1 -0
  157. package/dist/ValueClipBox.js +99 -0
  158. package/dist/ValueEventBox.d.ts +25 -0
  159. package/dist/ValueEventBox.d.ts.map +1 -0
  160. package/dist/ValueEventBox.js +80 -0
  161. package/dist/ValueEventCollectionBox.d.ts +17 -0
  162. package/dist/ValueEventCollectionBox.d.ts.map +1 -0
  163. package/dist/ValueEventCollectionBox.js +44 -0
  164. package/dist/ValueEventCurveBox.d.ts +17 -0
  165. package/dist/ValueEventCurveBox.d.ts.map +1 -0
  166. package/dist/ValueEventCurveBox.js +41 -0
  167. package/dist/ValueRegionBox.d.ts +31 -0
  168. package/dist/ValueRegionBox.d.ts.map +1 -0
  169. package/dist/ValueRegionBox.js +107 -0
  170. package/dist/VaporisateurDeviceBox.d.ts +41 -0
  171. package/dist/VaporisateurDeviceBox.d.ts.map +1 -0
  172. package/dist/VaporisateurDeviceBox.js +215 -0
  173. package/dist/ZeitgeistDeviceBox.d.ts +25 -0
  174. package/dist/ZeitgeistDeviceBox.d.ts.map +1 -0
  175. package/dist/ZeitgeistDeviceBox.js +80 -0
  176. package/dist/index.d.ts +107 -0
  177. package/dist/index.d.ts.map +1 -0
  178. package/dist/index.js +115 -0
  179. package/dist/io.d.ts +56 -0
  180. package/dist/io.d.ts.map +1 -0
  181. package/dist/io.js +120 -0
  182. package/dist/visitor.d.ts +51 -0
  183. package/dist/visitor.d.ts.map +1 -0
  184. package/dist/visitor.js +1 -0
  185. package/package.json +35 -0
@@ -0,0 +1,35 @@
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 DelayDeviceBoxFields = {
6
+ 1: PointerField<Pointers.AudioEffectHost>;
7
+ 2: Int32Field;
8
+ 3: StringField;
9
+ 4: BooleanField;
10
+ 5: BooleanField;
11
+ 10: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
12
+ 11: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
13
+ 12: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
14
+ 13: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
15
+ 14: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
16
+ 15: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
17
+ };
18
+ export declare class DelayDeviceBox extends Box<Pointers.Device | Pointers.Selection, DelayDeviceBoxFields> {
19
+ static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<DelayDeviceBox>): DelayDeviceBox;
20
+ private constructor();
21
+ accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
22
+ get host(): PointerField<Pointers.AudioEffectHost>;
23
+ get index(): Int32Field;
24
+ get label(): StringField;
25
+ get enabled(): BooleanField;
26
+ get minimized(): BooleanField;
27
+ get delay(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
28
+ get feedback(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
29
+ get cross(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
30
+ get filter(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
31
+ get wet(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
32
+ get dry(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
33
+ initializeFields(): DelayDeviceBoxFields;
34
+ }
35
+ //# sourceMappingURL=DelayDeviceBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"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ACrB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAEA;IAED,gBAAgB,IAAI,oBAAoB;CA4IzC"}
@@ -0,0 +1,167 @@
1
+ import { safeExecute } from "@opendaw/lib-std";
2
+ import { Box, NoPointers, PointerField, Int32Field, StringField, BooleanField, Float32Field, } from "@opendaw/lib-box";
3
+ import { Pointers } from "@opendaw/studio-enums";
4
+ export class DelayDeviceBox extends Box {
5
+ static create(graph, uuid, constructor) {
6
+ return graph.stageBox(new DelayDeviceBox({
7
+ uuid,
8
+ graph,
9
+ name: "DelayDeviceBox",
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.visitDelayDeviceBox, this);
21
+ }
22
+ get host() {
23
+ return this.getField(1);
24
+ }
25
+ get index() {
26
+ return this.getField(2);
27
+ }
28
+ get label() {
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 delay() {
38
+ return this.getField(10);
39
+ }
40
+ get feedback() {
41
+ return this.getField(11);
42
+ }
43
+ get cross() {
44
+ return this.getField(12);
45
+ }
46
+ get filter() {
47
+ return this.getField(13);
48
+ }
49
+ get wet() {
50
+ return this.getField(14);
51
+ }
52
+ get dry() {
53
+ return this.getField(15);
54
+ }
55
+ initializeFields() {
56
+ return {
57
+ 1: PointerField.create({
58
+ parent: this,
59
+ fieldKey: 1,
60
+ fieldName: "host",
61
+ pointerRules: NoPointers,
62
+ }, Pointers.AudioEffectHost, true),
63
+ 2: Int32Field.create({
64
+ parent: this,
65
+ fieldKey: 2,
66
+ fieldName: "index",
67
+ pointerRules: NoPointers,
68
+ }),
69
+ 3: StringField.create({
70
+ parent: this,
71
+ fieldKey: 3,
72
+ fieldName: "label",
73
+ pointerRules: NoPointers,
74
+ }),
75
+ 4: BooleanField.create({
76
+ parent: this,
77
+ fieldKey: 4,
78
+ fieldName: "enabled",
79
+ pointerRules: NoPointers,
80
+ }, true),
81
+ 5: BooleanField.create({
82
+ parent: this,
83
+ fieldKey: 5,
84
+ fieldName: "minimized",
85
+ pointerRules: NoPointers,
86
+ }, false),
87
+ 10: Float32Field.create({
88
+ parent: this,
89
+ fieldKey: 10,
90
+ fieldName: "delay",
91
+ pointerRules: {
92
+ accepts: [
93
+ Pointers.Modulation,
94
+ Pointers.Automation,
95
+ Pointers.MidiControl,
96
+ ],
97
+ mandatory: false,
98
+ },
99
+ }, 4),
100
+ 11: Float32Field.create({
101
+ parent: this,
102
+ fieldKey: 11,
103
+ fieldName: "feedback",
104
+ pointerRules: {
105
+ accepts: [
106
+ Pointers.Modulation,
107
+ Pointers.Automation,
108
+ Pointers.MidiControl,
109
+ ],
110
+ mandatory: false,
111
+ },
112
+ }, 0.5),
113
+ 12: Float32Field.create({
114
+ parent: this,
115
+ fieldKey: 12,
116
+ fieldName: "cross",
117
+ pointerRules: {
118
+ accepts: [
119
+ Pointers.Modulation,
120
+ Pointers.Automation,
121
+ Pointers.MidiControl,
122
+ ],
123
+ mandatory: false,
124
+ },
125
+ }, 0),
126
+ 13: Float32Field.create({
127
+ parent: this,
128
+ fieldKey: 13,
129
+ fieldName: "filter",
130
+ pointerRules: {
131
+ accepts: [
132
+ Pointers.Modulation,
133
+ Pointers.Automation,
134
+ Pointers.MidiControl,
135
+ ],
136
+ mandatory: false,
137
+ },
138
+ }, 0),
139
+ 14: Float32Field.create({
140
+ parent: this,
141
+ fieldKey: 14,
142
+ fieldName: "wet",
143
+ pointerRules: {
144
+ accepts: [
145
+ Pointers.Modulation,
146
+ Pointers.Automation,
147
+ Pointers.MidiControl,
148
+ ],
149
+ mandatory: false,
150
+ },
151
+ }, -6),
152
+ 15: Float32Field.create({
153
+ parent: this,
154
+ fieldKey: 15,
155
+ fieldName: "dry",
156
+ pointerRules: {
157
+ accepts: [
158
+ Pointers.Modulation,
159
+ Pointers.Automation,
160
+ Pointers.MidiControl,
161
+ ],
162
+ mandatory: false,
163
+ },
164
+ }, 0),
165
+ };
166
+ }
167
+ }
@@ -0,0 +1,38 @@
1
+ import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
2
+ import { Box, BoxGraph, PointerField, StringField, BooleanField, Float32Field, ArrayField } from "@opendaw/lib-box";
3
+ import { ClashPattern } from "./ClashPattern";
4
+ import { BoxVisitor } from ".";
5
+ import { Pointers } from "@opendaw/studio-enums";
6
+ export type DeviceClashBoxFields = {
7
+ 1: PointerField<Pointers.InstrumentHost>;
8
+ 2: StringField;
9
+ 3: StringField;
10
+ 4: BooleanField;
11
+ 5: BooleanField;
12
+ 10: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.StepAutomation>;
13
+ 11: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.StepAutomation>;
14
+ 12: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.StepAutomation>;
15
+ 13: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.StepAutomation>;
16
+ 14: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.StepAutomation>;
17
+ 15: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.StepAutomation>;
18
+ 30: ArrayField<ClashPattern>;
19
+ };
20
+ export declare class DeviceClashBox extends Box<Pointers.Device | Pointers.Selection, DeviceClashBoxFields> {
21
+ static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<DeviceClashBox>): DeviceClashBox;
22
+ private constructor();
23
+ accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
24
+ get host(): PointerField<Pointers.InstrumentHost>;
25
+ get label(): StringField;
26
+ get icon(): StringField;
27
+ get enabled(): BooleanField;
28
+ get minimized(): BooleanField;
29
+ get delay(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.StepAutomation>;
30
+ get feedback(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.StepAutomation>;
31
+ get cross(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.StepAutomation>;
32
+ get filter(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.StepAutomation>;
33
+ get wet(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.StepAutomation>;
34
+ get dry(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.StepAutomation>;
35
+ get patterns(): ArrayField<ClashPattern>;
36
+ initializeFields(): DeviceClashBoxFields;
37
+ }
38
+ //# sourceMappingURL=DeviceClashBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeviceClashBox.d.ts","sourceRoot":"","sources":["../src/DeviceClashBox.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,EACZ,UAAU,EACX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,oBAAoB,GAAG;IACjC,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,cAAc,CACpE,CAAC;IACF,EAAE,EAAsB,YAAY,CAClC,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,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ED,IAAI,QAAQ,IAAI,YAAY,CAC1B,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,cAAc,CACpE,CAEA;IAED,IAAI,KAAK,IAAI,YAAY,CACvB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,cAAc,CACpE,CAEA;IAED,IAAI,MAAM,IAAI,YAAY,CACxB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,cAAc,CACpE,CAEA;IAED,IAAI,GAAG,IAAI,YAAY,CACrB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,cAAc,CACpE,CAEA;IAED,IAAI,GAAG,IAAI,YAAY,CACrB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,cAAc,CACpE,CAEA;IAED,IAAI,QAAQ,IAAI,UAAU,CAAC,YAAY,CAAC,CAEvC;IAED,gBAAgB,IAAI,oBAAoB;CAsJzC"}
@@ -0,0 +1,177 @@
1
+ import { safeExecute } from "@opendaw/lib-std";
2
+ import { Box, NoPointers, PointerField, StringField, BooleanField, Float32Field, ArrayField, } from "@opendaw/lib-box";
3
+ import { ClashPattern } from "./ClashPattern";
4
+ import { Pointers } from "@opendaw/studio-enums";
5
+ export class DeviceClashBox extends Box {
6
+ static create(graph, uuid, constructor) {
7
+ return graph.stageBox(new DeviceClashBox({
8
+ uuid,
9
+ graph,
10
+ name: "DeviceClashBox",
11
+ pointerRules: {
12
+ accepts: [Pointers.Device, Pointers.Selection],
13
+ mandatory: false,
14
+ },
15
+ }), constructor);
16
+ }
17
+ constructor(construct) {
18
+ super(construct);
19
+ }
20
+ accept(visitor) {
21
+ return safeExecute(visitor.visitDeviceClashBox, this);
22
+ }
23
+ get host() {
24
+ return this.getField(1);
25
+ }
26
+ get label() {
27
+ return this.getField(2);
28
+ }
29
+ get icon() {
30
+ return this.getField(3);
31
+ }
32
+ get enabled() {
33
+ return this.getField(4);
34
+ }
35
+ get minimized() {
36
+ return this.getField(5);
37
+ }
38
+ get delay() {
39
+ return this.getField(10);
40
+ }
41
+ get feedback() {
42
+ return this.getField(11);
43
+ }
44
+ get cross() {
45
+ return this.getField(12);
46
+ }
47
+ get filter() {
48
+ return this.getField(13);
49
+ }
50
+ get wet() {
51
+ return this.getField(14);
52
+ }
53
+ get dry() {
54
+ return this.getField(15);
55
+ }
56
+ get patterns() {
57
+ return this.getField(30);
58
+ }
59
+ initializeFields() {
60
+ return {
61
+ 1: PointerField.create({
62
+ parent: this,
63
+ fieldKey: 1,
64
+ fieldName: "host",
65
+ pointerRules: NoPointers,
66
+ }, Pointers.InstrumentHost, true),
67
+ 2: StringField.create({
68
+ parent: this,
69
+ fieldKey: 2,
70
+ fieldName: "label",
71
+ pointerRules: NoPointers,
72
+ }),
73
+ 3: StringField.create({
74
+ parent: this,
75
+ fieldKey: 3,
76
+ fieldName: "icon",
77
+ pointerRules: NoPointers,
78
+ }),
79
+ 4: BooleanField.create({
80
+ parent: this,
81
+ fieldKey: 4,
82
+ fieldName: "enabled",
83
+ pointerRules: NoPointers,
84
+ }, true),
85
+ 5: BooleanField.create({
86
+ parent: this,
87
+ fieldKey: 5,
88
+ fieldName: "minimized",
89
+ pointerRules: NoPointers,
90
+ }, false),
91
+ 10: Float32Field.create({
92
+ parent: this,
93
+ fieldKey: 10,
94
+ fieldName: "delay",
95
+ pointerRules: {
96
+ accepts: [
97
+ Pointers.Modulation,
98
+ Pointers.Automation,
99
+ Pointers.StepAutomation,
100
+ ],
101
+ mandatory: false,
102
+ },
103
+ }, 0.5),
104
+ 11: Float32Field.create({
105
+ parent: this,
106
+ fieldKey: 11,
107
+ fieldName: "feedback",
108
+ pointerRules: {
109
+ accepts: [
110
+ Pointers.Modulation,
111
+ Pointers.Automation,
112
+ Pointers.StepAutomation,
113
+ ],
114
+ mandatory: false,
115
+ },
116
+ }, 0.9),
117
+ 12: Float32Field.create({
118
+ parent: this,
119
+ fieldKey: 12,
120
+ fieldName: "cross",
121
+ pointerRules: {
122
+ accepts: [
123
+ Pointers.Modulation,
124
+ Pointers.Automation,
125
+ Pointers.StepAutomation,
126
+ ],
127
+ mandatory: false,
128
+ },
129
+ }, 0),
130
+ 13: Float32Field.create({
131
+ parent: this,
132
+ fieldKey: 13,
133
+ fieldName: "filter",
134
+ pointerRules: {
135
+ accepts: [
136
+ Pointers.Modulation,
137
+ Pointers.Automation,
138
+ Pointers.StepAutomation,
139
+ ],
140
+ mandatory: false,
141
+ },
142
+ }, 0),
143
+ 14: Float32Field.create({
144
+ parent: this,
145
+ fieldKey: 14,
146
+ fieldName: "wet",
147
+ pointerRules: {
148
+ accepts: [
149
+ Pointers.Modulation,
150
+ Pointers.Automation,
151
+ Pointers.StepAutomation,
152
+ ],
153
+ mandatory: false,
154
+ },
155
+ }, -3),
156
+ 15: Float32Field.create({
157
+ parent: this,
158
+ fieldKey: 15,
159
+ fieldName: "dry",
160
+ pointerRules: {
161
+ accepts: [
162
+ Pointers.Modulation,
163
+ Pointers.Automation,
164
+ Pointers.StepAutomation,
165
+ ],
166
+ mandatory: false,
167
+ },
168
+ }, -3),
169
+ 30: ArrayField.create({
170
+ parent: this,
171
+ fieldKey: 30,
172
+ fieldName: "patterns",
173
+ pointerRules: NoPointers,
174
+ }, (construct) => ClashPattern.create(construct), 16),
175
+ };
176
+ }
177
+ }
@@ -0,0 +1,23 @@
1
+ import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
2
+ import { Box, BoxGraph, PointerField, Int32Field, Float32Field, StringField, UnreferenceableType } from "@opendaw/lib-box";
3
+ import { BoxVisitor } from ".";
4
+ import { Pointers } from "@opendaw/studio-enums";
5
+ export type DeviceInterfaceKnobBoxFields = {
6
+ 1: PointerField<Pointers.DeviceUserInterface>;
7
+ 2: PointerField<Pointers.ParameterController>;
8
+ 3: Int32Field;
9
+ 10: Float32Field;
10
+ 11: StringField;
11
+ };
12
+ export declare class DeviceInterfaceKnobBox extends Box<UnreferenceableType, DeviceInterfaceKnobBoxFields> {
13
+ static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<DeviceInterfaceKnobBox>): DeviceInterfaceKnobBox;
14
+ private constructor();
15
+ accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
16
+ get userInterface(): PointerField<Pointers.DeviceUserInterface>;
17
+ get parameter(): PointerField<Pointers.ParameterController>;
18
+ get index(): Int32Field;
19
+ get anchor(): Float32Field;
20
+ get color(): StringField;
21
+ initializeFields(): DeviceInterfaceKnobBoxFields;
22
+ }
23
+ //# sourceMappingURL=DeviceInterfaceKnobBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeviceInterfaceKnobBox.d.ts","sourceRoot":"","sources":["../src/DeviceInterfaceKnobBox.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,EACX,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,4BAA4B,GAAG;IACzC,CAAC,EAAsB,YAAY,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IAClE,CAAC,EAAkB,YAAY,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IAC9D,CAAC,EAAc,UAAU,CAAC;IAC1B,EAAE,EAAe,YAAY,CAAC;IAC9B,EAAE,EAAc,WAAW,CAAC;CAC7B,CAAC;AAEF,qBAAa,sBAAuB,SAAQ,GAAG,CAC7C,mBAAmB,EACnB,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,aAAa,IAAI,YAAY,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAE9D;IAED,IAAI,SAAS,IAAI,YAAY,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAE1D;IAED,IAAI,KAAK,IAAI,UAAU,CAEtB;IAED,IAAI,MAAM,IAAI,YAAY,CAEzB;IAED,IAAI,KAAK,IAAI,WAAW,CAEvB;IAED,gBAAgB,IAAI,4BAA4B;CA0CjD"}
@@ -0,0 +1,68 @@
1
+ import { safeExecute } from "@opendaw/lib-std";
2
+ import { Box, NoPointers, PointerField, Int32Field, Float32Field, StringField, } from "@opendaw/lib-box";
3
+ import { Pointers } from "@opendaw/studio-enums";
4
+ export class DeviceInterfaceKnobBox extends Box {
5
+ static create(graph, uuid, constructor) {
6
+ return graph.stageBox(new DeviceInterfaceKnobBox({
7
+ uuid,
8
+ graph,
9
+ name: "DeviceInterfaceKnobBox",
10
+ pointerRules: NoPointers,
11
+ }), constructor);
12
+ }
13
+ constructor(construct) {
14
+ super(construct);
15
+ }
16
+ accept(visitor) {
17
+ return safeExecute(visitor.visitDeviceInterfaceKnobBox, this);
18
+ }
19
+ get userInterface() {
20
+ return this.getField(1);
21
+ }
22
+ get parameter() {
23
+ return this.getField(2);
24
+ }
25
+ get index() {
26
+ return this.getField(3);
27
+ }
28
+ get anchor() {
29
+ return this.getField(10);
30
+ }
31
+ get color() {
32
+ return this.getField(11);
33
+ }
34
+ initializeFields() {
35
+ return {
36
+ 1: PointerField.create({
37
+ parent: this,
38
+ fieldKey: 1,
39
+ fieldName: "userInterface",
40
+ pointerRules: NoPointers,
41
+ }, Pointers.DeviceUserInterface, true),
42
+ 2: PointerField.create({
43
+ parent: this,
44
+ fieldKey: 2,
45
+ fieldName: "parameter",
46
+ pointerRules: NoPointers,
47
+ }, Pointers.ParameterController, true),
48
+ 3: Int32Field.create({
49
+ parent: this,
50
+ fieldKey: 3,
51
+ fieldName: "index",
52
+ pointerRules: NoPointers,
53
+ }),
54
+ 10: Float32Field.create({
55
+ parent: this,
56
+ fieldKey: 10,
57
+ fieldName: "anchor",
58
+ pointerRules: NoPointers,
59
+ }),
60
+ 11: StringField.create({
61
+ parent: this,
62
+ fieldKey: 11,
63
+ fieldName: "color",
64
+ pointerRules: NoPointers,
65
+ }),
66
+ };
67
+ }
68
+ }
@@ -0,0 +1,13 @@
1
+ import "@opendaw/lib-std";
2
+ import { ObjectField, FieldConstruct, Field, UnreferenceableType } from "@opendaw/lib-box";
3
+ import { Pointers } from "@opendaw/studio-enums";
4
+ export type DeviceUserInterfaceFields = {
5
+ 1: Field<Pointers.DeviceUserInterface>;
6
+ };
7
+ export declare class DeviceUserInterface extends ObjectField<DeviceUserInterfaceFields> {
8
+ static create(construct: FieldConstruct<UnreferenceableType>): DeviceUserInterface;
9
+ private constructor();
10
+ get elements(): Field<Pointers.DeviceUserInterface>;
11
+ initializeFields(): DeviceUserInterfaceFields;
12
+ }
13
+ //# sourceMappingURL=DeviceUserInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeviceUserInterface.d.ts","sourceRoot":"","sources":["../src/DeviceUserInterface.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EACL,WAAW,EACX,cAAc,EACd,KAAK,EACL,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,yBAAyB,GAAG;IACtC,CAAC,EAAiB,KAAK,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;CACvD,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,WAAW,CAAC,yBAAyB,CAAC;IAC7E,MAAM,CAAC,MAAM,CACX,SAAS,EAAE,cAAc,CAAC,mBAAmB,CAAC,GAC7C,mBAAmB;IAItB,OAAO;IAIP,IAAI,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAElD;IAED,gBAAgB,IAAI,yBAAyB;CAa9C"}
@@ -0,0 +1,27 @@
1
+ import "@opendaw/lib-std";
2
+ import { ObjectField, Field, } from "@opendaw/lib-box";
3
+ import { Pointers } from "@opendaw/studio-enums";
4
+ export class DeviceUserInterface extends ObjectField {
5
+ static create(construct) {
6
+ return new DeviceUserInterface(construct);
7
+ }
8
+ constructor(construct) {
9
+ super(construct);
10
+ }
11
+ get elements() {
12
+ return this.getField(1);
13
+ }
14
+ initializeFields() {
15
+ return {
16
+ 1: Field.hook({
17
+ parent: this,
18
+ fieldKey: 1,
19
+ fieldName: "elements",
20
+ pointerRules: {
21
+ accepts: [Pointers.DeviceUserInterface],
22
+ mandatory: false,
23
+ },
24
+ }),
25
+ };
26
+ }
27
+ }
@@ -0,0 +1,19 @@
1
+ import { Nullish, UUID, Procedure } from "@opendaw/lib-std";
2
+ import { Box, BoxGraph, StringField, Float32Field, Int32Field } from "@opendaw/lib-box";
3
+ import { BoxVisitor } from ".";
4
+ import { Pointers } from "@opendaw/studio-enums";
5
+ export type GrooveShuffleBoxFields = {
6
+ 1: StringField;
7
+ 10: Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
8
+ 11: Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
9
+ };
10
+ export declare class GrooveShuffleBox extends Box<Pointers.Groove, GrooveShuffleBoxFields> {
11
+ static create(graph: BoxGraph, uuid: UUID.Format, constructor?: Procedure<GrooveShuffleBox>): GrooveShuffleBox;
12
+ private constructor();
13
+ accept<R>(visitor: BoxVisitor<R>): Nullish<R>;
14
+ get label(): StringField;
15
+ get amount(): Float32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
16
+ get duration(): Int32Field<Pointers.Modulation | Pointers.Automation | Pointers.MidiControl>;
17
+ initializeFields(): GrooveShuffleBoxFields;
18
+ }
19
+ //# sourceMappingURL=GrooveShuffleBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GrooveShuffleBox.d.ts","sourceRoot":"","sources":["../src/GrooveShuffleBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EACL,GAAG,EAEH,QAAQ,EAER,WAAW,EACX,YAAY,EACZ,UAAU,EACX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAWjD,MAAM,MAAM,sBAAsB,GAAG;IACnC,CAAC,EAAc,WAAW,CAAC;IAC3B,EAAE,EAAoB,YAAY,CAChC,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAAC;IACF,EAAE,EAAsB,UAAU,CAChC,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAAC;CACH,CAAC;AAEF,qBAAa,gBAAiB,SAAQ,GAAG,CACvC,QAAQ,CAAC,MAAM,EACf,sBAAsB,CACvB;IACC,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,GACxC,gBAAgB;IAYnB,OAAO;IAIP,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7C,IAAI,KAAK,IAAI,WAAW,CAEvB;IAED,IAAI,MAAM,IAAI,YAAY,CACxB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAEA;IAED,IAAI,QAAQ,IAAI,UAAU,CACxB,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,CACjE,CAEA;IAED,gBAAgB,IAAI,sBAAsB;CA0C3C"}
@@ -0,0 +1,64 @@
1
+ import { safeExecute } from "@opendaw/lib-std";
2
+ import { Box, NoPointers, StringField, Float32Field, Int32Field, } from "@opendaw/lib-box";
3
+ import { Pointers } from "@opendaw/studio-enums";
4
+ export class GrooveShuffleBox extends Box {
5
+ static create(graph, uuid, constructor) {
6
+ return graph.stageBox(new GrooveShuffleBox({
7
+ uuid,
8
+ graph,
9
+ name: "GrooveShuffleBox",
10
+ pointerRules: { accepts: [Pointers.Groove], mandatory: true },
11
+ }), constructor);
12
+ }
13
+ constructor(construct) {
14
+ super(construct);
15
+ }
16
+ accept(visitor) {
17
+ return safeExecute(visitor.visitGrooveShuffleBox, this);
18
+ }
19
+ get label() {
20
+ return this.getField(1);
21
+ }
22
+ get amount() {
23
+ return this.getField(10);
24
+ }
25
+ get duration() {
26
+ return this.getField(11);
27
+ }
28
+ initializeFields() {
29
+ return {
30
+ 1: StringField.create({
31
+ parent: this,
32
+ fieldKey: 1,
33
+ fieldName: "label",
34
+ pointerRules: NoPointers,
35
+ }),
36
+ 10: Float32Field.create({
37
+ parent: this,
38
+ fieldKey: 10,
39
+ fieldName: "amount",
40
+ pointerRules: {
41
+ accepts: [
42
+ Pointers.Modulation,
43
+ Pointers.Automation,
44
+ Pointers.MidiControl,
45
+ ],
46
+ mandatory: false,
47
+ },
48
+ }, 0.6),
49
+ 11: Int32Field.create({
50
+ parent: this,
51
+ fieldKey: 11,
52
+ fieldName: "duration",
53
+ pointerRules: {
54
+ accepts: [
55
+ Pointers.Modulation,
56
+ Pointers.Automation,
57
+ Pointers.MidiControl,
58
+ ],
59
+ mandatory: false,
60
+ },
61
+ }, 480),
62
+ };
63
+ }
64
+ }