This commit is contained in:
Rik Berkelder 2026-08-04 16:17:28 +02:00
parent 77a1dc85d2
commit 2aaf306a4b
2 changed files with 47 additions and 32 deletions

View file

@ -110,7 +110,8 @@ export class MidiControl<T extends MessageType> {
}
// ugly typing here, but library overloads are a little annoying to work around. worst case scenario nothing happens
this.device.output?.send(type as any, { ...data, ...this.filter } as any);
const outData = {...this.filter, ...data }
this.device.output?.send(type as any, outData as any);
}
public getPage(): number { return this.page };
@ -136,7 +137,6 @@ export class MidiControl<T extends MessageType> {
if (typeof pages === 'number') pages = [pages];
const newValue = { ...this.defaultData(), ...this.filter, ...data };
for (const page of pages) {
if (!noStore) this.values[page] = newValue;