midi: active sensing support
This commit is contained in:
parent
8a6d47be85
commit
6046715f68
4 changed files with 15 additions and 3 deletions
|
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## next
|
||||
|
||||
- midi
|
||||
- add active sensing messages support
|
||||
|
||||
## 1.8.6
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -77,6 +77,11 @@ Enable parsing of system exclusive messages (disabled by default).
|
|||
|
||||
Enable parsing of midi time code messages (disabled by default).
|
||||
|
||||
**`active_sensing`**
|
||||
|
||||
Enable parsing of midi active sensing messages (disabled by default).
|
||||
|
||||
|
||||
**`pc_offset`**
|
||||
|
||||
Send program changes with a `-1` offset to match some software/hardware implementations
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ PROGRAM_CHANGE_OFFSET = 'pc_offset' in argv
|
|||
ignore_sysex = 'sysex' not in argv
|
||||
# option: parse mtc
|
||||
ignore_mtc = 'mtc' not in argv
|
||||
# option: parse active sensing
|
||||
ignore_active_sensing = 'active_sensing' not in argv
|
||||
|
||||
inputs = {}
|
||||
outputs = {}
|
||||
|
|
@ -174,8 +176,8 @@ for name in inputs:
|
|||
|
||||
inputs[name].set_callback(create_callback(name))
|
||||
|
||||
# sysex / mtc support
|
||||
inputs[name].ignore_types(ignore_sysex, ignore_mtc, True)
|
||||
# sysex / mtc / active sensing support
|
||||
inputs[name].ignore_types(ignore_sysex, ignore_mtc, ignore_active_sensing)
|
||||
|
||||
|
||||
def midi_message(status, channel, data1=None, data2=None):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue