Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hop_Size meaning in aubio

Tags:

c

audio

aubio

I'm trying to use the aubio(https://aubio.org) library for pitch detection. I'm trying to use the API for C and one of the parameters of the new_aubio_pitch function is hop_size. What does hop_size mean and how do you choose one?

like image 445
sher222 Avatar asked Jul 11 '18 02:07

sher222


1 Answers

Hop size should refer to the number of samples in between successive frames. For signal analysis Hop Size should be less than the frame size, so that frames overlap.

In the diagram below

  • Hop size would be Q
  • frame size would be K
  • all in relation to a signal s(n)

Illustration of DSP windowing and frame overlap

If your follow up question is 'why would you do that?', then there is a good answer to be found at this topic here:

https://dsp.stackexchange.com/questions/36509/why-is-each-window-frame-overlapping

like image 194
fdcpp Avatar answered Nov 15 '22 11:11

fdcpp