Audio-Spectrum-Analyzer-in-Python icon indicating copy to clipboard operation
Audio-Spectrum-Analyzer-in-Python copied to clipboard

numpy.linespace audio spectrumQT.py TypeError: object of type <class 'float'> cannot be safely interpreted as an integer.

Open techwithanirudh opened this issue 5 years ago • 1 comments

I tried to run audio spetrumQT.py but it said TypeError: object of type <class 'float'> cannot be safely interpreted as an integer. Can someone please help.

techwithanirudh avatar Nov 27 '20 11:11 techwithanirudh

Dividing by 2 makes it a float. Substitute '/' with '//' for integer division.

Dodo0303 avatar Mar 23 '21 10:03 Dodo0303