You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's Vicent again from ITI. We are trying to process a bunch of wav files from ESC-50 dataset (fs=44,1 kHz) with AFE to work with them on the XYLOv2 module. The Python list called wavs contains several instances of wav_class that have been filled with data from ESC-50 via wave library (j.filename contains the name of each wav file) like this:
However, when we try to work with AFE modifying this example code from tutorials:
# - import AFE
from rockpool.devices.xylo.syns61201 import AFESim
# - AFE parameters
fs = 44100 # The sampling frequency of the input, in Hz
raster_period = 10e-3 # The output rasterisation time-step in seconds
max_spike_per_raster_period = 15 # Maximum number of events per output time-step
add_noise = False # Enables / disables simulated noise generated by the AFE
add_offset = True # Add mismatch offset to each filter
add_mismatch = True # Add simualted mismatch to filter parameters
seed = None # Seed for mistmatch generation
# - Initialize the AFE simulation, and convert it to a high-level `TimedModule`
afe = AFESim(
fs = fs,
raster_period = raster_period,
max_spike_per_raster_period = max_spike_per_raster_period,
add_noise = add_noise,
add_offset = add_offset,
add_mismatch = add_mismatch,
seed = seed,
).timed()
We get the following error:
ValueError: Sampling frequency (44100) must be at least 6 times the highest BPF centre freq. (i.e. >101640 Hz)
The main reason is that the microphone produces THD (third-order distortion) which may fallback into the wrong frequency
if the sampling frequency is not large enough.
Therefore, we would like to proportionally reduce all the central frequencies of the BFP bank to be able to process these wav 44,1 kHz files properly.
Could you give us a hand on this?
Thank yo so much in advance,
Vicent
The text was updated successfully, but these errors were encountered:
Good morning, @ssinhaleite,
Here's Vicent again from ITI. We are trying to process a bunch of wav files from ESC-50 dataset (fs=44,1 kHz) with AFE to work with them on the XYLOv2 module. The Python list called
wavs
contains several instances ofwav_class
that have been filled with data from ESC-50 viawave
library (j.filename
contains the name of each wav file) like this:However, when we try to work with AFE modifying this example code from tutorials:
We get the following error:
Therefore, we would like to proportionally reduce all the central frequencies of the BFP bank to be able to process these wav 44,1 kHz files properly.
Could you give us a hand on this?
Thank yo so much in advance,
Vicent
The text was updated successfully, but these errors were encountered: