diff --git a/CHANGELOG.md b/CHANGELOG.md index 73b2d7de..aed20617 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/python/head.py b/src/python/head.py index 494ec6ac..2011c7c3 100644 --- a/src/python/head.py +++ b/src/python/head.py @@ -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 diff --git a/src/python/midi.py b/src/python/midi.py index ae3083b8..825b846a 100644 --- a/src/python/midi.py +++ b/src/python/midi.py @@ -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: diff --git a/src/server/midi.js b/src/server/midi.js index fb7670d4..5a8dbed2 100644 --- a/src/server/midi.js +++ b/src/server/midi.js @@ -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,