@opendaw/lib-dawproject 0.0.4 → 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.
@@ -0,0 +1,1107 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { Xml } from "@opendaw/lib-xml";
11
+ // noinspection JSUnusedGlobalSymbols
12
+ export var Unit;
13
+ (function (Unit) {
14
+ Unit["LINEAR"] = "linear";
15
+ Unit["NORMALIZED"] = "normalized";
16
+ Unit["PERCENT"] = "percent";
17
+ Unit["DECIBEL"] = "decibel";
18
+ Unit["HERTZ"] = "hertz";
19
+ Unit["SEMITONES"] = "semitones";
20
+ Unit["SECONDS"] = "seconds";
21
+ Unit["BEATS"] = "beats";
22
+ Unit["BPM"] = "bpm";
23
+ })(Unit || (Unit = {}));
24
+ // noinspection JSUnusedGlobalSymbols
25
+ export var Interpolation;
26
+ (function (Interpolation) {
27
+ Interpolation["HOLD"] = "hold";
28
+ Interpolation["LINEAR"] = "linear";
29
+ })(Interpolation || (Interpolation = {}));
30
+ // noinspection JSUnusedGlobalSymbols
31
+ export var TimeUnit;
32
+ (function (TimeUnit) {
33
+ TimeUnit["BEATS"] = "beats";
34
+ TimeUnit["SECONDS"] = "seconds";
35
+ })(TimeUnit || (TimeUnit = {}));
36
+ // noinspection JSUnusedGlobalSymbols
37
+ export var SendType;
38
+ (function (SendType) {
39
+ SendType["PRE"] = "pre";
40
+ SendType["POST"] = "post";
41
+ })(SendType || (SendType = {}));
42
+ // noinspection JSUnusedGlobalSymbols
43
+ export var DeviceRole;
44
+ (function (DeviceRole) {
45
+ DeviceRole["NOTE_FX"] = "noteFX";
46
+ DeviceRole["INSTRUMENT"] = "instrument";
47
+ DeviceRole["AUDIO_FX"] = "audioFX";
48
+ })(DeviceRole || (DeviceRole = {}));
49
+ // noinspection JSUnusedGlobalSymbols
50
+ export var ChannelRole;
51
+ (function (ChannelRole) {
52
+ ChannelRole["REGULAR"] = "regular";
53
+ ChannelRole["MASTER"] = "master";
54
+ ChannelRole["EFFECT"] = "effect";
55
+ ChannelRole["SUBMIX"] = "submix";
56
+ ChannelRole["VCA"] = "vca";
57
+ })(ChannelRole || (ChannelRole = {}));
58
+ // noinspection JSUnusedGlobalSymbols
59
+ export var AudioAlgorithm;
60
+ (function (AudioAlgorithm) {
61
+ AudioAlgorithm["REPITCH"] = "repitch";
62
+ AudioAlgorithm["STRETCH"] = "stretch";
63
+ })(AudioAlgorithm || (AudioAlgorithm = {}));
64
+ let MetaDataSchema = class MetaDataSchema {
65
+ title;
66
+ artist;
67
+ album;
68
+ originalArtist;
69
+ composer;
70
+ songwriter;
71
+ producer;
72
+ arranger;
73
+ year;
74
+ genre;
75
+ copyright;
76
+ website;
77
+ comment;
78
+ };
79
+ __decorate([
80
+ Xml.Element("Title", String),
81
+ __metadata("design:type", String)
82
+ ], MetaDataSchema.prototype, "title", void 0);
83
+ __decorate([
84
+ Xml.Element("Artist", String),
85
+ __metadata("design:type", String)
86
+ ], MetaDataSchema.prototype, "artist", void 0);
87
+ __decorate([
88
+ Xml.Element("Album", String),
89
+ __metadata("design:type", String)
90
+ ], MetaDataSchema.prototype, "album", void 0);
91
+ __decorate([
92
+ Xml.Element("OriginalArtist", String),
93
+ __metadata("design:type", String)
94
+ ], MetaDataSchema.prototype, "originalArtist", void 0);
95
+ __decorate([
96
+ Xml.Element("Composer", String),
97
+ __metadata("design:type", String)
98
+ ], MetaDataSchema.prototype, "composer", void 0);
99
+ __decorate([
100
+ Xml.Element("Songwriter", String),
101
+ __metadata("design:type", String)
102
+ ], MetaDataSchema.prototype, "songwriter", void 0);
103
+ __decorate([
104
+ Xml.Element("Producer", String),
105
+ __metadata("design:type", String)
106
+ ], MetaDataSchema.prototype, "producer", void 0);
107
+ __decorate([
108
+ Xml.Element("Arranger", String),
109
+ __metadata("design:type", String)
110
+ ], MetaDataSchema.prototype, "arranger", void 0);
111
+ __decorate([
112
+ Xml.Element("Year", String),
113
+ __metadata("design:type", String)
114
+ ], MetaDataSchema.prototype, "year", void 0);
115
+ __decorate([
116
+ Xml.Element("Genre", String),
117
+ __metadata("design:type", String)
118
+ ], MetaDataSchema.prototype, "genre", void 0);
119
+ __decorate([
120
+ Xml.Element("Copyright", String),
121
+ __metadata("design:type", String)
122
+ ], MetaDataSchema.prototype, "copyright", void 0);
123
+ __decorate([
124
+ Xml.Element("Website", String),
125
+ __metadata("design:type", String)
126
+ ], MetaDataSchema.prototype, "website", void 0);
127
+ __decorate([
128
+ Xml.Element("Comment", String),
129
+ __metadata("design:type", String)
130
+ ], MetaDataSchema.prototype, "comment", void 0);
131
+ MetaDataSchema = __decorate([
132
+ Xml.Class("MetaData")
133
+ ], MetaDataSchema);
134
+ export { MetaDataSchema };
135
+ let ApplicationSchema = class ApplicationSchema {
136
+ name;
137
+ version;
138
+ };
139
+ __decorate([
140
+ Xml.Attribute("name", Xml.StringRequired),
141
+ __metadata("design:type", String)
142
+ ], ApplicationSchema.prototype, "name", void 0);
143
+ __decorate([
144
+ Xml.Attribute("version", Xml.StringRequired),
145
+ __metadata("design:type", String)
146
+ ], ApplicationSchema.prototype, "version", void 0);
147
+ ApplicationSchema = __decorate([
148
+ Xml.Class("Application")
149
+ ], ApplicationSchema);
150
+ export { ApplicationSchema };
151
+ let BooleanParameterSchema = class BooleanParameterSchema {
152
+ value;
153
+ id;
154
+ name;
155
+ };
156
+ __decorate([
157
+ Xml.Attribute("value", Xml.BoolRequired),
158
+ __metadata("design:type", Boolean)
159
+ ], BooleanParameterSchema.prototype, "value", void 0);
160
+ __decorate([
161
+ Xml.Attribute("id"),
162
+ __metadata("design:type", String)
163
+ ], BooleanParameterSchema.prototype, "id", void 0);
164
+ __decorate([
165
+ Xml.Attribute("name"),
166
+ __metadata("design:type", String)
167
+ ], BooleanParameterSchema.prototype, "name", void 0);
168
+ BooleanParameterSchema = __decorate([
169
+ Xml.Class("BooleanParameter")
170
+ ], BooleanParameterSchema);
171
+ export { BooleanParameterSchema };
172
+ let RealParameterSchema = class RealParameterSchema {
173
+ id;
174
+ name;
175
+ value;
176
+ unit;
177
+ min;
178
+ max;
179
+ };
180
+ __decorate([
181
+ Xml.Attribute("id"),
182
+ __metadata("design:type", String)
183
+ ], RealParameterSchema.prototype, "id", void 0);
184
+ __decorate([
185
+ Xml.Attribute("name"),
186
+ __metadata("design:type", String)
187
+ ], RealParameterSchema.prototype, "name", void 0);
188
+ __decorate([
189
+ Xml.Attribute("value", Xml.NumberRequired),
190
+ __metadata("design:type", Number)
191
+ ], RealParameterSchema.prototype, "value", void 0);
192
+ __decorate([
193
+ Xml.Attribute("unit", Xml.StringRequired),
194
+ __metadata("design:type", String)
195
+ ], RealParameterSchema.prototype, "unit", void 0);
196
+ __decorate([
197
+ Xml.Attribute("min", Xml.NumberOptional),
198
+ __metadata("design:type", Number)
199
+ ], RealParameterSchema.prototype, "min", void 0);
200
+ __decorate([
201
+ Xml.Attribute("max", Xml.NumberOptional),
202
+ __metadata("design:type", Number)
203
+ ], RealParameterSchema.prototype, "max", void 0);
204
+ RealParameterSchema = __decorate([
205
+ Xml.Class("RealParameter")
206
+ ], RealParameterSchema);
207
+ export { RealParameterSchema };
208
+ let TimeSignatureParameterSchema = class TimeSignatureParameterSchema {
209
+ numerator;
210
+ denominator;
211
+ };
212
+ __decorate([
213
+ Xml.Attribute("numerator", Xml.NumberOptional),
214
+ __metadata("design:type", Number)
215
+ ], TimeSignatureParameterSchema.prototype, "numerator", void 0);
216
+ __decorate([
217
+ Xml.Attribute("denominator", Xml.NumberOptional),
218
+ __metadata("design:type", Number)
219
+ ], TimeSignatureParameterSchema.prototype, "denominator", void 0);
220
+ TimeSignatureParameterSchema = __decorate([
221
+ Xml.Class("TimeSignature")
222
+ ], TimeSignatureParameterSchema);
223
+ export { TimeSignatureParameterSchema };
224
+ let ParameterSchema = class ParameterSchema {
225
+ id;
226
+ name;
227
+ value;
228
+ unit;
229
+ min;
230
+ max;
231
+ };
232
+ __decorate([
233
+ Xml.Attribute("id"),
234
+ __metadata("design:type", String)
235
+ ], ParameterSchema.prototype, "id", void 0);
236
+ __decorate([
237
+ Xml.Attribute("name"),
238
+ __metadata("design:type", String)
239
+ ], ParameterSchema.prototype, "name", void 0);
240
+ __decorate([
241
+ Xml.Attribute("value", Xml.NumberOptional),
242
+ __metadata("design:type", Number)
243
+ ], ParameterSchema.prototype, "value", void 0);
244
+ __decorate([
245
+ Xml.Attribute("unit"),
246
+ __metadata("design:type", String)
247
+ ], ParameterSchema.prototype, "unit", void 0);
248
+ __decorate([
249
+ Xml.Attribute("min", Xml.NumberOptional),
250
+ __metadata("design:type", Number)
251
+ ], ParameterSchema.prototype, "min", void 0);
252
+ __decorate([
253
+ Xml.Attribute("max", Xml.NumberOptional),
254
+ __metadata("design:type", Number)
255
+ ], ParameterSchema.prototype, "max", void 0);
256
+ ParameterSchema = __decorate([
257
+ Xml.Class("Parameter")
258
+ ], ParameterSchema);
259
+ export { ParameterSchema };
260
+ let StateSchema = class StateSchema {
261
+ path;
262
+ };
263
+ __decorate([
264
+ Xml.Attribute("path"),
265
+ __metadata("design:type", String)
266
+ ], StateSchema.prototype, "path", void 0);
267
+ StateSchema = __decorate([
268
+ Xml.Class("State")
269
+ ], StateSchema);
270
+ export { StateSchema };
271
+ let SendSchema = class SendSchema {
272
+ id;
273
+ destination;
274
+ type;
275
+ volume;
276
+ pan;
277
+ enable;
278
+ };
279
+ __decorate([
280
+ Xml.Attribute("id"),
281
+ __metadata("design:type", String)
282
+ ], SendSchema.prototype, "id", void 0);
283
+ __decorate([
284
+ Xml.Attribute("destination"),
285
+ __metadata("design:type", String)
286
+ ], SendSchema.prototype, "destination", void 0);
287
+ __decorate([
288
+ Xml.Attribute("type"),
289
+ __metadata("design:type", String)
290
+ ], SendSchema.prototype, "type", void 0);
291
+ __decorate([
292
+ Xml.Element("Volume", RealParameterSchema),
293
+ __metadata("design:type", RealParameterSchema)
294
+ ], SendSchema.prototype, "volume", void 0);
295
+ __decorate([
296
+ Xml.Element("Pan", RealParameterSchema),
297
+ __metadata("design:type", RealParameterSchema)
298
+ ], SendSchema.prototype, "pan", void 0);
299
+ __decorate([
300
+ Xml.Element("Enable", BooleanParameterSchema),
301
+ __metadata("design:type", BooleanParameterSchema)
302
+ ], SendSchema.prototype, "enable", void 0);
303
+ SendSchema = __decorate([
304
+ Xml.Class("Send")
305
+ ], SendSchema);
306
+ export { SendSchema };
307
+ let TransportSchema = class TransportSchema {
308
+ tempo;
309
+ timeSignature;
310
+ };
311
+ __decorate([
312
+ Xml.Element("Tempo", RealParameterSchema),
313
+ __metadata("design:type", RealParameterSchema)
314
+ ], TransportSchema.prototype, "tempo", void 0);
315
+ __decorate([
316
+ Xml.Element("TimeSignature", TimeSignatureParameterSchema),
317
+ __metadata("design:type", TimeSignatureParameterSchema)
318
+ ], TransportSchema.prototype, "timeSignature", void 0);
319
+ TransportSchema = __decorate([
320
+ Xml.Class("Transport")
321
+ ], TransportSchema);
322
+ export { TransportSchema };
323
+ let LaneSchema = class LaneSchema {
324
+ id;
325
+ };
326
+ __decorate([
327
+ Xml.Attribute("id"),
328
+ __metadata("design:type", String)
329
+ ], LaneSchema.prototype, "id", void 0);
330
+ LaneSchema = __decorate([
331
+ Xml.Class("Lane")
332
+ ], LaneSchema);
333
+ export { LaneSchema };
334
+ let TimelineSchema = class TimelineSchema {
335
+ id;
336
+ timeUnit;
337
+ track;
338
+ };
339
+ __decorate([
340
+ Xml.Attribute("id"),
341
+ __metadata("design:type", String)
342
+ ], TimelineSchema.prototype, "id", void 0);
343
+ __decorate([
344
+ Xml.Attribute("timeUnit"),
345
+ __metadata("design:type", String)
346
+ ], TimelineSchema.prototype, "timeUnit", void 0);
347
+ __decorate([
348
+ Xml.Attribute("track"),
349
+ __metadata("design:type", String)
350
+ ], TimelineSchema.prototype, "track", void 0);
351
+ TimelineSchema = __decorate([
352
+ Xml.Class("Timeline")
353
+ ], TimelineSchema);
354
+ export { TimelineSchema };
355
+ let NoteSchema = class NoteSchema {
356
+ time;
357
+ duration;
358
+ channel;
359
+ key;
360
+ vel;
361
+ rel;
362
+ };
363
+ __decorate([
364
+ Xml.Attribute("time", Xml.NumberRequired),
365
+ __metadata("design:type", Number)
366
+ ], NoteSchema.prototype, "time", void 0);
367
+ __decorate([
368
+ Xml.Attribute("duration", Xml.NumberRequired),
369
+ __metadata("design:type", Number)
370
+ ], NoteSchema.prototype, "duration", void 0);
371
+ __decorate([
372
+ Xml.Attribute("channel", Xml.NumberRequired),
373
+ __metadata("design:type", Number)
374
+ ], NoteSchema.prototype, "channel", void 0);
375
+ __decorate([
376
+ Xml.Attribute("key", Xml.NumberRequired),
377
+ __metadata("design:type", Number)
378
+ ], NoteSchema.prototype, "key", void 0);
379
+ __decorate([
380
+ Xml.Attribute("vel", Xml.NumberOptional),
381
+ __metadata("design:type", Number)
382
+ ], NoteSchema.prototype, "vel", void 0);
383
+ __decorate([
384
+ Xml.Attribute("rel", Xml.NumberOptional),
385
+ __metadata("design:type", Number)
386
+ ], NoteSchema.prototype, "rel", void 0);
387
+ NoteSchema = __decorate([
388
+ Xml.Class("Note")
389
+ ], NoteSchema);
390
+ export { NoteSchema };
391
+ let NotesSchema = class NotesSchema extends TimelineSchema {
392
+ notes;
393
+ };
394
+ __decorate([
395
+ Xml.ElementRef(NoteSchema, "Note"),
396
+ __metadata("design:type", Array)
397
+ ], NotesSchema.prototype, "notes", void 0);
398
+ NotesSchema = __decorate([
399
+ Xml.Class("Notes")
400
+ ], NotesSchema);
401
+ export { NotesSchema };
402
+ let ClipSchema = class ClipSchema {
403
+ name;
404
+ color;
405
+ comment;
406
+ time;
407
+ duration;
408
+ contentTimeUnit;
409
+ playStart;
410
+ playStop;
411
+ loopStart;
412
+ loopEnd;
413
+ fadeTimeUnit;
414
+ fadeInTime;
415
+ fadeOutTime;
416
+ enable;
417
+ content;
418
+ reference;
419
+ };
420
+ __decorate([
421
+ Xml.Attribute("name"),
422
+ __metadata("design:type", String)
423
+ ], ClipSchema.prototype, "name", void 0);
424
+ __decorate([
425
+ Xml.Attribute("color"),
426
+ __metadata("design:type", String)
427
+ ], ClipSchema.prototype, "color", void 0);
428
+ __decorate([
429
+ Xml.Attribute("comment"),
430
+ __metadata("design:type", String)
431
+ ], ClipSchema.prototype, "comment", void 0);
432
+ __decorate([
433
+ Xml.Attribute("time", Xml.NumberOptional),
434
+ __metadata("design:type", Number)
435
+ ], ClipSchema.prototype, "time", void 0);
436
+ __decorate([
437
+ Xml.Attribute("duration", Xml.NumberOptional),
438
+ __metadata("design:type", Number)
439
+ ], ClipSchema.prototype, "duration", void 0);
440
+ __decorate([
441
+ Xml.Attribute("contentTimeUnit"),
442
+ __metadata("design:type", String)
443
+ ], ClipSchema.prototype, "contentTimeUnit", void 0);
444
+ __decorate([
445
+ Xml.Attribute("playStart", Xml.NumberOptional),
446
+ __metadata("design:type", Number)
447
+ ], ClipSchema.prototype, "playStart", void 0);
448
+ __decorate([
449
+ Xml.Attribute("playStop", Xml.NumberOptional),
450
+ __metadata("design:type", Number)
451
+ ], ClipSchema.prototype, "playStop", void 0);
452
+ __decorate([
453
+ Xml.Attribute("loopStart", Xml.NumberOptional),
454
+ __metadata("design:type", Number)
455
+ ], ClipSchema.prototype, "loopStart", void 0);
456
+ __decorate([
457
+ Xml.Attribute("loopEnd", Xml.NumberOptional),
458
+ __metadata("design:type", Number)
459
+ ], ClipSchema.prototype, "loopEnd", void 0);
460
+ __decorate([
461
+ Xml.Attribute("fadeTimeUnit"),
462
+ __metadata("design:type", String)
463
+ ], ClipSchema.prototype, "fadeTimeUnit", void 0);
464
+ __decorate([
465
+ Xml.Attribute("fadeInTime", Xml.NumberOptional),
466
+ __metadata("design:type", Number)
467
+ ], ClipSchema.prototype, "fadeInTime", void 0);
468
+ __decorate([
469
+ Xml.Attribute("fadeOutTime", Xml.NumberOptional),
470
+ __metadata("design:type", Number)
471
+ ], ClipSchema.prototype, "fadeOutTime", void 0);
472
+ __decorate([
473
+ Xml.Attribute("enable", Xml.BoolOptional),
474
+ __metadata("design:type", Boolean)
475
+ ], ClipSchema.prototype, "enable", void 0);
476
+ __decorate([
477
+ Xml.ElementRef(TimelineSchema),
478
+ __metadata("design:type", Array)
479
+ ], ClipSchema.prototype, "content", void 0);
480
+ __decorate([
481
+ Xml.Attribute("reference"),
482
+ __metadata("design:type", String)
483
+ ], ClipSchema.prototype, "reference", void 0);
484
+ ClipSchema = __decorate([
485
+ Xml.Class("Clip")
486
+ ], ClipSchema);
487
+ export { ClipSchema };
488
+ let ClipsSchema = class ClipsSchema extends TimelineSchema {
489
+ clips;
490
+ };
491
+ __decorate([
492
+ Xml.ElementRef(ClipSchema),
493
+ __metadata("design:type", Array)
494
+ ], ClipsSchema.prototype, "clips", void 0);
495
+ ClipsSchema = __decorate([
496
+ Xml.Class("Clips")
497
+ ], ClipsSchema);
498
+ export { ClipsSchema };
499
+ let ClipSlotSchema = class ClipSlotSchema extends TimelineSchema {
500
+ clip;
501
+ hasStop;
502
+ };
503
+ __decorate([
504
+ Xml.Element("Clip", ClipSchema),
505
+ __metadata("design:type", ClipSchema)
506
+ ], ClipSlotSchema.prototype, "clip", void 0);
507
+ __decorate([
508
+ Xml.Attribute("hasStop", Xml.BoolOptional),
509
+ __metadata("design:type", Boolean)
510
+ ], ClipSlotSchema.prototype, "hasStop", void 0);
511
+ ClipSlotSchema = __decorate([
512
+ Xml.Class("ClipSlot")
513
+ ], ClipSlotSchema);
514
+ export { ClipSlotSchema };
515
+ let MarkerSchema = class MarkerSchema {
516
+ id;
517
+ name;
518
+ color;
519
+ comment;
520
+ time;
521
+ };
522
+ __decorate([
523
+ Xml.Attribute("id"),
524
+ __metadata("design:type", String)
525
+ ], MarkerSchema.prototype, "id", void 0);
526
+ __decorate([
527
+ Xml.Attribute("name"),
528
+ __metadata("design:type", String)
529
+ ], MarkerSchema.prototype, "name", void 0);
530
+ __decorate([
531
+ Xml.Attribute("color"),
532
+ __metadata("design:type", String)
533
+ ], MarkerSchema.prototype, "color", void 0);
534
+ __decorate([
535
+ Xml.Attribute("comment"),
536
+ __metadata("design:type", String)
537
+ ], MarkerSchema.prototype, "comment", void 0);
538
+ __decorate([
539
+ Xml.Attribute("time", Xml.NumberRequired),
540
+ __metadata("design:type", Number)
541
+ ], MarkerSchema.prototype, "time", void 0);
542
+ MarkerSchema = __decorate([
543
+ Xml.Class("Marker")
544
+ ], MarkerSchema);
545
+ export { MarkerSchema };
546
+ let MarkersSchema = class MarkersSchema {
547
+ marker;
548
+ };
549
+ __decorate([
550
+ Xml.Element("Marker", Array),
551
+ __metadata("design:type", Array)
552
+ ], MarkersSchema.prototype, "marker", void 0);
553
+ MarkersSchema = __decorate([
554
+ Xml.Class("Markers")
555
+ ], MarkersSchema);
556
+ export { MarkersSchema };
557
+ let WarpSchema = class WarpSchema {
558
+ time;
559
+ contentTime;
560
+ };
561
+ __decorate([
562
+ Xml.Attribute("time", Xml.NumberRequired),
563
+ __metadata("design:type", Number)
564
+ ], WarpSchema.prototype, "time", void 0);
565
+ __decorate([
566
+ Xml.Attribute("contentTime", Xml.NumberRequired),
567
+ __metadata("design:type", Number)
568
+ ], WarpSchema.prototype, "contentTime", void 0);
569
+ WarpSchema = __decorate([
570
+ Xml.Class("Warp")
571
+ ], WarpSchema);
572
+ export { WarpSchema };
573
+ let FileReferenceSchema = class FileReferenceSchema {
574
+ path;
575
+ external;
576
+ };
577
+ __decorate([
578
+ Xml.Attribute("path", Xml.StringRequired),
579
+ __metadata("design:type", String)
580
+ ], FileReferenceSchema.prototype, "path", void 0);
581
+ __decorate([
582
+ Xml.Attribute("external", Xml.BoolOptional),
583
+ __metadata("design:type", Boolean)
584
+ ], FileReferenceSchema.prototype, "external", void 0);
585
+ FileReferenceSchema = __decorate([
586
+ Xml.Class("File")
587
+ ], FileReferenceSchema);
588
+ export { FileReferenceSchema };
589
+ let MediaFileSchema = class MediaFileSchema extends TimelineSchema {
590
+ file;
591
+ duration;
592
+ };
593
+ __decorate([
594
+ Xml.Element("File", FileReferenceSchema),
595
+ __metadata("design:type", FileReferenceSchema)
596
+ ], MediaFileSchema.prototype, "file", void 0);
597
+ __decorate([
598
+ Xml.Attribute("duration", Xml.NumberRequired),
599
+ __metadata("design:type", Number)
600
+ ], MediaFileSchema.prototype, "duration", void 0);
601
+ MediaFileSchema = __decorate([
602
+ Xml.Class("MediaFile")
603
+ ], MediaFileSchema);
604
+ export { MediaFileSchema };
605
+ let AudioSchema = class AudioSchema extends MediaFileSchema {
606
+ algorithm;
607
+ channels;
608
+ sampleRate;
609
+ };
610
+ __decorate([
611
+ Xml.Attribute("algorithm"),
612
+ __metadata("design:type", String)
613
+ ], AudioSchema.prototype, "algorithm", void 0);
614
+ __decorate([
615
+ Xml.Attribute("channels", Xml.NumberRequired),
616
+ __metadata("design:type", Number)
617
+ ], AudioSchema.prototype, "channels", void 0);
618
+ __decorate([
619
+ Xml.Attribute("sampleRate", Xml.NumberRequired),
620
+ __metadata("design:type", Number)
621
+ ], AudioSchema.prototype, "sampleRate", void 0);
622
+ AudioSchema = __decorate([
623
+ Xml.Class("Audio")
624
+ ], AudioSchema);
625
+ export { AudioSchema };
626
+ let WarpsSchema = class WarpsSchema extends TimelineSchema {
627
+ content;
628
+ warps;
629
+ contentTimeUnit;
630
+ };
631
+ __decorate([
632
+ Xml.ElementRef(TimelineSchema),
633
+ __metadata("design:type", Array)
634
+ ], WarpsSchema.prototype, "content", void 0);
635
+ __decorate([
636
+ Xml.ElementRef(WarpSchema),
637
+ __metadata("design:type", Array)
638
+ ], WarpsSchema.prototype, "warps", void 0);
639
+ __decorate([
640
+ Xml.Attribute("contentTimeUnit"),
641
+ __metadata("design:type", String)
642
+ ], WarpsSchema.prototype, "contentTimeUnit", void 0);
643
+ WarpsSchema = __decorate([
644
+ Xml.Class("Warps")
645
+ ], WarpsSchema);
646
+ export { WarpsSchema };
647
+ let VideoSchema = class VideoSchema extends MediaFileSchema {
648
+ algorithm;
649
+ channels;
650
+ sampleRate;
651
+ };
652
+ __decorate([
653
+ Xml.Attribute("algorithm"),
654
+ __metadata("design:type", String)
655
+ ], VideoSchema.prototype, "algorithm", void 0);
656
+ __decorate([
657
+ Xml.Attribute("channels", Xml.NumberRequired),
658
+ __metadata("design:type", Number)
659
+ ], VideoSchema.prototype, "channels", void 0);
660
+ __decorate([
661
+ Xml.Attribute("sampleRate", Xml.NumberRequired),
662
+ __metadata("design:type", Number)
663
+ ], VideoSchema.prototype, "sampleRate", void 0);
664
+ VideoSchema = __decorate([
665
+ Xml.Class("Video")
666
+ ], VideoSchema);
667
+ export { VideoSchema };
668
+ let AutomationTargetSchema = class AutomationTargetSchema {
669
+ parameter;
670
+ expression;
671
+ channel;
672
+ key;
673
+ controller;
674
+ };
675
+ __decorate([
676
+ Xml.Attribute("parameter"),
677
+ __metadata("design:type", String)
678
+ ], AutomationTargetSchema.prototype, "parameter", void 0);
679
+ __decorate([
680
+ Xml.Attribute("expression"),
681
+ __metadata("design:type", String)
682
+ ], AutomationTargetSchema.prototype, "expression", void 0);
683
+ __decorate([
684
+ Xml.Attribute("channel", Xml.NumberOptional),
685
+ __metadata("design:type", Number)
686
+ ], AutomationTargetSchema.prototype, "channel", void 0);
687
+ __decorate([
688
+ Xml.Attribute("key", Xml.NumberOptional),
689
+ __metadata("design:type", Number)
690
+ ], AutomationTargetSchema.prototype, "key", void 0);
691
+ __decorate([
692
+ Xml.Attribute("controller", Xml.NumberOptional),
693
+ __metadata("design:type", Number)
694
+ ], AutomationTargetSchema.prototype, "controller", void 0);
695
+ AutomationTargetSchema = __decorate([
696
+ Xml.Class("Target")
697
+ ], AutomationTargetSchema);
698
+ export { AutomationTargetSchema };
699
+ let PointSchema = class PointSchema {
700
+ time;
701
+ };
702
+ __decorate([
703
+ Xml.Attribute("time"),
704
+ __metadata("design:type", Number)
705
+ ], PointSchema.prototype, "time", void 0);
706
+ PointSchema = __decorate([
707
+ Xml.Class("Point")
708
+ ], PointSchema);
709
+ export { PointSchema };
710
+ let BoolPoint = class BoolPoint extends PointSchema {
711
+ value;
712
+ };
713
+ __decorate([
714
+ Xml.Attribute("value", Xml.BoolOptional),
715
+ __metadata("design:type", Boolean)
716
+ ], BoolPoint.prototype, "value", void 0);
717
+ BoolPoint = __decorate([
718
+ Xml.Class("BoolPoint")
719
+ ], BoolPoint);
720
+ export { BoolPoint };
721
+ let RealPointSchema = class RealPointSchema extends PointSchema {
722
+ value;
723
+ interpolation;
724
+ };
725
+ __decorate([
726
+ Xml.Attribute("value", Xml.NumberRequired),
727
+ __metadata("design:type", Number)
728
+ ], RealPointSchema.prototype, "value", void 0);
729
+ __decorate([
730
+ Xml.Attribute("interpolation"),
731
+ __metadata("design:type", String)
732
+ ], RealPointSchema.prototype, "interpolation", void 0);
733
+ RealPointSchema = __decorate([
734
+ Xml.Class("RealPoint")
735
+ ], RealPointSchema);
736
+ export { RealPointSchema };
737
+ let IntegerPointSchema = class IntegerPointSchema extends PointSchema {
738
+ value;
739
+ };
740
+ __decorate([
741
+ Xml.Attribute("value", Xml.NumberRequired),
742
+ __metadata("design:type", Number)
743
+ ], IntegerPointSchema.prototype, "value", void 0);
744
+ IntegerPointSchema = __decorate([
745
+ Xml.Class("IntegerPoint")
746
+ ], IntegerPointSchema);
747
+ export { IntegerPointSchema };
748
+ let TimeSignaturePointSchema = class TimeSignaturePointSchema extends PointSchema {
749
+ numerator;
750
+ denominator;
751
+ };
752
+ __decorate([
753
+ Xml.Attribute("numerator", Xml.NumberRequired),
754
+ __metadata("design:type", Number)
755
+ ], TimeSignaturePointSchema.prototype, "numerator", void 0);
756
+ __decorate([
757
+ Xml.Attribute("denominator", Xml.NumberRequired),
758
+ __metadata("design:type", Number)
759
+ ], TimeSignaturePointSchema.prototype, "denominator", void 0);
760
+ TimeSignaturePointSchema = __decorate([
761
+ Xml.Class("TimeSignaturePoint")
762
+ ], TimeSignaturePointSchema);
763
+ export { TimeSignaturePointSchema };
764
+ let PointsSchema = class PointsSchema extends TimelineSchema {
765
+ target;
766
+ points;
767
+ unit;
768
+ };
769
+ __decorate([
770
+ Xml.Element("Target", AutomationTargetSchema),
771
+ __metadata("design:type", AutomationTargetSchema)
772
+ ], PointsSchema.prototype, "target", void 0);
773
+ __decorate([
774
+ Xml.ElementRef(PointSchema),
775
+ __metadata("design:type", Array)
776
+ ], PointsSchema.prototype, "points", void 0);
777
+ __decorate([
778
+ Xml.Attribute("unit"),
779
+ __metadata("design:type", String)
780
+ ], PointsSchema.prototype, "unit", void 0);
781
+ PointsSchema = __decorate([
782
+ Xml.Class("Points")
783
+ ], PointsSchema);
784
+ export { PointsSchema };
785
+ let LanesSchema = class LanesSchema extends TimelineSchema {
786
+ lanes;
787
+ };
788
+ __decorate([
789
+ Xml.ElementRef(TimelineSchema),
790
+ __metadata("design:type", Array)
791
+ ], LanesSchema.prototype, "lanes", void 0);
792
+ LanesSchema = __decorate([
793
+ Xml.Class("Lanes")
794
+ ], LanesSchema);
795
+ export { LanesSchema };
796
+ let ArrangementSchema = class ArrangementSchema {
797
+ id;
798
+ timeSignatureAutomation;
799
+ tempoAutomation;
800
+ markers;
801
+ lanes;
802
+ };
803
+ __decorate([
804
+ Xml.Attribute("id"),
805
+ __metadata("design:type", String)
806
+ ], ArrangementSchema.prototype, "id", void 0);
807
+ __decorate([
808
+ Xml.Element("TimeSignatureAutomation", PointsSchema),
809
+ __metadata("design:type", PointsSchema)
810
+ ], ArrangementSchema.prototype, "timeSignatureAutomation", void 0);
811
+ __decorate([
812
+ Xml.Element("TempoAutomation", PointsSchema),
813
+ __metadata("design:type", PointsSchema)
814
+ ], ArrangementSchema.prototype, "tempoAutomation", void 0);
815
+ __decorate([
816
+ Xml.Element("Markers", MarkersSchema),
817
+ __metadata("design:type", MarkerSchema)
818
+ ], ArrangementSchema.prototype, "markers", void 0);
819
+ __decorate([
820
+ Xml.Element("Lanes", LanesSchema),
821
+ __metadata("design:type", LanesSchema)
822
+ ], ArrangementSchema.prototype, "lanes", void 0);
823
+ ArrangementSchema = __decorate([
824
+ Xml.Class("Arrangement")
825
+ ], ArrangementSchema);
826
+ export { ArrangementSchema };
827
+ let SceneSchema = class SceneSchema {
828
+ id;
829
+ content;
830
+ };
831
+ __decorate([
832
+ Xml.Attribute("id"),
833
+ __metadata("design:type", String)
834
+ ], SceneSchema.prototype, "id", void 0);
835
+ __decorate([
836
+ Xml.ElementRef(TimelineSchema),
837
+ __metadata("design:type", Array)
838
+ ], SceneSchema.prototype, "content", void 0);
839
+ SceneSchema = __decorate([
840
+ Xml.Class("Scene")
841
+ ], SceneSchema);
842
+ export { SceneSchema };
843
+ let DeviceSchema = class DeviceSchema {
844
+ id;
845
+ enabled;
846
+ deviceRole;
847
+ loaded;
848
+ deviceName;
849
+ deviceID;
850
+ deviceVendor;
851
+ state;
852
+ name;
853
+ automatedParameters;
854
+ };
855
+ __decorate([
856
+ Xml.Attribute("id"),
857
+ __metadata("design:type", String)
858
+ ], DeviceSchema.prototype, "id", void 0);
859
+ __decorate([
860
+ Xml.Element("Enabled", BooleanParameterSchema),
861
+ __metadata("design:type", BooleanParameterSchema)
862
+ ], DeviceSchema.prototype, "enabled", void 0);
863
+ __decorate([
864
+ Xml.Attribute("deviceRole", Xml.StringRequired),
865
+ __metadata("design:type", String)
866
+ ], DeviceSchema.prototype, "deviceRole", void 0);
867
+ __decorate([
868
+ Xml.Attribute("loaded", Xml.BoolOptional),
869
+ __metadata("design:type", Boolean)
870
+ ], DeviceSchema.prototype, "loaded", void 0);
871
+ __decorate([
872
+ Xml.Attribute("deviceName"),
873
+ __metadata("design:type", String)
874
+ ], DeviceSchema.prototype, "deviceName", void 0);
875
+ __decorate([
876
+ Xml.Attribute("deviceID"),
877
+ __metadata("design:type", String)
878
+ ], DeviceSchema.prototype, "deviceID", void 0);
879
+ __decorate([
880
+ Xml.Attribute("deviceVendor"),
881
+ __metadata("design:type", String)
882
+ ], DeviceSchema.prototype, "deviceVendor", void 0);
883
+ __decorate([
884
+ Xml.Element("State", FileReferenceSchema),
885
+ __metadata("design:type", FileReferenceSchema)
886
+ ], DeviceSchema.prototype, "state", void 0);
887
+ __decorate([
888
+ Xml.Attribute("name"),
889
+ __metadata("design:type", String)
890
+ ], DeviceSchema.prototype, "name", void 0);
891
+ __decorate([
892
+ Xml.ElementRef(ParameterSchema, "Parameters"),
893
+ __metadata("design:type", Array)
894
+ ], DeviceSchema.prototype, "automatedParameters", void 0);
895
+ DeviceSchema = __decorate([
896
+ Xml.Class("Device")
897
+ ], DeviceSchema);
898
+ export { DeviceSchema };
899
+ let BuiltinDeviceSchema = class BuiltinDeviceSchema extends DeviceSchema {
900
+ };
901
+ BuiltinDeviceSchema = __decorate([
902
+ Xml.Class("BuiltinDevice")
903
+ ], BuiltinDeviceSchema);
904
+ export { BuiltinDeviceSchema };
905
+ // noinspection JSUnusedGlobalSymbols
906
+ export var EqBandType;
907
+ (function (EqBandType) {
908
+ EqBandType["HIGH_PASS"] = "highPass";
909
+ EqBandType["LOW_PASS"] = "lowPass";
910
+ EqBandType["BAND_PASS"] = "bandPass";
911
+ EqBandType["HIGH_SHELF"] = "highShelf";
912
+ EqBandType["LOW_SHELF"] = "lowShelf";
913
+ EqBandType["BELL"] = "bell";
914
+ EqBandType["NOTCH"] = "notch";
915
+ })(EqBandType || (EqBandType = {}));
916
+ let BandSchema = class BandSchema {
917
+ type;
918
+ order;
919
+ freq;
920
+ gain;
921
+ Q;
922
+ enabled;
923
+ };
924
+ __decorate([
925
+ Xml.Attribute("type", Xml.StringRequired),
926
+ __metadata("design:type", String)
927
+ ], BandSchema.prototype, "type", void 0);
928
+ __decorate([
929
+ Xml.Attribute("order", Xml.NumberOptional),
930
+ __metadata("design:type", Number)
931
+ ], BandSchema.prototype, "order", void 0);
932
+ __decorate([
933
+ Xml.Element("Freq", RealParameterSchema),
934
+ __metadata("design:type", RealParameterSchema)
935
+ ], BandSchema.prototype, "freq", void 0);
936
+ __decorate([
937
+ Xml.Element("Gain", RealParameterSchema),
938
+ __metadata("design:type", RealParameterSchema)
939
+ ], BandSchema.prototype, "gain", void 0);
940
+ __decorate([
941
+ Xml.Element("Q", RealParameterSchema),
942
+ __metadata("design:type", RealParameterSchema)
943
+ ], BandSchema.prototype, "Q", void 0);
944
+ __decorate([
945
+ Xml.Element("Enabled", BooleanParameterSchema),
946
+ __metadata("design:type", BooleanParameterSchema)
947
+ ], BandSchema.prototype, "enabled", void 0);
948
+ BandSchema = __decorate([
949
+ Xml.Class("Band")
950
+ ], BandSchema);
951
+ export { BandSchema };
952
+ let EqualizerSchema = class EqualizerSchema extends BuiltinDeviceSchema {
953
+ bands;
954
+ };
955
+ __decorate([
956
+ Xml.ElementRef(BandSchema),
957
+ __metadata("design:type", Array)
958
+ ], EqualizerSchema.prototype, "bands", void 0);
959
+ EqualizerSchema = __decorate([
960
+ Xml.Class("Equalizer")
961
+ ], EqualizerSchema);
962
+ export { EqualizerSchema };
963
+ let PluginSchema = class PluginSchema extends DeviceSchema {
964
+ pluginVersion;
965
+ };
966
+ __decorate([
967
+ Xml.Attribute("pluginVersion"),
968
+ __metadata("design:type", String)
969
+ ], PluginSchema.prototype, "pluginVersion", void 0);
970
+ PluginSchema = __decorate([
971
+ Xml.Class("Plugin")
972
+ ], PluginSchema);
973
+ export { PluginSchema };
974
+ let ChannelSchema = class ChannelSchema {
975
+ id;
976
+ role;
977
+ audioChannels;
978
+ destination;
979
+ solo;
980
+ devices;
981
+ volume;
982
+ pan;
983
+ mute;
984
+ sends;
985
+ };
986
+ __decorate([
987
+ Xml.Attribute("id"),
988
+ __metadata("design:type", String)
989
+ ], ChannelSchema.prototype, "id", void 0);
990
+ __decorate([
991
+ Xml.Attribute("role"),
992
+ __metadata("design:type", String)
993
+ ], ChannelSchema.prototype, "role", void 0);
994
+ __decorate([
995
+ Xml.Attribute("audioChannels", Xml.NumberOptional),
996
+ __metadata("design:type", Number)
997
+ ], ChannelSchema.prototype, "audioChannels", void 0);
998
+ __decorate([
999
+ Xml.Attribute("destination"),
1000
+ __metadata("design:type", String)
1001
+ ], ChannelSchema.prototype, "destination", void 0);
1002
+ __decorate([
1003
+ Xml.Attribute("solo", Xml.BoolOptional),
1004
+ __metadata("design:type", Boolean)
1005
+ ], ChannelSchema.prototype, "solo", void 0);
1006
+ __decorate([
1007
+ Xml.ElementRef(DeviceSchema, "Devices"),
1008
+ __metadata("design:type", Array)
1009
+ ], ChannelSchema.prototype, "devices", void 0);
1010
+ __decorate([
1011
+ Xml.Element("Volume", RealParameterSchema),
1012
+ __metadata("design:type", RealParameterSchema)
1013
+ ], ChannelSchema.prototype, "volume", void 0);
1014
+ __decorate([
1015
+ Xml.Element("Pan", RealParameterSchema),
1016
+ __metadata("design:type", RealParameterSchema)
1017
+ ], ChannelSchema.prototype, "pan", void 0);
1018
+ __decorate([
1019
+ Xml.Element("Mute", BooleanParameterSchema),
1020
+ __metadata("design:type", BooleanParameterSchema)
1021
+ ], ChannelSchema.prototype, "mute", void 0);
1022
+ __decorate([
1023
+ Xml.ElementRef(SendSchema, "Sends"),
1024
+ __metadata("design:type", Array)
1025
+ ], ChannelSchema.prototype, "sends", void 0);
1026
+ ChannelSchema = __decorate([
1027
+ Xml.Class("Channel")
1028
+ ], ChannelSchema);
1029
+ export { ChannelSchema };
1030
+ let TrackSchema = class TrackSchema extends LaneSchema {
1031
+ contentType;
1032
+ name;
1033
+ color;
1034
+ loaded;
1035
+ channel;
1036
+ tracks;
1037
+ };
1038
+ __decorate([
1039
+ Xml.Attribute("contentType"),
1040
+ __metadata("design:type", String)
1041
+ ], TrackSchema.prototype, "contentType", void 0);
1042
+ __decorate([
1043
+ Xml.Attribute("name"),
1044
+ __metadata("design:type", String)
1045
+ ], TrackSchema.prototype, "name", void 0);
1046
+ __decorate([
1047
+ Xml.Attribute("color"),
1048
+ __metadata("design:type", String)
1049
+ ], TrackSchema.prototype, "color", void 0);
1050
+ __decorate([
1051
+ Xml.Attribute("loaded", Xml.BoolOptional),
1052
+ __metadata("design:type", Boolean)
1053
+ ], TrackSchema.prototype, "loaded", void 0);
1054
+ __decorate([
1055
+ Xml.Element("Channel", ChannelSchema),
1056
+ __metadata("design:type", ChannelSchema)
1057
+ ], TrackSchema.prototype, "channel", void 0);
1058
+ __decorate([
1059
+ Xml.ElementRef(TrackSchema),
1060
+ __metadata("design:type", Array)
1061
+ ], TrackSchema.prototype, "tracks", void 0);
1062
+ TrackSchema = __decorate([
1063
+ Xml.Class("Track")
1064
+ ], TrackSchema);
1065
+ export { TrackSchema };
1066
+ let ClapPluginSchema = class ClapPluginSchema extends PluginSchema {
1067
+ };
1068
+ ClapPluginSchema = __decorate([
1069
+ Xml.Class("ClapPlugin")
1070
+ ], ClapPluginSchema);
1071
+ export { ClapPluginSchema };
1072
+ let ProjectSchema = class ProjectSchema {
1073
+ version;
1074
+ application;
1075
+ transport;
1076
+ structure;
1077
+ arrangement;
1078
+ scenes;
1079
+ };
1080
+ __decorate([
1081
+ Xml.Attribute("version", Xml.StringRequired),
1082
+ __metadata("design:type", String)
1083
+ ], ProjectSchema.prototype, "version", void 0);
1084
+ __decorate([
1085
+ Xml.Element("Application", ApplicationSchema),
1086
+ __metadata("design:type", ApplicationSchema)
1087
+ ], ProjectSchema.prototype, "application", void 0);
1088
+ __decorate([
1089
+ Xml.Element("Transport", TransportSchema),
1090
+ __metadata("design:type", TransportSchema)
1091
+ ], ProjectSchema.prototype, "transport", void 0);
1092
+ __decorate([
1093
+ Xml.ElementRef(LaneSchema, "Structure"),
1094
+ __metadata("design:type", Array)
1095
+ ], ProjectSchema.prototype, "structure", void 0);
1096
+ __decorate([
1097
+ Xml.Element("Arrangement", ArrangementSchema),
1098
+ __metadata("design:type", ArrangementSchema)
1099
+ ], ProjectSchema.prototype, "arrangement", void 0);
1100
+ __decorate([
1101
+ Xml.ElementRef(SceneSchema, "Scenes"),
1102
+ __metadata("design:type", Array)
1103
+ ], ProjectSchema.prototype, "scenes", void 0);
1104
+ ProjectSchema = __decorate([
1105
+ Xml.Class("Project")
1106
+ ], ProjectSchema);
1107
+ export { ProjectSchema };