I am writing a program which takes audio input via Pyaudio, analyses the input via fft, extracts the dominant frequency and then generates a sin wave as a bytestring based u