midi: allow sending note off with velocity, add option for receiving note off with velocity
This commit is contained in:
parent
996537d60b
commit
a6e60e172c
7 changed files with 43 additions and 17 deletions
|
|
@ -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|active_sensing|pc_offset|path=(.*)|[^:]+:(virtual|[^,]+,[^,]+))$/))
|
||||
var err = o.filter(item=>!item.match(/^(list|debug|jack|sysex|mtc|active_sensing|note_off_velocity|pc_offset|path=(.*)|[^:]+:(virtual|[^,]+,[^,]+))$/))
|
||||
return err.length ? `Invalid option${err.length > 1 ? 's' : ''}: ${err.join(', ')}` : true
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue