From bb38c09530d7e66182c0db5205c15b143f3d5a9b Mon Sep 17 00:00:00 2001 From: Grissess Date: Tue, 14 Jun 2016 02:44:27 -0400 Subject: Modwheel stuff, floating-point amplitude --- client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client.py') diff --git a/client.py b/client.py index 2d1ab40..1680017 100644 --- a/client.py +++ b/client.py @@ -355,7 +355,7 @@ while True: elif pkt.cmd == CMD.PLAY: dur = pkt.data[0]+pkt.data[1]/1000000.0 FREQ = pkt.data[2] - AMP = MAX * (pkt.data[3]/255.0) + AMP = MAX * (pkt.as_float(3)) signal.setitimer(signal.ITIMER_REAL, dur) elif pkt.cmd == CMD.CAPS: data = [0] * 8 -- cgit v1.2.3-70-g09d2