[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] FFT + SCSoundFileView



There's an example in the FFT Overview file. It doesn't use SCSoundFileView but you should be able to modify it if you need that.

S.

On 28 Sep 2005, at 00:18, Fabrice Mogini wrote:

<x-tad-smaller>Hi,

How would you use FFT to with SCSoundFileView to plot the frequencies from a Soundfile?


w = </x-tad-smaller><x-tad-smaller>"soundfile FFT"</x-tad-smaller><x-tad-smaller>, </x-tad-smaller><x-tad-smaller>Rect</x-tad-smaller><x-tad-smaller>(0, 300, 520, 500));
a = </x-tad-smaller><x-tad-smaller>SCSoundFileView</x-tad-smaller><x-tad-smaller>.new(w, </x-tad-smaller><x-tad-smaller>Rect</x-tad-smaller><x-tad-smaller>(30,10, 400, 400));
f = </x-tad-smaller><x-tad-smaller>SoundFile</x-tad-smaller><x-tad-smaller>.new;
f.openRead(</x-tad-smaller><x-tad-smaller>"sounds/</x-tad-smaller>

a11wlk01-44_1.aiff<x-tad-smaller>"</x-tad-smaller><x-tad-smaller>);
a.soundfile_(f);
a.read(0, f.numFrames);
w.front;
</x-tad-smaller>

_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users