fix: don't reset on each eval

This commit is contained in:
Felix Roos 2024-04-12 12:28:03 +02:00
parent 8494353ace
commit 0190604a7f

View File

@ -177,7 +177,7 @@ export async function midin(input) {
}
const initial = await enableWebMidi(); // only returns on first init
const device = getDevice(input, WebMidi.inputs);
if (initial || WebMidi.enabled) {
if (initial) {
const otherInputs = WebMidi.inputs.filter((o) => o.name !== device.name);
logger(
`Midi enabled! Using "${device.name}". ${