@opendaw/lib-dawproject 0.0.1

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