Skip to content

Commit

Permalink
Update Frequency Extractor using FFT (100% work but not filtered).py
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamedhany99 authored Feb 6, 2023
1 parent a5a0304 commit 54f96f5
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Frequency Extractor using FFT (100% work but not filtered).py
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,16 @@
"""
Created on Sun Mar 29 00:52:24 2020
@author: aa
@author: Mohamed Hany
"""
from scipy.io import wavfile
#import wave
#import struct
import numpy as np
#first way to enter the wave file data (nframes + frame rate) using the wave lib
#wave_file = wave.open("HH3.wav",'r')
#nframes = wave_file.getnframes()
#data = wave_file.readframes(nframes)
#frate = wave_file.getframerate
#wave_file.close()
#data = struct.unpack('{n}h'.format(n=data_size), data)


#second way to enter the wave file data (nframes + frame rate) using wavfile lib (100% work done but it is not filtered)

#explaination: enter the wave file data (nframes + frame rate) using wavfile lib (100% work done but it is not filtered)
fname = "test.wav"
frate, data = wavfile.read(fname)

Expand Down

0 comments on commit 54f96f5

Please sign in to comment.