%matplotlib inline import matplotlib.pyplot as plt from counter import Recorder Recorder.list_devices() recorder = Recorder(channels=1,rate=44100,frames_per_buffer=1024,input_device_index=0) recorder.record(5) recorder.visualize() fig,ax = plt.subplots() t,y = recorder.record_above_threshold(5,threshold=0.1,slope="raising",save_waveform=True) recorder.visualize(fig=fig,ax=ax) recorder.ax.scatter(t,y,color="red") t cat config run geiger.py cat counts_environment.txt