diff --git a/bin/inputquneo b/bin/inputquneo --- a/bin/inputquneo +++ b/bin/inputquneo @@ -2,9 +2,9 @@ """ read Quneo midi events, write to curvecalc and maybe to effects """ -from __future__ import division + from run_local import log -import logging, urllib +import logging, urllib.request, urllib.parse, urllib.error import cyclone.web, cyclone.httpclient from rdflib import URIRef from twisted.internet import reactor, task @@ -63,7 +63,7 @@ class WatchMidi(object): for ev in self.inp.read(999): (status, d1, d2, _), _ = ev if status in [NOTEON, NOTEOFF]: - print status, d1, d2 + print(status, d1, d2) if status == NOTEON: if not self.noteIsOn.get(d1): @@ -77,7 +77,7 @@ class WatchMidi(object): 'Content-Type': ['application/x-www-form-urlencoded'] }, - postdata=urllib.urlencode([('drop', e)]), + postdata=urllib.parse.urlencode([('drop', e)]), ) except KeyError: pass @@ -90,7 +90,7 @@ class WatchMidi(object): for group in [(23, 24, 25), (6, 18)]: if d1 in group: if not self.noteIsOn.get(group): - print "start zero" + print("start zero") for d in group: sendLiveInputPoint(curves[d], 0)