midi: active sensing support

This commit is contained in:
jean-emmanuel 2021-02-10 08:16:31 +01:00
parent 8a6d47be85
commit 6046715f68
4 changed files with 15 additions and 3 deletions

View file

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