aboutsummaryrefslogtreecommitdiff
path: root/drums.py
diff options
context:
space:
mode:
authorGrissess <grissess@nexusg.org>2021-06-12 16:28:10 -0400
committerGrissess <grissess@nexusg.org>2021-06-12 16:28:10 -0400
commitebd8f4b242c1a83a222297aa80b2e5c64580e36d (patch)
tree68e3b95b21c43245951bb7f4aa8f5af7da8d5471 /drums.py
parentf02119a40bdeb56d18c323993d7a78e1a8440b17 (diff)
Add the SC client, refactor for Py3 a little
Diffstat (limited to 'drums.py')
-rw-r--r--drums.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/drums.py b/drums.py
index 89faca9..ffa7792 100644
--- a/drums.py
+++ b/drums.py
@@ -248,7 +248,7 @@ while True:
dur = pkt.data[0]+pkt.data[1]/1000000.0
dframes = int(dur * options.rate)
if not options.repeat:
- dframes = max(dframes, rframes)
+ dframes = min(dframes, rframes)
if not options.cut:
dframes = rframes * ((dframes + rframes - 1) / rframes)
amp = options.volume * pkt.as_float(3)