@opendaw/studio-adapters 0.0.35 → 0.0.36

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.
Files changed (38) hide show
  1. package/dist/AutomatableParameterFieldAdapter.js +1 -1
  2. package/dist/BoxAdapterCollection.js +1 -1
  3. package/dist/IndexedBoxAdapterCollection.js +1 -1
  4. package/dist/audio-unit/AudioUnitInput.js +1 -1
  5. package/dist/devices/instruments/SoundfontDeviceBoxAdapter.d.ts.map +1 -1
  6. package/dist/devices/instruments/SoundfontDeviceBoxAdapter.js +12 -7
  7. package/dist/modular/modular.js +2 -2
  8. package/dist/project/ProjectDecoder.js +13 -13
  9. package/dist/sample/Sample.d.ts +14 -5
  10. package/dist/sample/Sample.d.ts.map +1 -1
  11. package/dist/sample/Sample.js +6 -1
  12. package/dist/sample/SampleMetaData.d.ts +13 -7
  13. package/dist/sample/SampleMetaData.d.ts.map +1 -1
  14. package/dist/sample/SampleMetaData.js +8 -1
  15. package/dist/selection/VertexSelection.js +1 -1
  16. package/dist/soundfont/Soundfont.d.ts +13 -5
  17. package/dist/soundfont/Soundfont.d.ts.map +1 -1
  18. package/dist/soundfont/Soundfont.js +6 -1
  19. package/dist/soundfont/SoundfontLoader.d.ts +1 -0
  20. package/dist/soundfont/SoundfontLoader.d.ts.map +1 -1
  21. package/dist/soundfont/SoundfontLoaderManager.d.ts +1 -0
  22. package/dist/soundfont/SoundfontLoaderManager.d.ts.map +1 -1
  23. package/dist/soundfont/SoundfontMetaData.d.ts +12 -6
  24. package/dist/soundfont/SoundfontMetaData.d.ts.map +1 -1
  25. package/dist/soundfont/SoundfontMetaData.js +8 -1
  26. package/dist/timeline/MarkerTrackAdapter.js +1 -1
  27. package/dist/timeline/TrackRegions.js +1 -1
  28. package/dist/timeline/clip/AudioClipBoxAdapter.js +1 -1
  29. package/dist/timeline/clip/NoteClipBoxAdapter.js +1 -1
  30. package/dist/timeline/clip/ValueClipBoxAdapter.js +1 -1
  31. package/dist/timeline/collection/NoteEventCollectionBoxAdapter.js +2 -2
  32. package/dist/timeline/collection/ValueEventCollectionBoxAdapter.js +2 -2
  33. package/dist/timeline/event/ValueEventBoxAdapter.js +1 -1
  34. package/dist/timeline/region/AudioRegionBoxAdapter.d.ts.map +1 -1
  35. package/dist/timeline/region/AudioRegionBoxAdapter.js +1 -1
  36. package/dist/timeline/region/NoteRegionBoxAdapter.js +1 -1
  37. package/dist/timeline/region/ValueRegionBoxAdapter.js +1 -1
  38. package/package.json +8 -8
@@ -32,7 +32,7 @@ export class AutomatableParameterFieldAdapter {
32
32
  this.#valueChangeNotifier = this.#terminator.own(new Notifier());
33
33
  this.#controlSource = new Listeners();
34
34
  this.#terminator.own(this.#field.subscribe(() => this.#valueChangeNotifier.notify(this)));
35
- this.#terminator.own(this.#field.pointerHub.catchupAndSubscribeTransactual({
35
+ this.#terminator.own(this.#field.pointerHub.catchupAndSubscribe({
36
36
  onAdd: (pointer) => {
37
37
  this.#controlSource.proxy.onControlSourceAdd(mapPointerToControlSource(pointer.pointerType));
38
38
  pointer.box.accept({
@@ -6,7 +6,7 @@ export class BoxAdapterCollection {
6
6
  constructor(pointerHub, provider, pointers) {
7
7
  this.#entries = UUID.newSet(adapter => adapter.uuid);
8
8
  this.#listeners = new Listeners();
9
- this.#subscription = pointerHub.catchupAndSubscribeTransactual({
9
+ this.#subscription = pointerHub.catchupAndSubscribe({
10
10
  onAdd: (pointer) => {
11
11
  const adapter = provider(pointer.box);
12
12
  const added = this.#entries.add(adapter);
@@ -13,7 +13,7 @@ export class IndexedBoxAdapterCollection {
13
13
  this.#field = field;
14
14
  this.#entries = UUID.newSet(entry => entry.adapter.uuid);
15
15
  this.#listeners = new Listeners();
16
- this.#subscription = field.pointerHub.catchupAndSubscribeTransactual({
16
+ this.#subscription = field.pointerHub.catchupAndSubscribe({
17
17
  onAdd: (pointer) => {
18
18
  this.#sorted = null;
19
19
  const adapter = provider(pointer.box);
@@ -25,7 +25,7 @@ export class AudioUnitInput {
25
25
  some: ({ labelField, iconField }) => Terminable.many(iconField.catchupAndSubscribe(field => this.#iconValue.setValue(IconSymbol.fromName(field.getValue()))), labelField.catchupAndSubscribe(field => this.#labelNotifier.notify(Option.wrap(field.getValue()))))
26
26
  });
27
27
  }));
28
- this.#terminator.own(pointerHub.catchupAndSubscribeTransactual({
28
+ this.#terminator.own(pointerHub.catchupAndSubscribe({
29
29
  onAdd: ({ box }) => {
30
30
  assert(this.#observable.getValue().isEmpty(), "Already set");
31
31
  // FIXME: Invalid 'instanceof' check: 'box' has type that is not related to 'AudioBusBox'? (Webstorm)
@@ -1 +1 @@
1
- {"version":3,"file":"SoundfontDeviceBoxAdapter.d.ts","sourceRoot":"","sources":["../../../src/devices/instruments/SoundfontDeviceBoxAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAA2B,gBAAgB,EAAsB,IAAI,EAAC,MAAM,kBAAkB,CAAA;AACzG,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAA;AAC9E,OAAO,EAAC,UAAU,EAAW,0BAA0B,EAAC,MAAM,qBAAqB,CAAA;AACnF,OAAO,EAAC,kBAAkB,EAAC,MAAM,0BAA0B,CAAA;AAE3D,OAAO,EAAC,SAAS,EAAC,MAAM,0BAA0B,CAAA;AAClD,OAAO,EAAC,gCAAgC,EAAC,MAAM,wCAAwC,CAAA;AACvF,OAAO,EAAC,mBAAmB,EAAC,MAAM,sCAAsC,CAAA;AACxE,OAAO,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAA;AAC/D,OAAO,KAAK,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,YAAY,CAAA;AAElD,qBAAa,yBAA0B,YAAW,0BAA0B;;IACxE,QAAQ,CAAC,IAAI,gBAAe;IAC5B,QAAQ,CAAC,OAAO,UAAS;IAQzB,QAAQ,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ib-std";
1
+ import { MutableObservableOption, Terminable, Terminator } from "@opendaw/lib-std";
2
2
  import { Devices } from "../../DeviceAdapter";
3
3
  import { ParameterAdapterSet } from "../../ParameterAdapterSet";
4
4
  import { TrackType } from "../../timeline/TrackType";
@@ -13,6 +13,7 @@ export class SoundfontDeviceBoxAdapter {
13
13
  #loader;
14
14
  #soundfont;
15
15
  #preset;
16
+ #loaderSubscription = Terminable.Empty;
16
17
  constructor(context, box) {
17
18
  this.#context = context;
18
19
  this.#box = box;
@@ -44,8 +45,14 @@ export class SoundfontDeviceBoxAdapter {
44
45
  .adapterFor(this.#box.host.targetVertex.unwrap("no device-host").box, Devices.isHost);
45
46
  }
46
47
  audioUnitBoxAdapter() { return this.deviceHost().audioUnitBoxAdapter(); }
47
- parameterAt(fieldIndices) { return this.#parametric.parameterAt(fieldIndices); }
48
- terminate() { this.#parametric.terminate(); }
48
+ parameterAt(fieldIndices) {
49
+ return this.#parametric.parameterAt(fieldIndices);
50
+ }
51
+ terminate() {
52
+ this.#loaderSubscription.terminate();
53
+ this.#loaderSubscription = Terminable.Empty;
54
+ this.#parametric.terminate();
55
+ }
49
56
  #wrapParameters(_box) {
50
57
  return {};
51
58
  }
@@ -58,20 +65,18 @@ export class SoundfontDeviceBoxAdapter {
58
65
  none: () => {
59
66
  this.#preset.clear();
60
67
  this.#soundfont.clear();
61
- const subscription = loader.subscribe(state => {
68
+ this.#loaderSubscription.terminate();
69
+ this.#loaderSubscription = loader.subscribe(state => {
62
70
  if (state.type === "loaded") {
63
- subscription.terminate();
64
71
  const soundfont = loader.soundfont.unwrap();
65
72
  this.#preset.wrap(soundfont.presets[this.presetIndex] ?? soundfont.presets[0]);
66
73
  this.#soundfont.wrap(soundfont);
67
74
  }
68
75
  else if (state.type === "error") {
69
- subscription.terminate();
70
76
  this.#preset.clear();
71
77
  this.#soundfont.clear();
72
78
  }
73
79
  else if (state.type === "idle") {
74
- subscription.terminate();
75
80
  this.#preset.clear();
76
81
  this.#soundfont.clear();
77
82
  }
@@ -41,9 +41,9 @@ export class ModularAdapter {
41
41
  this.#box.modules.pointerHub.filter(Pointers.ModuleCollection).forEach(addModule);
42
42
  this.#box.connections.pointerHub.filter(Pointers.ConnectionCollection).forEach(addConnection);
43
43
  this.#terminator.own(this.#box.modules.pointerHub
44
- .subscribeTransactual({ onAdd: addModule, onRemove: removeModule }, Pointers.ModuleCollection));
44
+ .subscribe({ onAdd: addModule, onRemove: removeModule }, Pointers.ModuleCollection));
45
45
  this.#terminator.own(this.#box.connections.pointerHub
46
- .subscribeTransactual({ onAdd: addConnection, onRemove: removeConnection }, Pointers.ConnectionCollection));
46
+ .subscribe({ onAdd: addConnection, onRemove: removeConnection }, Pointers.ConnectionCollection));
47
47
  }
48
48
  catchupAndSubscribe(listener) {
49
49
  ifDefined(listener.onModuleAdded, fn => this.#modules.forEach(adapter => fn(adapter)));
@@ -1,6 +1,6 @@
1
1
  import { BoxGraph } from "@opendaw/lib-box";
2
2
  import { AudioUnitBox, BoxIO, RootBox } from "@opendaw/studio-boxes";
3
- import { assert, ByteArrayInput, isInstanceOf, Option, UUID } from "@opendaw/lib-std";
3
+ import { assert, ByteArrayInput, isInstanceOf, isNotUndefined, Option, UUID } from "@opendaw/lib-std";
4
4
  import { AudioUnitType } from "@opendaw/studio-enums";
5
5
  export var ProjectDecoder;
6
6
  (function (ProjectDecoder) {
@@ -18,36 +18,36 @@ export var ProjectDecoder;
18
18
  return { boxGraph, mandatoryBoxes: readMandatoryBoxes(boxGraph, input) };
19
19
  };
20
20
  ProjectDecoder.findMandatoryBoxes = (boxGraph) => {
21
- const boxes = {};
21
+ const required = {};
22
22
  for (const box of boxGraph.boxes()) {
23
23
  box.accept({
24
- visitRootBox: (box) => boxes.rootBox = box,
25
- visitTimelineBox: (box) => boxes.timelineBox = box,
24
+ visitRootBox: (box) => required.rootBox = box,
25
+ visitTimelineBox: (box) => required.timelineBox = box,
26
26
  visitUserInterfaceBox: (box) => {
27
27
  const root = box.root.targetVertex.unwrapOrNull()?.box;
28
28
  if (isInstanceOf(root, RootBox)) {
29
- boxes.userInterfaceBox = box;
29
+ required.userInterfaceBox = box;
30
30
  }
31
31
  },
32
32
  visitAudioUnitBox: (box) => {
33
33
  if (box.type.getValue() === AudioUnitType.Output) {
34
- boxes.masterAudioUnit = box;
34
+ required.masterAudioUnit = box;
35
35
  }
36
36
  },
37
37
  visitAudioBusBox: (box) => {
38
38
  const output = box.output.targetVertex.unwrapOrNull()?.box;
39
39
  if (isInstanceOf(output, AudioUnitBox) && output.type.getValue() === AudioUnitType.Output) {
40
- boxes.masterBusBox = box;
40
+ required.masterBusBox = box;
41
41
  }
42
42
  }
43
43
  });
44
44
  }
45
- assert(boxes.rootBox !== undefined, "RootBox not found");
46
- assert(boxes.timelineBox !== undefined, "TimelineBox not found");
47
- assert(boxes.userInterfaceBox !== undefined, "UserInterfaceBox not found");
48
- assert(boxes.masterAudioUnit !== undefined, "MasterAudioUnit not found");
49
- assert(boxes.masterBusBox !== undefined, "MasterBusBox not found");
50
- return boxes;
45
+ assert(isNotUndefined(required.rootBox), "RootBox not found");
46
+ assert(isNotUndefined(required.timelineBox), "TimelineBox not found");
47
+ assert(isNotUndefined(required.userInterfaceBox), "UserInterfaceBox not found");
48
+ assert(isNotUndefined(required.masterAudioUnit), "MasterAudioUnit not found");
49
+ assert(isNotUndefined(required.masterBusBox), "MasterBusBox not found");
50
+ return required;
51
51
  };
52
52
  const readMandatoryBoxes = (boxGraph, input) => {
53
53
  const rootBox = boxGraph.findBox(UUID.fromDataInput(input)).unwrap("RootBox not found");
@@ -1,6 +1,15 @@
1
- import { SampleMetaData } from "./SampleMetaData";
2
- import { UUID } from "@opendaw/lib-std";
3
- export type Sample = {
4
- uuid: UUID.String;
5
- } & SampleMetaData;
1
+ import { z } from "zod";
2
+ export declare const Sample: z.ZodObject<{
3
+ name: z.ZodString;
4
+ bpm: z.ZodNumber;
5
+ duration: z.ZodNumber;
6
+ sample_rate: z.ZodNumber;
7
+ origin: z.ZodEnum<{
8
+ openDAW: "openDAW";
9
+ recording: "recording";
10
+ import: "import";
11
+ }>;
12
+ uuid: z.ZodPipe<z.ZodString, z.ZodTransform<`${string}-${string}-${string}-${string}-${string}`, string>>;
13
+ }, z.core.$strip>;
14
+ export type Sample = z.infer<typeof Sample>;
6
15
  //# sourceMappingURL=Sample.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Sample.d.ts","sourceRoot":"","sources":["../../src/sample/Sample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAA;AAErC,MAAM,MAAM,MAAM,GAAG;IAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAA;CAAE,GAAG,cAAc,CAAA"}
1
+ {"version":3,"file":"Sample.d.ts","sourceRoot":"","sources":["../../src/sample/Sample.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,MAAM;;;;;;;;;;;iBAEjB,CAAA;AAEF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAA"}
@@ -1 +1,6 @@
1
- export {};
1
+ import { UUID } from "@opendaw/lib-std";
2
+ import { SampleMetaData } from "./SampleMetaData";
3
+ import { z } from "zod";
4
+ export const Sample = SampleMetaData.extend({
5
+ uuid: UUID.zType(z)
6
+ });
@@ -1,8 +1,14 @@
1
- export type SampleMetaData = {
2
- name: string;
3
- bpm: number;
4
- duration: number;
5
- sample_rate: number;
6
- origin: "openDAW" | "recording" | "import";
7
- };
1
+ import { z } from "zod";
2
+ export declare const SampleMetaData: z.ZodObject<{
3
+ name: z.ZodString;
4
+ bpm: z.ZodNumber;
5
+ duration: z.ZodNumber;
6
+ sample_rate: z.ZodNumber;
7
+ origin: z.ZodEnum<{
8
+ openDAW: "openDAW";
9
+ recording: "recording";
10
+ import: "import";
11
+ }>;
12
+ }, z.core.$strip>;
13
+ export type SampleMetaData = z.infer<typeof SampleMetaData>;
8
14
  //# sourceMappingURL=SampleMetaData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SampleMetaData.d.ts","sourceRoot":"","sources":["../../src/sample/SampleMetaData.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAA;CAC7C,CAAA"}
1
+ {"version":3,"file":"SampleMetaData.d.ts","sourceRoot":"","sources":["../../src/sample/SampleMetaData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,cAAc;;;;;;;;;;iBAMzB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA"}
@@ -1 +1,8 @@
1
- export {};
1
+ import { z } from "zod";
2
+ export const SampleMetaData = z.object({
3
+ name: z.string(),
4
+ bpm: z.number(),
5
+ duration: z.number(),
6
+ sample_rate: z.number(),
7
+ origin: z.enum(["openDAW", "recording", "import"])
8
+ });
@@ -96,7 +96,7 @@ export class VertexSelection {
96
96
  return this.#listeners.subscribe(listener);
97
97
  }
98
98
  #watch(target) {
99
- return target.pointerHub.catchupAndSubscribeTransactual({
99
+ return target.pointerHub.catchupAndSubscribe({
100
100
  onAdd: (pointer) => {
101
101
  const box = asInstanceOf(pointer.box, SelectionBox);
102
102
  assert(box.isAttached(), "SelectionBox is not attached");
@@ -1,6 +1,14 @@
1
- import { UUID } from "@opendaw/lib-std";
2
- import { SoundfontMetaData } from "./SoundfontMetaData";
3
- export type Soundfont = {
4
- uuid: UUID.String;
5
- } & SoundfontMetaData;
1
+ import { z } from "zod";
2
+ export declare const Soundfont: z.ZodObject<{
3
+ name: z.ZodString;
4
+ size: z.ZodNumber;
5
+ url: z.ZodString;
6
+ license: z.ZodString;
7
+ origin: z.ZodEnum<{
8
+ openDAW: "openDAW";
9
+ import: "import";
10
+ }>;
11
+ uuid: z.ZodPipe<z.ZodString, z.ZodTransform<`${string}-${string}-${string}-${string}-${string}`, string>>;
12
+ }, z.core.$strip>;
13
+ export type Soundfont = z.infer<typeof Soundfont>;
6
14
  //# sourceMappingURL=Soundfont.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Soundfont.d.ts","sourceRoot":"","sources":["../../src/soundfont/Soundfont.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAA;AACrC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAA;AAErD,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAA;CAAE,GAAG,iBAAiB,CAAA"}
1
+ {"version":3,"file":"Soundfont.d.ts","sourceRoot":"","sources":["../../src/soundfont/Soundfont.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,SAAS;;;;;;;;;;iBAEpB,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA"}
@@ -1 +1,6 @@
1
- export {};
1
+ import { UUID } from "@opendaw/lib-std";
2
+ import { SoundfontMetaData } from "./SoundfontMetaData";
3
+ import { z } from "zod";
4
+ export const Soundfont = SoundfontMetaData.extend({
5
+ uuid: UUID.zType(z)
6
+ });
@@ -6,5 +6,6 @@ export interface SoundfontLoader {
6
6
  get uuid(): UUID.Bytes;
7
7
  get state(): SoundfontLoaderState;
8
8
  subscribe(observer: Observer<SoundfontLoaderState>): Subscription;
9
+ invalidate(): void;
9
10
  }
10
11
  //# sourceMappingURL=SoundfontLoader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SoundfontLoader.d.ts","sourceRoot":"","sources":["../../src/soundfont/SoundfontLoader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAC,MAAM,kBAAkB,CAAA;AACrE,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,YAAY,CAAA;AAC1C,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAA;AAE3D,MAAM,WAAW,eAAe;IAC5B,IAAI,SAAS,IAAI,MAAM,CAAC,UAAU,CAAC,CAAA;IACnC,IAAI,IAAI,IAAI,IAAI,CAAC,KAAK,CAAA;IACtB,IAAI,KAAK,IAAI,oBAAoB,CAAA;IACjC,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GAAG,YAAY,CAAA;CACpE"}
1
+ {"version":3,"file":"SoundfontLoader.d.ts","sourceRoot":"","sources":["../../src/soundfont/SoundfontLoader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAC,MAAM,kBAAkB,CAAA;AACrE,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,YAAY,CAAA;AAC1C,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAA;AAE3D,MAAM,WAAW,eAAe;IAC5B,IAAI,SAAS,IAAI,MAAM,CAAC,UAAU,CAAC,CAAA;IACnC,IAAI,IAAI,IAAI,IAAI,CAAC,KAAK,CAAA;IACtB,IAAI,KAAK,IAAI,oBAAoB,CAAA;IACjC,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GAAG,YAAY,CAAA;IACjE,UAAU,IAAI,IAAI,CAAA;CACrB"}
@@ -3,5 +3,6 @@ import { SoundfontLoader } from "./SoundfontLoader";
3
3
  export interface SoundfontLoaderManager {
4
4
  getOrCreate(uuid: UUID.Bytes): SoundfontLoader;
5
5
  remove(uuid: UUID.Bytes): void;
6
+ invalidate(uuid: UUID.Bytes): void;
6
7
  }
7
8
  //# sourceMappingURL=SoundfontLoaderManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SoundfontLoaderManager.d.ts","sourceRoot":"","sources":["../../src/soundfont/SoundfontLoaderManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAA;AACrC,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAA;AAEjD,MAAM,WAAW,sBAAsB;IACnC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,eAAe,CAAA;IAC9C,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;CACjC"}
1
+ {"version":3,"file":"SoundfontLoaderManager.d.ts","sourceRoot":"","sources":["../../src/soundfont/SoundfontLoaderManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAA;AACrC,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAA;AAEjD,MAAM,WAAW,sBAAsB;IACnC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,eAAe,CAAA;IAC9C,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;IAC9B,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;CACrC"}
@@ -1,7 +1,13 @@
1
- export interface SoundfontMetaData {
2
- name: string;
3
- url: string;
4
- license: string;
5
- origin: "openDAW" | "import";
6
- }
1
+ import { z } from "zod";
2
+ export declare const SoundfontMetaData: z.ZodObject<{
3
+ name: z.ZodString;
4
+ size: z.ZodNumber;
5
+ url: z.ZodString;
6
+ license: z.ZodString;
7
+ origin: z.ZodEnum<{
8
+ openDAW: "openDAW";
9
+ import: "import";
10
+ }>;
11
+ }, z.core.$strip>;
12
+ export type SoundfontMetaData = z.infer<typeof SoundfontMetaData>;
7
13
  //# sourceMappingURL=SoundfontMetaData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SoundfontMetaData.d.ts","sourceRoot":"","sources":["../../src/soundfont/SoundfontMetaData.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;CAC/B"}
1
+ {"version":3,"file":"SoundfontMetaData.d.ts","sourceRoot":"","sources":["../../src/soundfont/SoundfontMetaData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,iBAAiB;;;;;;;;;iBAM5B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
@@ -1 +1,8 @@
1
- export {};
1
+ import { z } from "zod";
2
+ export const SoundfontMetaData = z.object({
3
+ name: z.string(),
4
+ size: z.number().int(),
5
+ url: z.string(),
6
+ license: z.string(),
7
+ origin: z.enum(["openDAW", "import"])
8
+ });
@@ -15,7 +15,7 @@ export class MarkerTrackAdapter {
15
15
  this.changeNotifier = new Notifier();
16
16
  this.#adapters = UUID.newSet(adapter => adapter.uuid);
17
17
  this.#events = EventCollection.create(MarkerBoxAdapter.Comparator);
18
- this.#subscription = this.#object.markers.pointerHub.catchupAndSubscribeTransactual({
18
+ this.#subscription = this.#object.markers.pointerHub.catchupAndSubscribe({
19
19
  onAdd: ({ box }) => {
20
20
  if (box instanceof MarkerBox) {
21
21
  const adapter = this.#context.boxAdapters.adapterFor(box, MarkerBoxAdapter);
@@ -14,7 +14,7 @@ export class TrackRegions {
14
14
  this.#changeNotifier = this.#terminator.own(new Notifier());
15
15
  this.#collection = RegionCollection.create(RegionComparator);
16
16
  this.#adapters = UUID.newSet(adapter => adapter.uuid);
17
- this.#terminator.ownAll(this.#trackBoxAdapter.box.regions.pointerHub.catchupAndSubscribeTransactual({
17
+ this.#terminator.ownAll(this.#trackBoxAdapter.box.regions.pointerHub.catchupAndSubscribe({
18
18
  onAdd: ({ box }) => {
19
19
  const adapter = RegionAdapters.for(boxAdapters, box);
20
20
  const added = this.#adapters.add(adapter);
@@ -20,7 +20,7 @@ export class AudioClipBoxAdapter {
20
20
  this.#isConstructing = true;
21
21
  this.#selectedValue = this.#terminator.own(new DefaultObservableValue(false));
22
22
  this.#changeNotifier = this.#terminator.own(new Notifier());
23
- this.#terminator.ownAll(this.#box.pointerHub.subscribeImmediate({
23
+ this.#terminator.ownAll(this.#box.pointerHub.subscribe({
24
24
  onAdd: () => this.#dispatchChange(),
25
25
  onRemove: () => this.#dispatchChange()
26
26
  }), this.#box.file.catchupAndSubscribe((pointerField) => {
@@ -19,7 +19,7 @@ export class NoteClipBoxAdapter {
19
19
  this.#isConstructing = true;
20
20
  this.#selectedValue = this.#terminator.own(new DefaultObservableValue(false));
21
21
  this.#changeNotifier = this.#terminator.own(new Notifier());
22
- this.#terminator.ownAll(this.#box.pointerHub.subscribeImmediate({
22
+ this.#terminator.ownAll(this.#box.pointerHub.subscribe({
23
23
  onAdd: () => this.#dispatchChange(),
24
24
  onRemove: () => this.#dispatchChange()
25
25
  }), this.#box.subscribe(Propagation.Children, (_update) => this.#dispatchChange()), this.#box.events.catchupAndSubscribe(({ targetVertex }) => {
@@ -19,7 +19,7 @@ export class ValueClipBoxAdapter {
19
19
  this.#isConstructing = true;
20
20
  this.#selectedValue = this.#terminator.own(new DefaultObservableValue(false));
21
21
  this.#changeNotifier = this.#terminator.own(new Notifier());
22
- this.#terminator.own(this.#box.pointerHub.subscribeImmediate({
22
+ this.#terminator.own(this.#box.pointerHub.subscribe({
23
23
  onAdd: () => this.#dispatchChange(),
24
24
  onRemove: () => this.#dispatchChange()
25
25
  }));
@@ -30,14 +30,14 @@ export class NoteEventCollectionBoxAdapter {
30
30
  }
31
31
  };
32
32
  this.#box.events.pointerHub.incoming().forEach(({ box }) => addNoteProcedure(box));
33
- this.#terminator.own(this.#box.events.pointerHub.subscribeTransactual({
33
+ this.#terminator.own(this.#box.events.pointerHub.subscribe({
34
34
  onAdd: ({ box }) => addNoteProcedure(box),
35
35
  onRemove: ({ box: { address: { uuid } } }) => {
36
36
  this.#events.remove(this.#adapters.removeByKey(uuid));
37
37
  this.#onEventsChanged();
38
38
  }
39
39
  }));
40
- this.#terminator.own(this.#box.owners.pointerHub.subscribeTransactual({
40
+ this.#terminator.own(this.#box.owners.pointerHub.subscribe({
41
41
  onAdd: () => this.#changeNotifier.notify(this),
42
42
  onRemove: () => this.#changeNotifier.notify(this)
43
43
  }));
@@ -27,14 +27,14 @@ export class ValueEventCollectionBoxAdapter {
27
27
  }
28
28
  };
29
29
  this.#box.events.pointerHub.incoming().forEach(({ box }) => addValueProcedure(box));
30
- this.#terminator.own(this.#box.events.pointerHub.subscribeTransactual({
30
+ this.#terminator.own(this.#box.events.pointerHub.subscribe({
31
31
  onAdd: ({ box }) => addValueProcedure(box),
32
32
  onRemove: ({ box: { address: { uuid } } }) => {
33
33
  this.#events.remove(this.#adapters.removeByKey(uuid));
34
34
  this.#onEventsChanged();
35
35
  }
36
36
  }));
37
- this.#terminator.own(this.#box.owners.pointerHub.subscribeTransactual({
37
+ this.#terminator.own(this.#box.owners.pointerHub.subscribe({
38
38
  onAdd: () => this.#changeNotifier.notify(this),
39
39
  onRemove: () => this.#changeNotifier.notify(this)
40
40
  }));
@@ -47,7 +47,7 @@ export class ValueEventBoxAdapter {
47
47
  collection.onEventPropertyChanged();
48
48
  }
49
49
  }
50
- }), this.#box.interpolation.subscribe(invalidateInterpolation), this.#box.interpolation.pointerHub.subscribeImmediate({
50
+ }), this.#box.interpolation.subscribe(invalidateInterpolation), this.#box.interpolation.pointerHub.subscribe({
51
51
  onAdd: ({ box }) => {
52
52
  this.#interpolationSubscription.terminate();
53
53
  this.#interpolationSubscription = box.subscribe(Propagation.Children, invalidateInterpolation);
@@ -1 +1 @@
1
- {"version":3,"file":"AudioRegionBoxAdapter.d.ts","sourceRoot":"","sources":["../../../src/timeline/region/AudioRegionBoxAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAC,GAAG,EAAY,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAe,YAAY,EAAc,IAAI,EAAC,MAAM,kBAAkB,CAAA;AACpH,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAC,OAAO,EAAE,KAAK,EAAoC,MAAM,kBAAkB,CAAA;AAClF,OAAO,EAAO,IAAI,EAAC,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAC,wBAAwB,EAAE,gBAAgB,EAAE,uBAAuB,EAAC,MAAM,qBAAqB,CAAA;AACvG,OAAO,EAAC,kBAAkB,EAAC,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAC,mBAAmB,EAAC,MAAM,iCAAiC,CAAA;AAEnE,KAAK,YAAY,GAAG;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAA;IACxC,QAAQ,CAAC,EAAE,IAAI,CAAA;IACf,QAAQ,CAAC,EAAE,IAAI,CAAA;IACf,UAAU,CAAC,EAAE,IAAI,CAAA;IACjB,YAAY,CAAC,EAAE,IAAI,CAAA;CACtB,CAAA;AAED,qBAAa,qBAAsB,YAAW,wBAAwB,CAAC,KAAK,CAAC;;IACzE,QAAQ,CAAC,IAAI,kBAAiB;gBAelB,OAAO,EAAE,kBAAkB,EAAE,GAAG,EAAE,cAAc;IA+C5D,eAAe,CAAC,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,YAAY;IAE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23
23
  this.#constructing = true;
24
24
  // TODO For unsyned audio samples
25
25
  // this.#terminator.own(this.#project.timelineBox.bpm.subscribe(() => this.trackAdapter.unwrapOrNull()?.dispatchChange()))
26
- this.#terminator.ownAll(this.#box.pointerHub.subscribeImmediate({
26
+ this.#terminator.ownAll(this.#box.pointerHub.subscribe({
27
27
  onAdd: () => this.#dispatchChange(),
28
28
  onRemove: () => this.#dispatchChange()
29
29
  }), this.#box.file.catchupAndSubscribe((pointerField) => {
@@ -19,7 +19,7 @@ export class NoteRegionBoxAdapter {
19
19
  this.#changeNotifier = new Notifier();
20
20
  this.#isSelected = false;
21
21
  this.#isConstructing = true;
22
- this.#terminator.ownAll(this.#box.pointerHub.subscribeImmediate({
22
+ this.#terminator.ownAll(this.#box.pointerHub.subscribe({
23
23
  onAdd: () => this.#dispatchChange(),
24
24
  onRemove: () => this.#dispatchChange()
25
25
  }), this.#box.subscribe(Propagation.Children, (update) => {
@@ -19,7 +19,7 @@ export class ValueRegionBoxAdapter {
19
19
  this.#isConstructing = true;
20
20
  this.#changeNotifier = new Notifier();
21
21
  this.#isSelected = false;
22
- this.#terminator.own(this.#box.pointerHub.subscribeImmediate({
22
+ this.#terminator.own(this.#box.pointerHub.subscribe({
23
23
  onAdd: () => this.#dispatchChange(),
24
24
  onRemove: () => this.#dispatchChange()
25
25
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendaw/studio-adapters",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "license": "LGPL-3.0-or-later",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -23,17 +23,17 @@
23
23
  "test": "echo \"No tests to run\""
24
24
  },
25
25
  "dependencies": {
26
- "@opendaw/lib-box": "^0.0.34",
27
- "@opendaw/lib-dsp": "^0.0.34",
28
- "@opendaw/lib-runtime": "^0.0.34",
29
- "@opendaw/lib-std": "^0.0.34",
30
- "@opendaw/studio-boxes": "^0.0.34",
31
- "@opendaw/studio-enums": "^0.0.25",
26
+ "@opendaw/lib-box": "^0.0.35",
27
+ "@opendaw/lib-dsp": "^0.0.35",
28
+ "@opendaw/lib-runtime": "^0.0.35",
29
+ "@opendaw/lib-std": "^0.0.35",
30
+ "@opendaw/studio-boxes": "^0.0.35",
31
+ "@opendaw/studio-enums": "^0.0.26",
32
32
  "soundfont2": "^0.5.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@opendaw/eslint-config": "^0.0.19",
36
36
  "@opendaw/typescript-config": "^0.0.20"
37
37
  },
38
- "gitHead": "3197d0b9e1c6d9480aa6f29a41976a4685c0a0ff"
38
+ "gitHead": "7911c4037c03c3aa6d59cf6790dd86285d58dcf9"
39
39
  }