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