midi: on Mac, name virtual ports after the device name to avoid confusion
This commit is contained in:
parent
1751f721e8
commit
d208644e39
4 changed files with 14 additions and 6 deletions
|
|
@ -7,7 +7,9 @@
|
|||
|
||||
- remote control
|
||||
- `/NOTIFY`: if multiple arguments are provided, interpret the first one as the icon's name for the client notification
|
||||
|
||||
|
||||
- midi
|
||||
- on Mac, name virtual ports after the device name to avoid confusion
|
||||
|
||||
## 1.17.0
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from sys import argv, stdin, stdout, version_info, version, exit
|
||||
from sys import argv, stdin, stdout, version_info, version, exit, platform
|
||||
from binascii import hexlify, unhexlify
|
||||
import traceback
|
||||
import json as JSON
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ from list import *
|
|||
from utils import *
|
||||
from mtc import *
|
||||
|
||||
ipc_send('version', '1.16.7')
|
||||
ipc_send('version', '1.17.1')
|
||||
|
||||
argv = argv[argv.index('--params') + 1:]
|
||||
|
||||
|
|
@ -35,8 +35,14 @@ for arg in argv:
|
|||
if ports == 'virtual':
|
||||
|
||||
try:
|
||||
inputs[name].open_virtual_port('midi_in')
|
||||
outputs[name].open_virtual_port('midi_out')
|
||||
|
||||
if platform == 'darwin':
|
||||
inputs[name].open_virtual_port('%s-in' % name)
|
||||
outputs[name].open_virtual_port('%s-out' % name)
|
||||
else:
|
||||
inputs[name].open_virtual_port('midi_in')
|
||||
outputs[name].open_virtual_port('midi_out')
|
||||
|
||||
if debug:
|
||||
ipc_send('debug','virtual ports opened for device "%s"' % name)
|
||||
except:
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ var {PythonShell} = require('python-shell'),
|
|||
|
||||
// last o-s-c version that changed midi sources
|
||||
// must match version in midi.py / bundled midi executable
|
||||
var midiVersion = '1.16.7'
|
||||
var midiVersion = '1.17.1'
|
||||
|
||||
var pythonOptions = {
|
||||
scriptPath:__dirname,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue