Hi to all,
newbie here.
I've just tweaked few times with PD as I prefer writing code than using gui interface. In any case, I like a lot PD and it seems the best candidate for my very short course in computer music here at the university.
I was trying to understand if there's a(n easy) way to plot a spectrum. I guess it should be easily feasible, as I saw both pd capabilties in time domain, both Miller Puckette's figures in the book.
But looking in docs and on the web I got confused and I'm not able to find answers to my question.
Any hints?
Many thanks
best
-a-
Andrea Valle DAMS - Facoltà di Scienze della Formazione Università degli Studi di Torino http://www.semiotiche.it/andrea andrea.valle@unito.it
On Mon, 13 Nov 2006, andrea valle wrote:
I was trying to understand if there's a(n easy) way to plot a spectrum. I guess it should be easily feasible, as I saw both pd capabilties in time domain, both Miller Puckette's figures in the book. But looking in docs and on the web I got confused and I'm not able to find answers to my question.
You can combine [fft~] with [tabsend~] and [table]. Clicking on the [table] will show you the contents. If you want to make a polar transform, you may want to combine cos and sin like [expr~ sqrt($v1*$v1+$v2*$v2)] to get an amplitude plot. If you want a phase plot you can use [expr~ atan($v1,$v2)] or maybe it's $v2 first.
If you want something fancier, have a look at http://gridflow.ca/gallery/spectrogram.gif
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
Hallo, andrea valle hat gesagt: // andrea valle wrote:
I was trying to understand if there's a(n easy) way to plot a spectrum. I guess it should be easily feasible, as I saw both pd capabilties in time domain, both Miller Puckette's figures in the book.
But looking in docs and on the web I got confused and I'm not able to find answers to my question.
There are several examples using a spectrum display inside the Pd docs. For a quick start I would recommend 3.audio.examples/E09.FM.spectrum.pd
Inside of [pd fft] you will see the basic approach which is squaring the output of [rfft~], adding it and taking the square root.
Frank Barknecht _ ______footils.org_ __goto10.org__
What I have been wanting to see is a nice time vs. frequency/amplitude spectrogram... like something that is very easy to do in matlab with the specgram function. The [sonogram~] object in the unauthorized library comes close, but it is difficult to know what is happening according to the picture.
On 11/13/06, Frank Barknecht fbar@footils.org wrote:
Hallo, andrea valle hat gesagt: // andrea valle wrote:
I was trying to understand if there's a(n easy) way to plot a spectrum. I guess it should be easily feasible, as I saw both pd capabilties in time domain, both Miller Puckette's figures in the book.
But looking in docs and on the web I got confused and I'm not able to find answers to my question.
There are several examples using a spectrum display inside the Pd docs. For a quick start I would recommend 3.audio.examples/E09.FM.spectrum.pd
Inside of [pd fft] you will see the basic approach which is squaring the output of [rfft~], adding it and taking the square root.
Ciao
Frank Barknecht _ ______footils.org_ __goto10.org__
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Tue Nov 14, 2006 at 12:49:20AM -0800, Rich E wrote:
What I have been wanting to see is a nice time vs. frequency/amplitude spectrogram... like something that is very easy to do in matlab with the specgram function. The [sonogram~] object in the unauthorized library comes close, but it is difficult to know what is happening according to the picture.
theres a widget in /extensions/gui/ix/toxy/sp.wid in CVS that does this, with flexible scaling, ranges, log-linear, colors etc. ive found by tweaking the settings as input is playing, you can usually get a pretty good image. can't edit the spectrogram though. for that, try something like the latest version of wavelab, or soundprobe.. and possibly tapestrea
Thanks for letting me know about that. Now I need to get it working... When running sp-demo.pd , I get the follow errors:
invalid command name "sp18221840" setup tcl error: in ::toxy::longvishook: can't find package tkdnd
I installed tkDND 1.0a2, but this did't change anything.
any suggestions?
Regards, Rich
On 11/14/06, carmen _@whats-your.name wrote:
On Tue Nov 14, 2006 at 12:49:20AM -0800, Rich E wrote:
What I have been wanting to see is a nice time vs. frequency/amplitude spectrogram... like something that is very easy to do in matlab with the specgram function. The [sonogram~] object in the unauthorized library comes close, but it is difficult to know what is happening according to
the
picture.
theres a widget in /extensions/gui/ix/toxy/sp.wid in CVS that does this, with flexible scaling, ranges, log-linear, colors etc. ive found by tweaking the settings as input is playing, you can usually get a pretty good image. can't edit the spectrogram though. for that, try something like the latest version of wavelab, or soundprobe.. and possibly tapestrea
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list