Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choose the number of channels with LyonCalc( #2

Open
David-GERARD opened this issue May 3, 2024 · 1 comment
Open

Choose the number of channels with LyonCalc( #2

David-GERARD opened this issue May 3, 2024 · 1 comment

Comments

@David-GERARD
Copy link

Hi,

I'm using the code in this repository to process audio files recorded at 8kH of various lengths.
I would like all my cochleograms to have the same number of channel, that I would like to be able to specify.

So far, I have been able to do so by adjusting the step_factor, but I was wandering if there was a better more deterministic way to do that.

Best regards,
David

@David-GERARD
Copy link
Author

The number of channel is computed in utils.design_lyon_filters, line 50 of utils.py

NumberOfChannels = np.floor((ear_q*(-_log_val_low + _log_val_top))/step_factor)

Is the idea of fixing the number of channel and instead computing ear_q or the step factor bad?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant