@opendaw/studio-scripting 0.0.38 → 0.0.39

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.
@@ -1 +1 @@
1
- {"version":3,"file":"AudioUnitBoxFactory.d.ts","sourceRoot":"","sources":["../src/AudioUnitBoxFactory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoD,eAAe,EAAC,MAAM,0BAA0B,CAAA;AAC3G,OAAO,EAAgE,WAAW,EAAW,MAAM,QAAQ,CAAA;AAU3G,yBAAiB,mBAAmB,CAAC;IAC1B,MAAM,MAAM,GAAI,UAAU,eAAe,EAAE,SAAS,WAAW,KAAG,IAiIxE,CAAA;CA0FJ"}
1
+ {"version":3,"file":"AudioUnitBoxFactory.d.ts","sourceRoot":"","sources":["../src/AudioUnitBoxFactory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoD,eAAe,EAAC,MAAM,0BAA0B,CAAA;AAC3G,OAAO,EAAgE,WAAW,EAAW,MAAM,QAAQ,CAAA;AAS3G,yBAAiB,mBAAmB,CAAC;IAC1B,MAAM,MAAM,GAAI,UAAU,eAAe,EAAE,SAAS,WAAW,KAAG,IA+HxE,CAAA;CA0FJ"}
@@ -11,11 +11,11 @@ import { AudioFileBoxfactory } from "./AudioFileBoxfactory";
11
11
  export var AudioUnitBoxFactory;
12
12
  (function (AudioUnitBoxFactory) {
13
13
  AudioUnitBoxFactory.create = (skeleton, project) => {
14
- const { boxGraph, mandatoryBoxes: { rootBox, primaryAudioBus, primaryAudioOutputUnit } } = skeleton;
14
+ const { boxGraph, mandatoryBoxes: { rootBox, primaryAudioBusBox, primaryAudioUnitBox } } = skeleton;
15
15
  let audioUnitIndex = 0;
16
16
  const devices = new Map();
17
- const busMap = new Map([[project.output, primaryAudioBus]]);
18
- const audioUnitMap = new Map([[project.output, primaryAudioOutputUnit]]);
17
+ const busMap = new Map([[project.output, primaryAudioBusBox]]);
18
+ const audioUnitMap = new Map([[project.output, primaryAudioUnitBox]]);
19
19
  const awaitedSends = [];
20
20
  const noteTrackWriter = new NoteTrackWriter();
21
21
  const valueTrackWriter = new ValueTrackWriter();
@@ -102,11 +102,11 @@ export var AudioUnitBoxFactory;
102
102
  project.groupUnits.forEach(unit => convertBusUnits(unit, AudioUnitType.Bus, IconSymbol.AudioBus, "var(--color-blue)"));
103
103
  awaitedSends.forEach(([send, box]) => box.targetBus.refer(asDefined(busMap.get(send.target), "Could not find AudioBus").input));
104
104
  const { output: { mute, solo, volume, panning } } = project;
105
- primaryAudioOutputUnit.mute.setValue(mute);
106
- primaryAudioOutputUnit.solo.setValue(solo);
107
- primaryAudioOutputUnit.volume.setValue(volume);
108
- primaryAudioOutputUnit.panning.setValue(panning);
109
- primaryAudioOutputUnit.index.setValue(audioUnitIndex);
105
+ primaryAudioUnitBox.mute.setValue(mute);
106
+ primaryAudioUnitBox.solo.setValue(solo);
107
+ primaryAudioUnitBox.volume.setValue(volume);
108
+ primaryAudioUnitBox.panning.setValue(panning);
109
+ primaryAudioUnitBox.index.setValue(audioUnitIndex);
110
110
  // connect
111
111
  const audioUnits = [
112
112
  ...project.instrumentUnits,
@@ -118,7 +118,7 @@ export var AudioUnitBoxFactory;
118
118
  // undefined means we connect this to the primary output
119
119
  // null means this is intended to be unplugged
120
120
  const audioBusBox = output === undefined
121
- ? primaryAudioBus : output === null
121
+ ? primaryAudioBusBox : output === null
122
122
  ? null : asDefined(busMap.get(output), "Could not find AudioBus");
123
123
  if (isNotNull(audioBusBox)) {
124
124
  const audioUnitBox = asDefined(audioUnitMap.get(audioUnit), "audio unit not found in map");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendaw/studio-scripting",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "license": "LGPL-3.0-or-later",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -34,7 +34,7 @@
34
34
  "@opendaw/lib-dsp": "^0.0.72",
35
35
  "@opendaw/lib-runtime": "^0.0.70",
36
36
  "@opendaw/lib-std": "^0.0.69",
37
- "@opendaw/studio-adapters": "^0.0.85",
37
+ "@opendaw/studio-adapters": "^0.0.86",
38
38
  "@opendaw/studio-boxes": "^0.0.76",
39
39
  "@opendaw/studio-enums": "^0.0.64"
40
40
  },
@@ -42,5 +42,5 @@
42
42
  "@opendaw/eslint-config": "^0.0.27",
43
43
  "@opendaw/typescript-config": "^0.0.29"
44
44
  },
45
- "gitHead": "e1d65ce1874ad5ac4b14cb0cc80c235e0ed395ae"
45
+ "gitHead": "bad85dc13003b771a7470ed29eeff4dbf2244410"
46
46
  }