13.07.2015 Views

Tutorials and Topics - Peabody Computer Music

Tutorials and Topics - Peabody Computer Music

Tutorials and Topics - Peabody Computer Music

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Tutorial 26Frequency domain signalprocessing using pfft~The pfft~ object takes as its argument the name of a specially designed subpatchcontaining the fftin~ <strong>and</strong> fftout~ objects (which will be discussed below), a number for theFFT size in samples, <strong>and</strong> a number for the overlap factor (these must both be integerswhich are a power of 2):A simple use of pfft~.The pfft~ subpatch fftbasic~ referenced above might look something like this:The fftbasic~ subpatch used in the previous exampleThe fftbasic~ subpatch shown above takes a signal input, performs an FFT on that signalwith a Hanning window (see below), <strong>and</strong> performs an IFFT on the FFT’d signal, also witha Hanning window. The pfft~ object communicates with its sub-patch using specialobjects for inlets <strong>and</strong> outlets. The fftin~ object receives a time-domain signal from itsparent patch <strong>and</strong> transforms it via an FFT into the frequency domain. This time-domain204

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!