summaryrefslogtreecommitdiff
path: root/examples/plot_input.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/plot_input.py')
-rwxr-xr-xexamples/plot_input.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/plot_input.py b/examples/plot_input.py
index 26212e5..1210ba3 100755
--- a/examples/plot_input.py
+++ b/examples/plot_input.py
@@ -86,7 +86,7 @@ try:
device_info = sd.query_devices(args.device, 'input')
args.samplerate = device_info['default_samplerate']
- length = np.ceil(args.window * args.samplerate / (1000 * args.downsample))
+ length = int(args.window * args.samplerate / (1000 * args.downsample))
plotdata = np.zeros((length, len(args.channels)))
fig, ax = plt.subplots()