Commit e9aba53a authored by Ali Allaoui's avatar Ali Allaoui

connect to miPhy by jack

parent 8b92a8ab
build
*.egg-info
.idea
\ No newline at end of file
......@@ -13,19 +13,18 @@ def mapping():
parser.add_argument('--values', '-v')
args = parser.parse_args()
mapping = Mapping(args.mapping, args.values)
mappings = Mapping(args.mapping, args.values)
s = Server(audio='jack', nchnls=mapping.nb_input_channels, ichnls=2)
s = Server(audio='jack', nchnls=mappings.nb_input_channels, ichnls=2)
jclient = jack.Client("mapping")
pm_list_devices()
s.setMidiInputDevice(99) # Open all input devices.
s.boot()
mapping.load()
# for pyout in jclient.get_ports('pyo:output_*'):
# pyout.disconnect()
mappings.load()
jclient.disconnect('pyo:output_1', 'system:playback_1')
jclient.disconnect('pyo:output_2', 'system:playback_2')
for m in mappings.mappings:
if "channel" in m.keys():
jclient.connect('pyo:output_' + str(m["channel"] + 1), 'miPhy:Input_' + str(m["channel"] + 1))
s.gui(locals())
\ No newline at end of file
s.gui(locals())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment