@opendaw/lib-dawproject 0.0.3 → 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 +81 -72
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +306 -308
- package/package.json +7 -5
package/dist/index.d.ts
CHANGED
@@ -22,6 +22,14 @@ export declare enum Interpolation {
|
|
22
22
|
HOLD = "hold",
|
23
23
|
LINEAR = "linear"
|
24
24
|
}
|
25
|
+
export declare enum TimeUnit {
|
26
|
+
BEATS = "beats",
|
27
|
+
SECONDS = "seconds"
|
28
|
+
}
|
29
|
+
export declare enum SendType {
|
30
|
+
PRE = "pre",
|
31
|
+
POST = "post"
|
32
|
+
}
|
25
33
|
export declare class MetaDataSchema {
|
26
34
|
readonly title?: string;
|
27
35
|
readonly artist?: string;
|
@@ -53,7 +61,7 @@ export declare class RealParameterSchema {
|
|
53
61
|
readonly max?: number;
|
54
62
|
}
|
55
63
|
export declare class TimeSignatureParameterSchema {
|
56
|
-
readonly
|
64
|
+
readonly numerator?: number;
|
57
65
|
readonly denominator?: number;
|
58
66
|
}
|
59
67
|
export declare class ParameterSchema implements Referenceable {
|
@@ -69,50 +77,16 @@ export declare class StateSchema {
|
|
69
77
|
}
|
70
78
|
export declare class SendSchema {
|
71
79
|
readonly id?: string;
|
72
|
-
readonly name?: string;
|
73
|
-
readonly value: RealParameterSchema;
|
74
|
-
}
|
75
|
-
export declare class PluginSchema implements Referenceable {
|
76
|
-
readonly id?: string;
|
77
|
-
readonly deviceID?: string;
|
78
|
-
readonly deviceName?: string;
|
79
|
-
readonly deviceRole?: string;
|
80
|
-
readonly loaded?: boolean;
|
81
|
-
readonly name?: string;
|
82
|
-
readonly parameters?: ParameterSchema[];
|
83
|
-
readonly state?: StateSchema;
|
84
|
-
readonly enabled?: BooleanParameterSchema;
|
85
|
-
}
|
86
|
-
export declare class DevicesSchema {
|
87
|
-
readonly vst3plugin?: PluginSchema;
|
88
|
-
readonly clapplugin?: PluginSchema;
|
89
|
-
readonly auplugin?: PluginSchema;
|
90
|
-
}
|
91
|
-
export declare class ChannelSchema implements Referenceable {
|
92
|
-
readonly id?: string;
|
93
|
-
readonly role?: string;
|
94
|
-
readonly audioChannels?: int;
|
95
80
|
readonly destination?: string;
|
96
|
-
readonly
|
97
|
-
readonly
|
98
|
-
readonly volume?: RealParameterSchema;
|
81
|
+
readonly type?: string;
|
82
|
+
readonly volume: RealParameterSchema;
|
99
83
|
readonly pan?: RealParameterSchema;
|
100
|
-
readonly
|
101
|
-
readonly sends?: SendSchema[];
|
84
|
+
readonly enable?: BooleanParameterSchema;
|
102
85
|
}
|
103
86
|
export declare class TransportSchema {
|
104
87
|
readonly tempo?: RealParameterSchema;
|
105
88
|
readonly timeSignature?: TimeSignatureParameterSchema;
|
106
89
|
}
|
107
|
-
export declare class TrackSchema implements Referenceable {
|
108
|
-
readonly id?: string;
|
109
|
-
readonly contentType?: string;
|
110
|
-
readonly name?: string;
|
111
|
-
readonly color?: string;
|
112
|
-
readonly loaded?: boolean;
|
113
|
-
readonly channel?: ChannelSchema;
|
114
|
-
readonly tracks?: ReadonlyArray<TrackSchema>;
|
115
|
-
}
|
116
90
|
export declare class LaneSchema implements Referenceable {
|
117
91
|
readonly id?: string;
|
118
92
|
}
|
@@ -122,12 +96,12 @@ export declare class TimelineSchema implements Referenceable {
|
|
122
96
|
readonly track?: string;
|
123
97
|
}
|
124
98
|
export declare class NoteSchema {
|
125
|
-
readonly time:
|
126
|
-
readonly duration:
|
99
|
+
readonly time: number;
|
100
|
+
readonly duration: number;
|
127
101
|
readonly channel: int;
|
128
102
|
readonly key: int;
|
129
|
-
readonly vel?:
|
130
|
-
readonly rel?:
|
103
|
+
readonly vel?: number;
|
104
|
+
readonly rel?: number;
|
131
105
|
}
|
132
106
|
export declare class NotesSchema extends TimelineSchema {
|
133
107
|
readonly notes?: ReadonlyArray<NoteSchema>;
|
@@ -136,7 +110,7 @@ export declare class ClipSchema implements Nameable {
|
|
136
110
|
readonly name?: string;
|
137
111
|
readonly color?: string;
|
138
112
|
readonly comment?: string;
|
139
|
-
readonly time
|
113
|
+
readonly time?: number;
|
140
114
|
readonly duration?: number;
|
141
115
|
readonly contentTimeUnit?: string;
|
142
116
|
readonly playStart?: number;
|
@@ -147,6 +121,7 @@ export declare class ClipSchema implements Nameable {
|
|
147
121
|
readonly fadeInTime?: number;
|
148
122
|
readonly fadeOutTime?: number;
|
149
123
|
readonly enable?: boolean;
|
124
|
+
readonly content?: ReadonlyArray<TimelineSchema>;
|
150
125
|
readonly reference?: string;
|
151
126
|
}
|
152
127
|
export declare class ClipsSchema extends TimelineSchema {
|
@@ -170,10 +145,6 @@ export declare class WarpSchema {
|
|
170
145
|
readonly time: number;
|
171
146
|
readonly contentTime: number;
|
172
147
|
}
|
173
|
-
export declare class WarpsSchema extends TimelineSchema {
|
174
|
-
readonly warps: ReadonlyArray<WarpSchema>;
|
175
|
-
readonly contentTimeUnit: string;
|
176
|
-
}
|
177
148
|
export declare class FileReferenceSchema {
|
178
149
|
readonly path: string;
|
179
150
|
readonly external?: boolean;
|
@@ -187,6 +158,11 @@ export declare class AudioSchema extends MediaFileSchema {
|
|
187
158
|
readonly channels: int;
|
188
159
|
readonly sampleRate: int;
|
189
160
|
}
|
161
|
+
export declare class WarpsSchema extends TimelineSchema {
|
162
|
+
readonly content?: ReadonlyArray<TimelineSchema>;
|
163
|
+
readonly warps: ReadonlyArray<WarpSchema>;
|
164
|
+
readonly contentTimeUnit: string;
|
165
|
+
}
|
190
166
|
export declare class VideoSchema extends MediaFileSchema {
|
191
167
|
readonly algorithm?: string;
|
192
168
|
readonly channels: int;
|
@@ -204,43 +180,76 @@ export declare class PointSchema {
|
|
204
180
|
readonly value?: any;
|
205
181
|
readonly interpolation?: Interpolation;
|
206
182
|
}
|
183
|
+
export declare class RealPointSchema extends PointSchema {
|
184
|
+
}
|
207
185
|
export declare class PointsSchema extends TimelineSchema {
|
208
186
|
readonly target?: AutomationTargetSchema;
|
209
187
|
readonly points?: ReadonlyArray<PointSchema>;
|
210
188
|
readonly unit?: Unit;
|
211
189
|
}
|
212
|
-
export declare class LanesSchema
|
213
|
-
readonly
|
214
|
-
readonly timelines?: ReadonlyArray<TimelineSchema>;
|
215
|
-
readonly subLanes?: LanesSchema[];
|
216
|
-
readonly notes?: NotesSchema[];
|
217
|
-
readonly clips?: ClipsSchema[];
|
218
|
-
readonly clipSlots?: ClipSlotSchema[];
|
219
|
-
readonly markerTracks?: MarkersSchema[];
|
220
|
-
readonly warps?: WarpsSchema[];
|
221
|
-
readonly audio?: AudioSchema[];
|
222
|
-
readonly video?: VideoSchema[];
|
223
|
-
readonly automation?: PointsSchema[];
|
190
|
+
export declare class LanesSchema extends TimelineSchema {
|
191
|
+
readonly lanes?: ReadonlyArray<TimelineSchema>;
|
224
192
|
}
|
225
193
|
export declare class ArrangementSchema implements Referenceable {
|
226
194
|
readonly id?: string;
|
227
|
-
readonly lanes?: LanesSchema;
|
228
|
-
readonly markers?: MarkerSchema[];
|
229
|
-
readonly tempoAutomation?: PointsSchema;
|
230
195
|
readonly timeSignatureAutomation?: PointsSchema;
|
196
|
+
readonly tempoAutomation?: PointsSchema;
|
197
|
+
readonly markers?: MarkerSchema;
|
198
|
+
readonly lanes?: LanesSchema;
|
231
199
|
}
|
232
200
|
export declare class SceneSchema implements Referenceable {
|
233
201
|
readonly id?: string;
|
234
|
-
readonly
|
235
|
-
|
236
|
-
|
237
|
-
readonly
|
238
|
-
readonly
|
239
|
-
readonly
|
240
|
-
readonly
|
241
|
-
readonly
|
242
|
-
readonly
|
243
|
-
readonly
|
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 {
|
244
253
|
}
|
245
254
|
export declare class ProjectSchema {
|
246
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":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAGzC,UAAU,QAAQ;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,UAAU,aAAc,SAAQ,QAAQ;IACpC,EAAE,CAAC,EAAE,MAAM,CAAA;CACd;AAGD,oBAAY,IAAI;IACZ,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,GAAG,QAAQ;CACd;AAGD,oBAAY,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;CACpB;AAGD,oBAAY,QAAQ;IAChB,KAAK,UAAU;IACf,OAAO,YAAY;CACtB;AAGD,oBAAY,QAAQ;IAChB,GAAG,QAAQ;IACX,IAAI,SAAS;CAChB;AAED,qBACa,cAAc;IACO,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAA;IACtC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,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AC,IAAI,CAAC,EAAE,OAAO,CAAA;IAGvB,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAA;IAG/B,QAAQ,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,11 +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
|
31
|
+
export var TimeUnit;
|
32
|
+
(function (TimeUnit) {
|
33
|
+
TimeUnit["BEATS"] = "beats";
|
34
|
+
TimeUnit["SECONDS"] = "seconds";
|
35
|
+
})(TimeUnit || (TimeUnit = {}));
|
36
|
+
// noinspection JSUnusedGlobalSymbols
|
37
|
+
export var SendType;
|
38
|
+
(function (SendType) {
|
39
|
+
SendType["PRE"] = "pre";
|
40
|
+
SendType["POST"] = "post";
|
41
|
+
})(SendType || (SendType = {}));
|
29
42
|
let MetaDataSchema = class MetaDataSchema {
|
30
43
|
title;
|
31
44
|
artist;
|
@@ -161,13 +174,13 @@ RealParameterSchema = __decorate([
|
|
161
174
|
], RealParameterSchema);
|
162
175
|
export { RealParameterSchema };
|
163
176
|
let TimeSignatureParameterSchema = class TimeSignatureParameterSchema {
|
164
|
-
|
177
|
+
numerator;
|
165
178
|
denominator;
|
166
179
|
};
|
167
180
|
__decorate([
|
168
|
-
Xml.Attribute("
|
181
|
+
Xml.Attribute("numerator", Xml.NumberOptional),
|
169
182
|
__metadata("design:type", Number)
|
170
|
-
], TimeSignatureParameterSchema.prototype, "
|
183
|
+
], TimeSignatureParameterSchema.prototype, "numerator", void 0);
|
171
184
|
__decorate([
|
172
185
|
Xml.Attribute("denominator", Xml.NumberOptional),
|
173
186
|
__metadata("design:type", Number)
|
@@ -225,153 +238,40 @@ StateSchema = __decorate([
|
|
225
238
|
export { StateSchema };
|
226
239
|
let SendSchema = class SendSchema {
|
227
240
|
id;
|
228
|
-
name;
|
229
|
-
value;
|
230
|
-
};
|
231
|
-
__decorate([
|
232
|
-
Xml.Attribute("id"),
|
233
|
-
__metadata("design:type", String)
|
234
|
-
], SendSchema.prototype, "id", void 0);
|
235
|
-
__decorate([
|
236
|
-
Xml.Attribute("name"),
|
237
|
-
__metadata("design:type", String)
|
238
|
-
], SendSchema.prototype, "name", void 0);
|
239
|
-
__decorate([
|
240
|
-
Xml.Element("Value", RealParameterSchema),
|
241
|
-
__metadata("design:type", RealParameterSchema)
|
242
|
-
], SendSchema.prototype, "value", void 0);
|
243
|
-
SendSchema = __decorate([
|
244
|
-
Xml.Class("Send")
|
245
|
-
], SendSchema);
|
246
|
-
export { SendSchema };
|
247
|
-
let PluginSchema = class PluginSchema {
|
248
|
-
id;
|
249
|
-
deviceID;
|
250
|
-
deviceName;
|
251
|
-
deviceRole;
|
252
|
-
loaded;
|
253
|
-
name;
|
254
|
-
parameters;
|
255
|
-
state;
|
256
|
-
enabled;
|
257
|
-
};
|
258
|
-
__decorate([
|
259
|
-
Xml.Attribute("id"),
|
260
|
-
__metadata("design:type", String)
|
261
|
-
], PluginSchema.prototype, "id", void 0);
|
262
|
-
__decorate([
|
263
|
-
Xml.Attribute("deviceID"),
|
264
|
-
__metadata("design:type", String)
|
265
|
-
], PluginSchema.prototype, "deviceID", void 0);
|
266
|
-
__decorate([
|
267
|
-
Xml.Attribute("deviceName"),
|
268
|
-
__metadata("design:type", String)
|
269
|
-
], PluginSchema.prototype, "deviceName", void 0);
|
270
|
-
__decorate([
|
271
|
-
Xml.Attribute("deviceRole"),
|
272
|
-
__metadata("design:type", String)
|
273
|
-
], PluginSchema.prototype, "deviceRole", void 0);
|
274
|
-
__decorate([
|
275
|
-
Xml.Attribute("loaded", Xml.BoolOptional),
|
276
|
-
__metadata("design:type", Boolean)
|
277
|
-
], PluginSchema.prototype, "loaded", void 0);
|
278
|
-
__decorate([
|
279
|
-
Xml.Attribute("name"),
|
280
|
-
__metadata("design:type", String)
|
281
|
-
], PluginSchema.prototype, "name", void 0);
|
282
|
-
__decorate([
|
283
|
-
Xml.Element("Parameters", ParameterSchema),
|
284
|
-
__metadata("design:type", Array)
|
285
|
-
], PluginSchema.prototype, "parameters", void 0);
|
286
|
-
__decorate([
|
287
|
-
Xml.Element("State", StateSchema),
|
288
|
-
__metadata("design:type", StateSchema)
|
289
|
-
], PluginSchema.prototype, "state", void 0);
|
290
|
-
__decorate([
|
291
|
-
Xml.Element("Enabled", BooleanParameterSchema),
|
292
|
-
__metadata("design:type", BooleanParameterSchema)
|
293
|
-
], PluginSchema.prototype, "enabled", void 0);
|
294
|
-
PluginSchema = __decorate([
|
295
|
-
Xml.Class("Plugin")
|
296
|
-
], PluginSchema);
|
297
|
-
export { PluginSchema };
|
298
|
-
let DevicesSchema = class DevicesSchema {
|
299
|
-
vst3plugin;
|
300
|
-
clapplugin;
|
301
|
-
auplugin;
|
302
|
-
};
|
303
|
-
__decorate([
|
304
|
-
Xml.Element("Vst3Plugin", PluginSchema),
|
305
|
-
__metadata("design:type", PluginSchema)
|
306
|
-
], DevicesSchema.prototype, "vst3plugin", void 0);
|
307
|
-
__decorate([
|
308
|
-
Xml.Element("ClapPlugin", PluginSchema),
|
309
|
-
__metadata("design:type", PluginSchema)
|
310
|
-
], DevicesSchema.prototype, "clapplugin", void 0);
|
311
|
-
__decorate([
|
312
|
-
Xml.Element("AuPlugin", PluginSchema),
|
313
|
-
__metadata("design:type", PluginSchema)
|
314
|
-
], DevicesSchema.prototype, "auplugin", void 0);
|
315
|
-
DevicesSchema = __decorate([
|
316
|
-
Xml.Class("Devices")
|
317
|
-
], DevicesSchema);
|
318
|
-
export { DevicesSchema };
|
319
|
-
let ChannelSchema = class ChannelSchema {
|
320
|
-
id;
|
321
|
-
role;
|
322
|
-
audioChannels;
|
323
241
|
destination;
|
324
|
-
|
325
|
-
devices;
|
242
|
+
type;
|
326
243
|
volume;
|
327
244
|
pan;
|
328
|
-
|
329
|
-
sends;
|
245
|
+
enable;
|
330
246
|
};
|
331
247
|
__decorate([
|
332
248
|
Xml.Attribute("id"),
|
333
249
|
__metadata("design:type", String)
|
334
|
-
],
|
335
|
-
__decorate([
|
336
|
-
Xml.Attribute("role"),
|
337
|
-
__metadata("design:type", String)
|
338
|
-
], ChannelSchema.prototype, "role", void 0);
|
339
|
-
__decorate([
|
340
|
-
Xml.Attribute("audioChannels", Xml.NumberOptional),
|
341
|
-
__metadata("design:type", Number)
|
342
|
-
], ChannelSchema.prototype, "audioChannels", void 0);
|
250
|
+
], SendSchema.prototype, "id", void 0);
|
343
251
|
__decorate([
|
344
252
|
Xml.Attribute("destination"),
|
345
253
|
__metadata("design:type", String)
|
346
|
-
],
|
347
|
-
__decorate([
|
348
|
-
Xml.Attribute("solo", Xml.BoolOptional),
|
349
|
-
__metadata("design:type", Boolean)
|
350
|
-
], ChannelSchema.prototype, "solo", void 0);
|
254
|
+
], SendSchema.prototype, "destination", void 0);
|
351
255
|
__decorate([
|
352
|
-
Xml.
|
353
|
-
__metadata("design:type",
|
354
|
-
],
|
256
|
+
Xml.Attribute("type"),
|
257
|
+
__metadata("design:type", String)
|
258
|
+
], SendSchema.prototype, "type", void 0);
|
355
259
|
__decorate([
|
356
260
|
Xml.Element("Volume", RealParameterSchema),
|
357
261
|
__metadata("design:type", RealParameterSchema)
|
358
|
-
],
|
262
|
+
], SendSchema.prototype, "volume", void 0);
|
359
263
|
__decorate([
|
360
264
|
Xml.Element("Pan", RealParameterSchema),
|
361
265
|
__metadata("design:type", RealParameterSchema)
|
362
|
-
],
|
266
|
+
], SendSchema.prototype, "pan", void 0);
|
363
267
|
__decorate([
|
364
|
-
Xml.Element("
|
268
|
+
Xml.Element("Enable", BooleanParameterSchema),
|
365
269
|
__metadata("design:type", BooleanParameterSchema)
|
366
|
-
],
|
367
|
-
__decorate([
|
368
|
-
Xml.
|
369
|
-
|
370
|
-
|
371
|
-
ChannelSchema = __decorate([
|
372
|
-
Xml.Class("Channel")
|
373
|
-
], ChannelSchema);
|
374
|
-
export { ChannelSchema };
|
270
|
+
], SendSchema.prototype, "enable", void 0);
|
271
|
+
SendSchema = __decorate([
|
272
|
+
Xml.Class("Send")
|
273
|
+
], SendSchema);
|
274
|
+
export { SendSchema };
|
375
275
|
let TransportSchema = class TransportSchema {
|
376
276
|
tempo;
|
377
277
|
timeSignature;
|
@@ -388,47 +288,6 @@ TransportSchema = __decorate([
|
|
388
288
|
Xml.Class("Transport")
|
389
289
|
], TransportSchema);
|
390
290
|
export { TransportSchema };
|
391
|
-
let TrackSchema = class TrackSchema {
|
392
|
-
id;
|
393
|
-
contentType;
|
394
|
-
name;
|
395
|
-
color;
|
396
|
-
loaded;
|
397
|
-
channel;
|
398
|
-
tracks;
|
399
|
-
};
|
400
|
-
__decorate([
|
401
|
-
Xml.Attribute("id"),
|
402
|
-
__metadata("design:type", String)
|
403
|
-
], TrackSchema.prototype, "id", void 0);
|
404
|
-
__decorate([
|
405
|
-
Xml.Attribute("contentType"),
|
406
|
-
__metadata("design:type", String)
|
407
|
-
], TrackSchema.prototype, "contentType", void 0);
|
408
|
-
__decorate([
|
409
|
-
Xml.Attribute("name"),
|
410
|
-
__metadata("design:type", String)
|
411
|
-
], TrackSchema.prototype, "name", void 0);
|
412
|
-
__decorate([
|
413
|
-
Xml.Attribute("color"),
|
414
|
-
__metadata("design:type", String)
|
415
|
-
], TrackSchema.prototype, "color", void 0);
|
416
|
-
__decorate([
|
417
|
-
Xml.Attribute("loaded", Xml.BoolOptional),
|
418
|
-
__metadata("design:type", Boolean)
|
419
|
-
], TrackSchema.prototype, "loaded", void 0);
|
420
|
-
__decorate([
|
421
|
-
Xml.Element("Channel", ChannelSchema),
|
422
|
-
__metadata("design:type", ChannelSchema)
|
423
|
-
], TrackSchema.prototype, "channel", void 0);
|
424
|
-
__decorate([
|
425
|
-
Xml.Element("Track", Array),
|
426
|
-
__metadata("design:type", Array)
|
427
|
-
], TrackSchema.prototype, "tracks", void 0);
|
428
|
-
TrackSchema = __decorate([
|
429
|
-
Xml.Class("Track")
|
430
|
-
], TrackSchema);
|
431
|
-
export { TrackSchema };
|
432
291
|
let LaneSchema = class LaneSchema {
|
433
292
|
id;
|
434
293
|
};
|
@@ -471,11 +330,11 @@ let NoteSchema = class NoteSchema {
|
|
471
330
|
};
|
472
331
|
__decorate([
|
473
332
|
Xml.Attribute("time", Xml.NumberRequired),
|
474
|
-
__metadata("design:type",
|
333
|
+
__metadata("design:type", Number)
|
475
334
|
], NoteSchema.prototype, "time", void 0);
|
476
335
|
__decorate([
|
477
336
|
Xml.Attribute("duration", Xml.NumberRequired),
|
478
|
-
__metadata("design:type",
|
337
|
+
__metadata("design:type", Number)
|
479
338
|
], NoteSchema.prototype, "duration", void 0);
|
480
339
|
__decorate([
|
481
340
|
Xml.Attribute("channel", Xml.NumberRequired),
|
@@ -487,11 +346,11 @@ __decorate([
|
|
487
346
|
], NoteSchema.prototype, "key", void 0);
|
488
347
|
__decorate([
|
489
348
|
Xml.Attribute("vel", Xml.NumberOptional),
|
490
|
-
__metadata("design:type",
|
349
|
+
__metadata("design:type", Number)
|
491
350
|
], NoteSchema.prototype, "vel", void 0);
|
492
351
|
__decorate([
|
493
352
|
Xml.Attribute("rel", Xml.NumberOptional),
|
494
|
-
__metadata("design:type",
|
353
|
+
__metadata("design:type", Number)
|
495
354
|
], NoteSchema.prototype, "rel", void 0);
|
496
355
|
NoteSchema = __decorate([
|
497
356
|
Xml.Class("Note")
|
@@ -523,6 +382,7 @@ let ClipSchema = class ClipSchema {
|
|
523
382
|
fadeInTime;
|
524
383
|
fadeOutTime;
|
525
384
|
enable;
|
385
|
+
content;
|
526
386
|
reference;
|
527
387
|
};
|
528
388
|
__decorate([
|
@@ -581,6 +441,10 @@ __decorate([
|
|
581
441
|
Xml.Attribute("enable", Xml.BoolOptional),
|
582
442
|
__metadata("design:type", Boolean)
|
583
443
|
], ClipSchema.prototype, "enable", void 0);
|
444
|
+
__decorate([
|
445
|
+
Xml.ElementRef(TimelineSchema),
|
446
|
+
__metadata("design:type", Array)
|
447
|
+
], ClipSchema.prototype, "content", void 0);
|
584
448
|
__decorate([
|
585
449
|
Xml.Attribute("reference"),
|
586
450
|
__metadata("design:type", String)
|
@@ -674,28 +538,12 @@ WarpSchema = __decorate([
|
|
674
538
|
Xml.Class("Warp")
|
675
539
|
], WarpSchema);
|
676
540
|
export { WarpSchema };
|
677
|
-
let WarpsSchema = class WarpsSchema extends TimelineSchema {
|
678
|
-
warps;
|
679
|
-
contentTimeUnit;
|
680
|
-
};
|
681
|
-
__decorate([
|
682
|
-
Xml.Element("Warp", Array),
|
683
|
-
__metadata("design:type", Array)
|
684
|
-
], WarpsSchema.prototype, "warps", void 0);
|
685
|
-
__decorate([
|
686
|
-
Xml.Attribute("contentTimeUnit"),
|
687
|
-
__metadata("design:type", String)
|
688
|
-
], WarpsSchema.prototype, "contentTimeUnit", void 0);
|
689
|
-
WarpsSchema = __decorate([
|
690
|
-
Xml.Class("Warps")
|
691
|
-
], WarpsSchema);
|
692
|
-
export { WarpsSchema };
|
693
541
|
let FileReferenceSchema = class FileReferenceSchema {
|
694
542
|
path;
|
695
543
|
external;
|
696
544
|
};
|
697
545
|
__decorate([
|
698
|
-
Xml.Attribute("path"),
|
546
|
+
Xml.Attribute("path", Xml.StringRequired),
|
699
547
|
__metadata("design:type", String)
|
700
548
|
], FileReferenceSchema.prototype, "path", void 0);
|
701
549
|
__decorate([
|
@@ -743,6 +591,27 @@ AudioSchema = __decorate([
|
|
743
591
|
Xml.Class("Audio")
|
744
592
|
], AudioSchema);
|
745
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 };
|
746
615
|
let VideoSchema = class VideoSchema extends MediaFileSchema {
|
747
616
|
algorithm;
|
748
617
|
channels;
|
@@ -792,7 +661,7 @@ __decorate([
|
|
792
661
|
__metadata("design:type", Number)
|
793
662
|
], AutomationTargetSchema.prototype, "controller", void 0);
|
794
663
|
AutomationTargetSchema = __decorate([
|
795
|
-
Xml.Class("
|
664
|
+
Xml.Class("Target")
|
796
665
|
], AutomationTargetSchema);
|
797
666
|
export { AutomationTargetSchema };
|
798
667
|
let PointSchema = class PointSchema {
|
@@ -816,6 +685,12 @@ PointSchema = __decorate([
|
|
816
685
|
Xml.Class("Point")
|
817
686
|
], PointSchema);
|
818
687
|
export { PointSchema };
|
688
|
+
let RealPointSchema = class RealPointSchema extends PointSchema {
|
689
|
+
};
|
690
|
+
RealPointSchema = __decorate([
|
691
|
+
Xml.Class("RealPoint")
|
692
|
+
], RealPointSchema);
|
693
|
+
export { RealPointSchema };
|
819
694
|
let PointsSchema = class PointsSchema extends TimelineSchema {
|
820
695
|
target;
|
821
696
|
points;
|
@@ -837,159 +712,282 @@ PointsSchema = __decorate([
|
|
837
712
|
Xml.Class("Points")
|
838
713
|
], PointsSchema);
|
839
714
|
export { PointsSchema };
|
840
|
-
let LanesSchema = class LanesSchema {
|
841
|
-
|
842
|
-
timelines;
|
843
|
-
subLanes;
|
844
|
-
notes;
|
845
|
-
clips;
|
846
|
-
clipSlots;
|
847
|
-
markerTracks;
|
848
|
-
warps;
|
849
|
-
audio;
|
850
|
-
video;
|
851
|
-
automation;
|
715
|
+
let LanesSchema = class LanesSchema extends TimelineSchema {
|
716
|
+
lanes;
|
852
717
|
};
|
853
718
|
__decorate([
|
854
|
-
Xml.
|
855
|
-
__metadata("design:type", String)
|
856
|
-
], LanesSchema.prototype, "id", void 0);
|
857
|
-
__decorate([
|
858
|
-
Xml.Element("Timeline", Array),
|
859
|
-
__metadata("design:type", Array)
|
860
|
-
], LanesSchema.prototype, "timelines", void 0);
|
861
|
-
__decorate([
|
862
|
-
Xml.Element("Lanes", Array),
|
863
|
-
__metadata("design:type", Array)
|
864
|
-
], LanesSchema.prototype, "subLanes", void 0);
|
865
|
-
__decorate([
|
866
|
-
Xml.Element("Notes", Array),
|
719
|
+
Xml.ElementRef(TimelineSchema),
|
867
720
|
__metadata("design:type", Array)
|
868
|
-
], LanesSchema.prototype, "
|
869
|
-
__decorate([
|
870
|
-
Xml.Element("Clips", Array),
|
871
|
-
__metadata("design:type", Array)
|
872
|
-
], LanesSchema.prototype, "clips", void 0);
|
873
|
-
__decorate([
|
874
|
-
Xml.Element("ClipSlot", Array),
|
875
|
-
__metadata("design:type", Array)
|
876
|
-
], LanesSchema.prototype, "clipSlots", void 0);
|
877
|
-
__decorate([
|
878
|
-
Xml.Element("markers", Array),
|
879
|
-
__metadata("design:type", Array)
|
880
|
-
], LanesSchema.prototype, "markerTracks", void 0);
|
881
|
-
__decorate([
|
882
|
-
Xml.Element("Warps", Array),
|
883
|
-
__metadata("design:type", Array)
|
884
|
-
], LanesSchema.prototype, "warps", void 0);
|
885
|
-
__decorate([
|
886
|
-
Xml.Element("Audio", Array),
|
887
|
-
__metadata("design:type", Array)
|
888
|
-
], LanesSchema.prototype, "audio", void 0);
|
889
|
-
__decorate([
|
890
|
-
Xml.Element("Video", Array),
|
891
|
-
__metadata("design:type", Array)
|
892
|
-
], LanesSchema.prototype, "video", void 0);
|
893
|
-
__decorate([
|
894
|
-
Xml.Element("Points", Array),
|
895
|
-
__metadata("design:type", Array)
|
896
|
-
], LanesSchema.prototype, "automation", void 0);
|
721
|
+
], LanesSchema.prototype, "lanes", void 0);
|
897
722
|
LanesSchema = __decorate([
|
898
723
|
Xml.Class("Lanes")
|
899
724
|
], LanesSchema);
|
900
725
|
export { LanesSchema };
|
901
726
|
let ArrangementSchema = class ArrangementSchema {
|
902
727
|
id;
|
903
|
-
lanes;
|
904
|
-
markers;
|
905
|
-
tempoAutomation;
|
906
728
|
timeSignatureAutomation;
|
729
|
+
tempoAutomation;
|
730
|
+
markers;
|
731
|
+
lanes;
|
907
732
|
};
|
908
733
|
__decorate([
|
909
734
|
Xml.Attribute("id"),
|
910
735
|
__metadata("design:type", String)
|
911
736
|
], ArrangementSchema.prototype, "id", void 0);
|
912
737
|
__decorate([
|
913
|
-
Xml.Element("
|
914
|
-
__metadata("design:type",
|
915
|
-
], ArrangementSchema.prototype, "
|
916
|
-
__decorate([
|
917
|
-
Xml.Element("Markers", Array),
|
918
|
-
__metadata("design:type", Array)
|
919
|
-
], ArrangementSchema.prototype, "markers", void 0);
|
738
|
+
Xml.Element("TimeSignatureAutomation", PointsSchema),
|
739
|
+
__metadata("design:type", PointsSchema)
|
740
|
+
], ArrangementSchema.prototype, "timeSignatureAutomation", void 0);
|
920
741
|
__decorate([
|
921
742
|
Xml.Element("TempoAutomation", PointsSchema),
|
922
743
|
__metadata("design:type", PointsSchema)
|
923
744
|
], ArrangementSchema.prototype, "tempoAutomation", void 0);
|
924
745
|
__decorate([
|
925
|
-
Xml.Element("
|
926
|
-
__metadata("design:type",
|
927
|
-
], ArrangementSchema.prototype, "
|
746
|
+
Xml.Element("Markers", MarkersSchema),
|
747
|
+
__metadata("design:type", MarkerSchema)
|
748
|
+
], ArrangementSchema.prototype, "markers", void 0);
|
749
|
+
__decorate([
|
750
|
+
Xml.Element("Lanes", LanesSchema),
|
751
|
+
__metadata("design:type", LanesSchema)
|
752
|
+
], ArrangementSchema.prototype, "lanes", void 0);
|
928
753
|
ArrangementSchema = __decorate([
|
929
754
|
Xml.Class("Arrangement")
|
930
755
|
], ArrangementSchema);
|
931
756
|
export { ArrangementSchema };
|
932
757
|
let SceneSchema = class SceneSchema {
|
933
758
|
id;
|
934
|
-
|
935
|
-
lanes;
|
936
|
-
notes;
|
937
|
-
clips;
|
938
|
-
clipSlot;
|
939
|
-
markers;
|
940
|
-
warps;
|
941
|
-
audio;
|
942
|
-
video;
|
943
|
-
points;
|
759
|
+
content;
|
944
760
|
};
|
945
761
|
__decorate([
|
946
762
|
Xml.Attribute("id"),
|
947
763
|
__metadata("design:type", String)
|
948
764
|
], SceneSchema.prototype, "id", void 0);
|
949
765
|
__decorate([
|
950
|
-
Xml.
|
951
|
-
__metadata("design:type",
|
952
|
-
], SceneSchema.prototype, "
|
766
|
+
Xml.ElementRef(TimelineSchema),
|
767
|
+
__metadata("design:type", Array)
|
768
|
+
], SceneSchema.prototype, "content", void 0);
|
769
|
+
SceneSchema = __decorate([
|
770
|
+
Xml.Class("Scene")
|
771
|
+
], SceneSchema);
|
772
|
+
export { SceneSchema };
|
773
|
+
let DeviceSchema = class DeviceSchema {
|
774
|
+
id;
|
775
|
+
enabled;
|
776
|
+
deviceRole;
|
777
|
+
loaded;
|
778
|
+
deviceName;
|
779
|
+
deviceID;
|
780
|
+
deviceVendor;
|
781
|
+
state;
|
782
|
+
name;
|
783
|
+
automatedParameters;
|
784
|
+
};
|
785
|
+
__decorate([
|
786
|
+
Xml.Attribute("id"),
|
787
|
+
__metadata("design:type", String)
|
788
|
+
], DeviceSchema.prototype, "id", void 0);
|
953
789
|
__decorate([
|
954
|
-
Xml.Element("
|
955
|
-
__metadata("design:type",
|
956
|
-
],
|
790
|
+
Xml.Element("Enabled", BooleanParameterSchema),
|
791
|
+
__metadata("design:type", BooleanParameterSchema)
|
792
|
+
], DeviceSchema.prototype, "enabled", void 0);
|
957
793
|
__decorate([
|
958
|
-
Xml.
|
959
|
-
__metadata("design:type",
|
960
|
-
],
|
794
|
+
Xml.Attribute("deviceRole", Xml.StringRequired),
|
795
|
+
__metadata("design:type", String)
|
796
|
+
], DeviceSchema.prototype, "deviceRole", void 0);
|
961
797
|
__decorate([
|
962
|
-
Xml.
|
963
|
-
__metadata("design:type",
|
964
|
-
],
|
798
|
+
Xml.Attribute("loaded", Xml.BoolOptional),
|
799
|
+
__metadata("design:type", Boolean)
|
800
|
+
], DeviceSchema.prototype, "loaded", void 0);
|
965
801
|
__decorate([
|
966
|
-
Xml.
|
967
|
-
__metadata("design:type",
|
968
|
-
],
|
802
|
+
Xml.Attribute("deviceName"),
|
803
|
+
__metadata("design:type", String)
|
804
|
+
], DeviceSchema.prototype, "deviceName", void 0);
|
969
805
|
__decorate([
|
970
|
-
Xml.
|
971
|
-
__metadata("design:type",
|
972
|
-
],
|
806
|
+
Xml.Attribute("deviceID"),
|
807
|
+
__metadata("design:type", String)
|
808
|
+
], DeviceSchema.prototype, "deviceID", void 0);
|
973
809
|
__decorate([
|
974
|
-
Xml.
|
975
|
-
__metadata("design:type",
|
976
|
-
],
|
810
|
+
Xml.Attribute("deviceVendor"),
|
811
|
+
__metadata("design:type", String)
|
812
|
+
], DeviceSchema.prototype, "deviceVendor", void 0);
|
977
813
|
__decorate([
|
978
|
-
Xml.Element("
|
979
|
-
__metadata("design:type",
|
980
|
-
],
|
814
|
+
Xml.Element("State", FileReferenceSchema),
|
815
|
+
__metadata("design:type", FileReferenceSchema)
|
816
|
+
], DeviceSchema.prototype, "state", void 0);
|
981
817
|
__decorate([
|
982
|
-
Xml.
|
983
|
-
__metadata("design:type",
|
984
|
-
],
|
818
|
+
Xml.Attribute("name"),
|
819
|
+
__metadata("design:type", String)
|
820
|
+
], DeviceSchema.prototype, "name", void 0);
|
985
821
|
__decorate([
|
986
|
-
Xml.
|
987
|
-
__metadata("design:type",
|
988
|
-
],
|
989
|
-
|
990
|
-
Xml.Class("
|
991
|
-
],
|
992
|
-
export {
|
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 };
|
993
991
|
let ProjectSchema = class ProjectSchema {
|
994
992
|
version;
|
995
993
|
application;
|
@@ -1011,7 +1009,7 @@ __decorate([
|
|
1011
1009
|
__metadata("design:type", TransportSchema)
|
1012
1010
|
], ProjectSchema.prototype, "transport", void 0);
|
1013
1011
|
__decorate([
|
1014
|
-
Xml.
|
1012
|
+
Xml.ElementRef(LaneSchema, "Structure"),
|
1015
1013
|
__metadata("design:type", Array)
|
1016
1014
|
], ProjectSchema.prototype, "structure", void 0);
|
1017
1015
|
__decorate([
|
@@ -1019,7 +1017,7 @@ __decorate([
|
|
1019
1017
|
__metadata("design:type", ArrangementSchema)
|
1020
1018
|
], ProjectSchema.prototype, "arrangement", void 0);
|
1021
1019
|
__decorate([
|
1022
|
-
Xml.
|
1020
|
+
Xml.ElementRef(SceneSchema, "Scenes"),
|
1023
1021
|
__metadata("design:type", Array)
|
1024
1022
|
], ProjectSchema.prototype, "scenes", void 0);
|
1025
1023
|
ProjectSchema = __decorate([
|
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
|
-
"@opendaw/eslint-config": "^0.0.
|
29
|
-
"@opendaw/typescript-config": "^0.0.
|
30
|
+
"@opendaw/eslint-config": "^0.0.18",
|
31
|
+
"@opendaw/typescript-config": "^0.0.19",
|
30
32
|
"jsdom": "^26.1.0"
|
31
33
|
},
|
32
|
-
"gitHead": "
|
34
|
+
"gitHead": "8d9e873aad633820cd26f76dc447674728401495"
|
33
35
|
}
|