I am building a guitar tuner GUI with sounddevice. This is my code for the recording part:
def create_stream(self):