@opendaw/lib-dawproject 0.0.4 → 0.0.5
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.d.ts +69 -48
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +270 -193
- package/package.json +6 -4
package/dist/index.d.ts
CHANGED
@@ -26,6 +26,10 @@ export declare enum TimeUnit {
|
|
26
26
|
BEATS = "beats",
|
27
27
|
SECONDS = "seconds"
|
28
28
|
}
|
29
|
+
export declare enum SendType {
|
30
|
+
PRE = "pre",
|
31
|
+
POST = "post"
|
32
|
+
}
|
29
33
|
export declare class MetaDataSchema {
|
30
34
|
readonly title?: string;
|
31
35
|
readonly artist?: string;
|
@@ -73,50 +77,16 @@ export declare class StateSchema {
|
|
73
77
|
}
|
74
78
|
export declare class SendSchema {
|
75
79
|
readonly id?: string;
|
76
|
-
readonly name?: string;
|
77
|
-
readonly value: RealParameterSchema;
|
78
|
-
}
|
79
|
-
export declare class PluginSchema implements Referenceable {
|
80
|
-
readonly id?: string;
|
81
|
-
readonly deviceID?: string;
|
82
|
-
readonly deviceName?: string;
|
83
|
-
readonly deviceRole?: string;
|
84
|
-
readonly loaded?: boolean;
|
85
|
-
readonly name?: string;
|
86
|
-
readonly parameters?: ParameterSchema[];
|
87
|
-
readonly state?: StateSchema;
|
88
|
-
readonly enabled?: BooleanParameterSchema;
|
89
|
-
}
|
90
|
-
export declare class DevicesSchema {
|
91
|
-
readonly vst3plugin?: PluginSchema;
|
92
|
-
readonly clapplugin?: PluginSchema;
|
93
|
-
readonly auplugin?: PluginSchema;
|
94
|
-
}
|
95
|
-
export declare class ChannelSchema implements Referenceable {
|
96
|
-
readonly id?: string;
|
97
|
-
readonly role?: string;
|
98
|
-
readonly audioChannels?: int;
|
99
80
|
readonly destination?: string;
|
100
|
-
readonly
|
101
|
-
readonly
|
102
|
-
readonly volume?: RealParameterSchema;
|
81
|
+
readonly type?: string;
|
82
|
+
readonly volume: RealParameterSchema;
|
103
83
|
readonly pan?: RealParameterSchema;
|
104
|
-
readonly
|
105
|
-
readonly sends?: SendSchema[];
|
84
|
+
readonly enable?: BooleanParameterSchema;
|
106
85
|
}
|
107
86
|
export declare class TransportSchema {
|
108
87
|
readonly tempo?: RealParameterSchema;
|
109
88
|
readonly timeSignature?: TimeSignatureParameterSchema;
|
110
89
|
}
|
111
|
-
export declare class TrackSchema implements Referenceable {
|
112
|
-
readonly id?: string;
|
113
|
-
readonly contentType?: string;
|
114
|
-
readonly name?: string;
|
115
|
-
readonly color?: string;
|
116
|
-
readonly loaded?: boolean;
|
117
|
-
readonly channel?: ChannelSchema;
|
118
|
-
readonly tracks?: ReadonlyArray<TrackSchema>;
|
119
|
-
}
|
120
90
|
export declare class LaneSchema implements Referenceable {
|
121
91
|
readonly id?: string;
|
122
92
|
}
|
@@ -126,12 +96,12 @@ export declare class TimelineSchema implements Referenceable {
|
|
126
96
|
readonly track?: string;
|
127
97
|
}
|
128
98
|
export declare class NoteSchema {
|
129
|
-
readonly time:
|
130
|
-
readonly duration:
|
99
|
+
readonly time: number;
|
100
|
+
readonly duration: number;
|
131
101
|
readonly channel: int;
|
132
102
|
readonly key: int;
|
133
|
-
readonly vel?:
|
134
|
-
readonly rel?:
|
103
|
+
readonly vel?: number;
|
104
|
+
readonly rel?: number;
|
135
105
|
}
|
136
106
|
export declare class NotesSchema extends TimelineSchema {
|
137
107
|
readonly notes?: ReadonlyArray<NoteSchema>;
|
@@ -140,7 +110,7 @@ export declare class ClipSchema implements Nameable {
|
|
140
110
|
readonly name?: string;
|
141
111
|
readonly color?: string;
|
142
112
|
readonly comment?: string;
|
143
|
-
readonly time
|
113
|
+
readonly time?: number;
|
144
114
|
readonly duration?: number;
|
145
115
|
readonly contentTimeUnit?: string;
|
146
116
|
readonly playStart?: number;
|
@@ -151,7 +121,7 @@ export declare class ClipSchema implements Nameable {
|
|
151
121
|
readonly fadeInTime?: number;
|
152
122
|
readonly fadeOutTime?: number;
|
153
123
|
readonly enable?: boolean;
|
154
|
-
readonly content?: TimelineSchema
|
124
|
+
readonly content?: ReadonlyArray<TimelineSchema>;
|
155
125
|
readonly reference?: string;
|
156
126
|
}
|
157
127
|
export declare class ClipsSchema extends TimelineSchema {
|
@@ -175,10 +145,6 @@ export declare class WarpSchema {
|
|
175
145
|
readonly time: number;
|
176
146
|
readonly contentTime: number;
|
177
147
|
}
|
178
|
-
export declare class WarpsSchema extends TimelineSchema {
|
179
|
-
readonly warps: ReadonlyArray<WarpSchema>;
|
180
|
-
readonly contentTimeUnit: string;
|
181
|
-
}
|
182
148
|
export declare class FileReferenceSchema {
|
183
149
|
readonly path: string;
|
184
150
|
readonly external?: boolean;
|
@@ -192,6 +158,11 @@ export declare class AudioSchema extends MediaFileSchema {
|
|
192
158
|
readonly channels: int;
|
193
159
|
readonly sampleRate: int;
|
194
160
|
}
|
161
|
+
export declare class WarpsSchema extends TimelineSchema {
|
162
|
+
readonly content?: ReadonlyArray<TimelineSchema>;
|
163
|
+
readonly warps: ReadonlyArray<WarpSchema>;
|
164
|
+
readonly contentTimeUnit: string;
|
165
|
+
}
|
195
166
|
export declare class VideoSchema extends MediaFileSchema {
|
196
167
|
readonly algorithm?: string;
|
197
168
|
readonly channels: int;
|
@@ -228,7 +199,57 @@ export declare class ArrangementSchema implements Referenceable {
|
|
228
199
|
}
|
229
200
|
export declare class SceneSchema implements Referenceable {
|
230
201
|
readonly id?: string;
|
231
|
-
readonly content?: TimelineSchema
|
202
|
+
readonly content?: ReadonlyArray<TimelineSchema>;
|
203
|
+
}
|
204
|
+
export declare class DeviceSchema implements Referenceable {
|
205
|
+
readonly id?: string;
|
206
|
+
readonly enabled?: BooleanParameterSchema;
|
207
|
+
readonly deviceRole: string;
|
208
|
+
readonly loaded?: boolean;
|
209
|
+
readonly deviceName?: string;
|
210
|
+
readonly deviceID?: string;
|
211
|
+
readonly deviceVendor?: string;
|
212
|
+
readonly state?: FileReferenceSchema;
|
213
|
+
readonly name?: string;
|
214
|
+
readonly automatedParameters?: ReadonlyArray<ParameterSchema>;
|
215
|
+
}
|
216
|
+
export declare class BuiltinDeviceSchema extends DeviceSchema {
|
217
|
+
}
|
218
|
+
export declare class BandSchema {
|
219
|
+
readonly type: string;
|
220
|
+
readonly order: string;
|
221
|
+
readonly freq: RealParameterSchema;
|
222
|
+
readonly gain?: RealParameterSchema;
|
223
|
+
readonly Q?: RealParameterSchema;
|
224
|
+
readonly enabled?: BooleanParameterSchema;
|
225
|
+
}
|
226
|
+
export declare class Equalizer extends BuiltinDeviceSchema {
|
227
|
+
readonly bands: ReadonlyArray<BandSchema>;
|
228
|
+
}
|
229
|
+
export declare class PluginSchema extends DeviceSchema {
|
230
|
+
readonly pluginVersion?: string;
|
231
|
+
}
|
232
|
+
export declare class ChannelSchema implements Referenceable {
|
233
|
+
readonly id?: string;
|
234
|
+
readonly role?: string;
|
235
|
+
readonly audioChannels?: int;
|
236
|
+
readonly destination?: string;
|
237
|
+
readonly solo?: boolean;
|
238
|
+
readonly devices?: DeviceSchema;
|
239
|
+
readonly volume?: RealParameterSchema;
|
240
|
+
readonly pan?: RealParameterSchema;
|
241
|
+
readonly mute?: BooleanParameterSchema;
|
242
|
+
readonly sends?: SendSchema[];
|
243
|
+
}
|
244
|
+
export declare class TrackSchema extends LaneSchema {
|
245
|
+
readonly contentType?: string;
|
246
|
+
readonly name?: string;
|
247
|
+
readonly color?: string;
|
248
|
+
readonly loaded?: boolean;
|
249
|
+
readonly channel?: ChannelSchema;
|
250
|
+
readonly tracks?: ReadonlyArray<TrackSchema>;
|
251
|
+
}
|
252
|
+
export declare class ClapPluginSchema extends PluginSchema {
|
232
253
|
}
|
233
254
|
export declare class ProjectSchema {
|
234
255
|
readonly version: "1.0";
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources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,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAA;IAGrC,QAAQ,CAAC,GAAG,CAAC,EAAE,mBAAmB,CAAA;IAGlC,QAAQ,CAAC,IAAI,CAAC,EAAE,sBAAsB,CAAA;IAGtC,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,EAAE,CAAA;CAChC;AAED,qBACa,WAAY,SAAQ,UAAU;IAEvC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAG7B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IAGtB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IAGvB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;IAGzB,QAAQ,CAAC,OAAO,CAAC,EAAE,aAAa,CAAA;IAGhC,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAA;CAC/C;AAED,qBACa,gBAAiB,SAAQ,YAAY;CAAG;AAErD,qBACa,aAAa;IAEtB,QAAQ,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
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
// noinspection JSUnusedGlobalSymbols
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
@@ -9,6 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
9
|
};
|
11
10
|
import { Xml } from "@opendaw/lib-xml";
|
11
|
+
// noinspection JSUnusedGlobalSymbols
|
12
12
|
export var Unit;
|
13
13
|
(function (Unit) {
|
14
14
|
Unit["LINEAR"] = "linear";
|
@@ -21,16 +21,24 @@ export var Unit;
|
|
21
21
|
Unit["BEATS"] = "beats";
|
22
22
|
Unit["BPM"] = "bpm";
|
23
23
|
})(Unit || (Unit = {}));
|
24
|
+
// noinspection JSUnusedGlobalSymbols
|
24
25
|
export var Interpolation;
|
25
26
|
(function (Interpolation) {
|
26
27
|
Interpolation["HOLD"] = "hold";
|
27
28
|
Interpolation["LINEAR"] = "linear";
|
28
29
|
})(Interpolation || (Interpolation = {}));
|
30
|
+
// noinspection JSUnusedGlobalSymbols
|
29
31
|
export var TimeUnit;
|
30
32
|
(function (TimeUnit) {
|
31
33
|
TimeUnit["BEATS"] = "beats";
|
32
34
|
TimeUnit["SECONDS"] = "seconds";
|
33
35
|
})(TimeUnit || (TimeUnit = {}));
|
36
|
+
// noinspection JSUnusedGlobalSymbols
|
37
|
+
export var SendType;
|
38
|
+
(function (SendType) {
|
39
|
+
SendType["PRE"] = "pre";
|
40
|
+
SendType["POST"] = "post";
|
41
|
+
})(SendType || (SendType = {}));
|
34
42
|
let MetaDataSchema = class MetaDataSchema {
|
35
43
|
title;
|
36
44
|
artist;
|
@@ -230,153 +238,40 @@ StateSchema = __decorate([
|
|
230
238
|
export { StateSchema };
|
231
239
|
let SendSchema = class SendSchema {
|
232
240
|
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
241
|
destination;
|
329
|
-
|
330
|
-
devices;
|
242
|
+
type;
|
331
243
|
volume;
|
332
244
|
pan;
|
333
|
-
|
334
|
-
sends;
|
245
|
+
enable;
|
335
246
|
};
|
336
247
|
__decorate([
|
337
248
|
Xml.Attribute("id"),
|
338
249
|
__metadata("design:type", String)
|
339
|
-
],
|
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);
|
250
|
+
], SendSchema.prototype, "id", void 0);
|
348
251
|
__decorate([
|
349
252
|
Xml.Attribute("destination"),
|
350
253
|
__metadata("design:type", String)
|
351
|
-
],
|
352
|
-
__decorate([
|
353
|
-
Xml.Attribute("solo", Xml.BoolOptional),
|
354
|
-
__metadata("design:type", Boolean)
|
355
|
-
], ChannelSchema.prototype, "solo", void 0);
|
254
|
+
], SendSchema.prototype, "destination", void 0);
|
356
255
|
__decorate([
|
357
|
-
Xml.
|
358
|
-
__metadata("design:type",
|
359
|
-
],
|
256
|
+
Xml.Attribute("type"),
|
257
|
+
__metadata("design:type", String)
|
258
|
+
], SendSchema.prototype, "type", void 0);
|
360
259
|
__decorate([
|
361
260
|
Xml.Element("Volume", RealParameterSchema),
|
362
261
|
__metadata("design:type", RealParameterSchema)
|
363
|
-
],
|
262
|
+
], SendSchema.prototype, "volume", void 0);
|
364
263
|
__decorate([
|
365
264
|
Xml.Element("Pan", RealParameterSchema),
|
366
265
|
__metadata("design:type", RealParameterSchema)
|
367
|
-
],
|
266
|
+
], SendSchema.prototype, "pan", void 0);
|
368
267
|
__decorate([
|
369
|
-
Xml.Element("
|
268
|
+
Xml.Element("Enable", BooleanParameterSchema),
|
370
269
|
__metadata("design:type", BooleanParameterSchema)
|
371
|
-
],
|
372
|
-
__decorate([
|
373
|
-
Xml.
|
374
|
-
|
375
|
-
|
376
|
-
ChannelSchema = __decorate([
|
377
|
-
Xml.Class("Channel")
|
378
|
-
], ChannelSchema);
|
379
|
-
export { ChannelSchema };
|
270
|
+
], SendSchema.prototype, "enable", void 0);
|
271
|
+
SendSchema = __decorate([
|
272
|
+
Xml.Class("Send")
|
273
|
+
], SendSchema);
|
274
|
+
export { SendSchema };
|
380
275
|
let TransportSchema = class TransportSchema {
|
381
276
|
tempo;
|
382
277
|
timeSignature;
|
@@ -393,47 +288,6 @@ TransportSchema = __decorate([
|
|
393
288
|
Xml.Class("Transport")
|
394
289
|
], TransportSchema);
|
395
290
|
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
291
|
let LaneSchema = class LaneSchema {
|
438
292
|
id;
|
439
293
|
};
|
@@ -476,11 +330,11 @@ let NoteSchema = class NoteSchema {
|
|
476
330
|
};
|
477
331
|
__decorate([
|
478
332
|
Xml.Attribute("time", Xml.NumberRequired),
|
479
|
-
__metadata("design:type",
|
333
|
+
__metadata("design:type", Number)
|
480
334
|
], NoteSchema.prototype, "time", void 0);
|
481
335
|
__decorate([
|
482
336
|
Xml.Attribute("duration", Xml.NumberRequired),
|
483
|
-
__metadata("design:type",
|
337
|
+
__metadata("design:type", Number)
|
484
338
|
], NoteSchema.prototype, "duration", void 0);
|
485
339
|
__decorate([
|
486
340
|
Xml.Attribute("channel", Xml.NumberRequired),
|
@@ -492,11 +346,11 @@ __decorate([
|
|
492
346
|
], NoteSchema.prototype, "key", void 0);
|
493
347
|
__decorate([
|
494
348
|
Xml.Attribute("vel", Xml.NumberOptional),
|
495
|
-
__metadata("design:type",
|
349
|
+
__metadata("design:type", Number)
|
496
350
|
], NoteSchema.prototype, "vel", void 0);
|
497
351
|
__decorate([
|
498
352
|
Xml.Attribute("rel", Xml.NumberOptional),
|
499
|
-
__metadata("design:type",
|
353
|
+
__metadata("design:type", Number)
|
500
354
|
], NoteSchema.prototype, "rel", void 0);
|
501
355
|
NoteSchema = __decorate([
|
502
356
|
Xml.Class("Note")
|
@@ -589,7 +443,7 @@ __decorate([
|
|
589
443
|
], ClipSchema.prototype, "enable", void 0);
|
590
444
|
__decorate([
|
591
445
|
Xml.ElementRef(TimelineSchema),
|
592
|
-
__metadata("design:type",
|
446
|
+
__metadata("design:type", Array)
|
593
447
|
], ClipSchema.prototype, "content", void 0);
|
594
448
|
__decorate([
|
595
449
|
Xml.Attribute("reference"),
|
@@ -684,28 +538,12 @@ WarpSchema = __decorate([
|
|
684
538
|
Xml.Class("Warp")
|
685
539
|
], WarpSchema);
|
686
540
|
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
541
|
let FileReferenceSchema = class FileReferenceSchema {
|
704
542
|
path;
|
705
543
|
external;
|
706
544
|
};
|
707
545
|
__decorate([
|
708
|
-
Xml.Attribute("path"),
|
546
|
+
Xml.Attribute("path", Xml.StringRequired),
|
709
547
|
__metadata("design:type", String)
|
710
548
|
], FileReferenceSchema.prototype, "path", void 0);
|
711
549
|
__decorate([
|
@@ -753,6 +591,27 @@ AudioSchema = __decorate([
|
|
753
591
|
Xml.Class("Audio")
|
754
592
|
], AudioSchema);
|
755
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 };
|
756
615
|
let VideoSchema = class VideoSchema extends MediaFileSchema {
|
757
616
|
algorithm;
|
758
617
|
channels;
|
@@ -905,12 +764,230 @@ __decorate([
|
|
905
764
|
], SceneSchema.prototype, "id", void 0);
|
906
765
|
__decorate([
|
907
766
|
Xml.ElementRef(TimelineSchema),
|
908
|
-
__metadata("design:type",
|
767
|
+
__metadata("design:type", Array)
|
909
768
|
], SceneSchema.prototype, "content", void 0);
|
910
769
|
SceneSchema = __decorate([
|
911
770
|
Xml.Class("Scene")
|
912
771
|
], SceneSchema);
|
913
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 };
|
914
991
|
let ProjectSchema = class ProjectSchema {
|
915
992
|
version;
|
916
993
|
application;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@opendaw/lib-dawproject",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.5",
|
4
4
|
"main": "./dist/index.js",
|
5
5
|
"types": "./dist/index.d.ts",
|
6
6
|
"license": "LGPL-3.0-or-later",
|
@@ -22,12 +22,14 @@
|
|
22
22
|
"test": "vitest run"
|
23
23
|
},
|
24
24
|
"dependencies": {
|
25
|
-
"@opendaw/lib-
|
25
|
+
"@opendaw/lib-runtime": "^0.0.19",
|
26
|
+
"@opendaw/lib-xml": "^0.0.5",
|
27
|
+
"jszip": "^3.10.1"
|
26
28
|
},
|
27
29
|
"devDependencies": {
|
28
30
|
"@opendaw/eslint-config": "^0.0.18",
|
29
|
-
"@opendaw/typescript-config": "^0.0.
|
31
|
+
"@opendaw/typescript-config": "^0.0.19",
|
30
32
|
"jsdom": "^26.1.0"
|
31
33
|
},
|
32
|
-
"gitHead": "
|
34
|
+
"gitHead": "8d9e873aad633820cd26f76dc447674728401495"
|
33
35
|
}
|