Hello! I would like to zero-pad a signal that I fourrier transform with rfft~ and block~. I tried cutting the signal in pieces by using tabwrite~ and del objects outside block~s subpatch but its very complicated just for the sake of zero-padding, plus I cant use block~s overlapp functionality anymore... Does anyone have a clue?? I must be missing something on this... I want to zero-pad to get some interpolation in frequency between the normal zero-pad free fourrier transform bins.. I know its the best solution for what I want to do caus I ve tested multiples methods in octave, including linear interpolation...
-
How to zero-pad an fft with block~
-
Are you looking to actually add samples or just mute some? If it's the latter, I think you should be able to do this with a window. Take a look at 3.audio.examples/I02.Hann.window and replace the Hann window with one that just mutes out the samples you want.
-
I want to add samples... but I guess your idea could work by doubling the window lenth and overlapp specified by block~... then i could use a window that cancel out half of the window as you said.. thanks for the hint..
I wonder if embeding two pd subpatchs with different blocksize could do the trick... for example a first pd subpatch with a blocksize of 2048 and a second pd subpatch within the first pd subpatch with a blocksize of 4096... I think this could imply less floating point multipy operations.. i ll keep the post informed if this is successfull.. block~ object is not extensively documented so its really try and error..
-
for info, embeding two subpatches with different blocksize doesnt do the trick it seems.. Maelstrom's solution works