@opendaw/studio-adapters 0.0.17 → 0.0.19
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,5 +1,5 @@
|
|
1
1
|
import { AudioUnitBox } from "@opendaw/studio-boxes";
|
2
|
-
import { int, Option, UUID } from "@opendaw/lib-std";
|
2
|
+
import { int, Option, UUID, ValueMapping } from "@opendaw/lib-std";
|
3
3
|
import { Address, BooleanField, Field, Int32Field } from "@opendaw/lib-box";
|
4
4
|
import { AudioUnitType, Pointers } from "@opendaw/studio-enums";
|
5
5
|
import { AudioEffectDeviceBoxAdapter, DeviceHost, MidiEffectDeviceAdapter } from "../devices";
|
@@ -14,6 +14,7 @@ import { AudioUnitInputAdapter } from "./AudioUnitInputAdapter";
|
|
14
14
|
import { TrackBoxAdapter } from "../timeline/TrackBoxAdapter";
|
15
15
|
export declare class AudioUnitBoxAdapter implements DeviceHost, BoxAdapter {
|
16
16
|
#private;
|
17
|
+
static VolumeMapper: ValueMapping<number>;
|
17
18
|
readonly "class" = "device-host";
|
18
19
|
readonly namedParameter: {
|
19
20
|
readonly volume: import("..").AutomatableParameterFieldAdapter<number>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AudioUnitBoxAdapter.d.ts","sourceRoot":"","sources":["../../src/audio-unit/AudioUnitBoxAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAC,GAAG,EAAE,MAAM,EAA6B,IAAI,
|
1
|
+
{"version":3,"file":"AudioUnitBoxAdapter.d.ts","sourceRoot":"","sources":["../../src/audio-unit/AudioUnitBoxAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAC,GAAG,EAAE,MAAM,EAA6B,IAAI,EAAE,YAAY,EAAC,MAAM,kBAAkB,CAAA;AAC3F,OAAO,EAAC,OAA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
import { AudioUnitOutput } from "./AudioUnitOutput";
|
10
10
|
export class AudioUnitBoxAdapter {
|
11
|
+
static VolumeMapper = ValueMapping.decibel(-96.0, -9.0, +6.0);
|
11
12
|
"class" = "device-host";
|
12
13
|
#terminator = new Terminator();
|
13
14
|
#context;
|
@@ -88,7 +89,7 @@ export class AudioUnitBoxAdapter {
|
|
88
89
|
terminate() { this.#terminator.terminate(); }
|
89
90
|
#wrapParameters(box) {
|
90
91
|
return {
|
91
|
-
volume: this.#parametric.createParameter(box.volume,
|
92
|
+
volume: this.#parametric.createParameter(box.volume, AudioUnitBoxAdapter.VolumeMapper, StringMapping.decible, "volume"),
|
92
93
|
panning: this.#parametric.createParameter(box.panning, ValueMapping.bipolar(), StringMapping.panning, "panning", 0.5),
|
93
94
|
mute: this.#parametric.createParameter(box.mute, ValueMapping.bool, StringMapping.bool, "mute"),
|
94
95
|
solo: this.#parametric.createParameter(box.solo, ValueMapping.bool, StringMapping.bool, "solo")
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@opendaw/studio-adapters",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.19",
|
4
4
|
"license": "LGPL-3.0-or-later",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -23,16 +23,16 @@
|
|
23
23
|
"test": "echo \"No tests to run\""
|
24
24
|
},
|
25
25
|
"dependencies": {
|
26
|
-
"@opendaw/lib-box": "^0.0.
|
27
|
-
"@opendaw/lib-dsp": "^0.0.
|
28
|
-
"@opendaw/lib-runtime": "^0.0.
|
29
|
-
"@opendaw/lib-std": "^0.0.
|
30
|
-
"@opendaw/studio-boxes": "^0.0.
|
31
|
-
"@opendaw/studio-enums": "^0.0.
|
26
|
+
"@opendaw/lib-box": "^0.0.19",
|
27
|
+
"@opendaw/lib-dsp": "^0.0.19",
|
28
|
+
"@opendaw/lib-runtime": "^0.0.19",
|
29
|
+
"@opendaw/lib-std": "^0.0.19",
|
30
|
+
"@opendaw/studio-boxes": "^0.0.19",
|
31
|
+
"@opendaw/studio-enums": "^0.0.19"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
34
|
-
"@opendaw/eslint-config": "^0.0.
|
35
|
-
"@opendaw/typescript-config": "^0.0.
|
34
|
+
"@opendaw/eslint-config": "^0.0.18",
|
35
|
+
"@opendaw/typescript-config": "^0.0.19"
|
36
36
|
},
|
37
|
-
"gitHead": "
|
37
|
+
"gitHead": "8d9e873aad633820cd26f76dc447674728401495"
|
38
38
|
}
|