@potatosalad775/eqcaps-device-bridge 0.2.1 → 0.2.2
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/README.md +3 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -46,10 +46,11 @@ if (transport) {
|
|
|
46
46
|
// Read: written values, as the device holds them.
|
|
47
47
|
const state = await device.pull();
|
|
48
48
|
|
|
49
|
-
// Write: what the user wants, fitted to the device, every band filled.
|
|
49
|
+
// Write: what the user wants, fitted to the device, every band filled. With the read-back
|
|
50
|
+
// as hints, bands the user left empty keep what the device holds, written flat.
|
|
50
51
|
if (profile) {
|
|
51
52
|
const result = fit(profile, wantedFilters, wantedPreamp);
|
|
52
|
-
const filters = complete(profile, result.slots).filters;
|
|
53
|
+
const filters = complete(profile, result.slots, { hints: state.filters }).filters;
|
|
53
54
|
const preamp = profile.preamp.mode === 'manual' ? result.preamp : undefined;
|
|
54
55
|
await device.push({ filters, ...(preamp === undefined ? {} : { preamp }) });
|
|
55
56
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@potatosalad775/eqcaps-device-bridge",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"build": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.build.json"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@potatosalad775/eqcaps-core": "0.2.
|
|
36
|
+
"@potatosalad775/eqcaps-core": "0.2.2"
|
|
37
37
|
}
|
|
38
38
|
}
|