midi: fix unrecognized no_auto_note_off option

This commit is contained in:
jean-emmanuel 2026-07-08 11:38:57 +02:00
parent ac7b0323e2
commit c49a731134
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,9 @@
# Changelog
## 1.30.5
- bug fixes
- midi: unrecognized `no_auto_note_off` option
## 1.30.4

View file

@ -51,7 +51,7 @@ export default {
},
'm': {alias: 'midi', type: 'array', describe: 'midi router settings',
check: (o)=>{
var err = o.filter(item=>!item.match(/^(list|debug|jack|sysex|mtc|rpn|nrpn|active_sensing|note_off_velocity|pc_offset|path=(.*)|[^:]+:(virtual|[^,]+,[^,]+))$/))
var err = o.filter(item=>!item.match(/^(list|debug|jack|sysex|mtc|rpn|nrpn|active_sensing|note_off_velocity|no_auto_note_off|pc_offset|path=(.*)|[^:]+:(virtual|[^,]+,[^,]+))$/))
return err.length ? `Invalid option${err.length > 1 ? 's' : ''}: ${err.join(', ')}` : true
}
},