How To Specify Windowsize for pitch~ or fiddle~?

ComfortableInClouds's icon

Hi, I am looking to be able to vary the windowsize for either pitch~ or fiddle~. In the documentation, it does not say what message (if there is one) to send either object to change its FFT windowsize. Similarly, in pfft~, there does not seem to be a message to be able to change windowsize. Is this possible for an FFT? I'd like to have an FFT windowsize that matches the size of a grain, for pitch analysis of a single grain.

Macciza's icon

Hi
Check the pitch~ help patch.
No message - use the arguments in object.

Args are - def.
Buffer size = 1024
Hop size = 512
FFT size = 1024
Window type = Blackman 70
Initial delay = 0
# of pitches = 1
# of peaks to find = 20
# peaks to output = 0

Hope that helps.
Macciza

ComfortableInClouds's icon

but in that case the grainsize needs to always be the same. i'd like to be able to dynamically change the FFT window size.

Luke Hall's icon

I don't think you can do this dynamically after instantiation. You might have to use multiple instances and route to the one you need.

lh

Tj Shredder's icon

I am afraid you would need to code it yourself either in Java or in c...
But if you just send the sound of a grain to fiddle~, what is the result? It might just be good enough...

Macciza's icon

Hi
What about Sigmund~ ? will do what you want. http://crca.ucsd.edu/~tapel/software.html