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

Re: [sc-users] FFT + SCSoundFileView



<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>