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