Function bliss_audio_aubio_rs::hz_to_bin [−][src]
pub fn hz_to_bin(freq: Smpl, sample_rate: Smpl, fft_size: Smpl) -> Smpl
Expand description
Convert frequency (Hz) to frequency bin
freq
Frequency in Hz to convertsample_rate
Sampling rate of the original signal the bin was fromfft_size
Size of the FFT window used to obtain the frequency bin