Merge pull request #1054 from tidalcycles/midin-fix

fix: do not reset cc input values on each eval
This commit is contained in:
Felix Roos 2024-04-12 12:31:49 +02:00 committed by GitHub
commit 936d6fdafb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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}". ${