aboutsummaryrefslogtreecommitdiff
path: root/client.py
diff options
context:
space:
mode:
authorGrissess <grissess@nexusg.org>2016-06-14 02:44:27 -0400
committerGrissess <grissess@nexusg.org>2016-06-14 02:44:27 -0400
commitbb38c09530d7e66182c0db5205c15b143f3d5a9b (patch)
treee3bc3b9a408b05380b08c8e7a5526a9896a461bf /client.py
parent368b5db51d76c162656abd26c88991f0f7f8a556 (diff)
Modwheel stuff, floating-point amplitude
Diffstat (limited to 'client.py')
-rw-r--r--client.py2
1 files changed, 1 insertions, 1 deletions
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