diff --git a/python_scripts/analyze_from_file.py b/python_scripts/analyze_from_file.py index 4da4466..798ab25 100644 --- a/python_scripts/analyze_from_file.py +++ b/python_scripts/analyze_from_file.py @@ -6,11 +6,11 @@ from ctypes import c_int32 import os -nr_arrays = 2 # todo: make this find the nr_arrays from the header :) +nr_arrays = 1 # todo: make this find the nr_arrays from the header :) expected_columns = nr_arrays * 64 + 2 -def print_analysis(fileChooser, microphones, source_audio): +def print_analysis(fileChooser, source_audio): def load_data_FPGA(): @@ -158,6 +158,5 @@ def main(): print("Enter the frequency of the audio source (Hz): ") # source_audio=input() source_audio = 440 -microphones = [0] -print_analysis(fileChooser, microphones, source_audio) +print_analysis(fileChooser, source_audio) diff --git a/python_scripts/sound_player.py b/python_scripts/sound_player.py index 2a34e1f..78c3ac2 100644 --- a/python_scripts/sound_player.py +++ b/python_scripts/sound_player.py @@ -20,7 +20,7 @@ def Average(l): data = np.fromfile(path, dtype=c_int32, count=-1, offset=0) # Read the whole file # reshapes into a Numpy array which is N*68 in dimensions -nr_arrays = 2 # todo: make this find the nr_arrays from the header :) +nr_arrays = 1 # todo: make this find the nr_arrays from the header :) expected_columns = nr_arrays * 64 + 2 data2D = data.reshape(-1, expected_columns) diff --git a/python_scripts/tb_fir_post_sim.py b/python_scripts/tb_fir_post_sim.py index 75661f0..48d65e4 100644 --- a/python_scripts/tb_fir_post_sim.py +++ b/python_scripts/tb_fir_post_sim.py @@ -39,7 +39,7 @@ def moving_average(data, window_size): frequencies = np.fft.fftfreq(min_length, 1 / sample_rate) # Select frequencies within 0-10000 Hz -max_freq = 10000 +max_freq = 20000 indices = np.where((frequencies >= 0) & (frequencies <= max_freq)) selected_frequencies = frequencies[indices]