fft~ help?

Learn about building and using Max for Live devices.
Post Reply
chaircrusher
Posts: 89
Joined: Fri Dec 03, 2004 7:54 pm

fft~ help?

Post by chaircrusher » Wed Oct 21, 2009 12:11 am

What I gather, is that in order to use FFTs with audio, you have to do some stuff.

1. Create a pfft~ (special fft patcher) which has 3 required arguments: 1. The name of a patcher to load, 2. The buffer size and 3. the window.

All well and good, but I can't for the life of me figure out how the hell to get this to work. The documentation and individual help (i.e. for pfft~) is fine as far as it goes, but I can't see how to get pfft~ to load a patcher of my own creation. What's the trick?

ztutz
Posts: 100
Joined: Sat Jul 30, 2005 5:59 pm
Contact:

Re: fft~ help?

Post by ztutz » Wed Oct 21, 2009 3:14 am

Jean-Francois Charles has written a number of excellent tutorials:

http://www.cycling74.com/twiki/bin/view ... oisCharles

-- z

chaircrusher
Posts: 89
Joined: Fri Dec 03, 2004 7:54 pm

Re: fft~ help?

Post by chaircrusher » Wed Oct 21, 2009 8:57 pm

Ta for the link, but I looked at those and nowhere is this explained:

pfft~ is a special sort of patcher. What happens inside pfft~ is frequency domain stuff.

According to this post: http://forum.ableton.com/viewtopic.php? ... t~#p986019

You have to save your fft subpatches somewhere in the Live patcher search path. All well and good, but where exactly is that?
So assuming I find a place to drop my subpatches, I just save them, and then mention them by name when I create a pfft~?

Does this seem a little over-complicated?

[ pfft~ patchername buffersize overlap ]

What isn't clear -- and what I've not figured out by clicking around and googling -- is how to
put stuff INSIDE a pfft~ patcher. I can't get into it -- as I can with a regular patcher -- and add the things I need.
ztutz wrote:Jean-Francois Charles has written a number of excellent tutorials:

http://www.cycling74.com/twiki/bin/view ... oisCharles

-- z

ztutz
Posts: 100
Joined: Sat Jul 30, 2005 5:59 pm
Contact:

Re: fft~ help?

Post by ztutz » Wed Oct 21, 2009 9:17 pm

1. Create a new Max device. Save it somewhere. (If you accept the default, it will be saved in your beta Library.)
2. Open this device for patching in Max.
3. Create a new patcher by selecting File/New Patcher or cmd-n.
4. Save this file in the same directory as your Max device. Let's suppose that it is named fftpatch.
5. In your max device, create the ppft~ object, using fftpatch (or whatever you've named it) as the name argument.

Once you hit return, you've made the connection.

For those of us who reuse our fft patchers in multiple devices, this is not overcomplicated. In fact, you may eventually find yourself with many more files per patch than two.

Good luck!

Post Reply