From de8cb6d5e875ccad2e7a9662627670fe2b8af287 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 9 May 2017 16:39:24 +0200 Subject: [PATCH] midi: fix program change (failed to send with correct number of arguments) --- CHANGELOG.md | 1 + app/main/midi.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c81e5ee9..52888900 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - bug fixes - launcher: link to the app's address is now clickable - sidepanel: layout glitches with iOS + - midi: `program` now works with the correct number of arguments - misc - some little style fixes diff --git a/app/main/midi.py b/app/main/midi.py index 525ab199..adfc88c4 100644 --- a/app/main/midi.py +++ b/app/main/midi.py @@ -216,7 +216,7 @@ class MidiRouter(object): channel = int(min(max(args[0],1), 16)) data1 = int(min(max(args[1],0), 127)) - data2 = int(min(max(args[2],0), 127)) + data2 = int(min(max(args[2],0), 127)) if len(args) >= 3 else 0 if 'note' in event: if data2 == 0: