|
From: Greg W. <gre...@gm...> - 2006-10-08 04:22:09
|
Hi, I'll do these patches a little at a time. Here is a patch to show a complex spectrogram with the negative frequencies flipped down. I've also attached a modified version of the spectrogram_demo.py that creates the two signals as complex exponentials so they are only in one half of the spectrum (long signal positive, short signal negative). Basically, if the input signal is complex then the whole spectrogram is shown. If the input is real then just the positive frequencies are shown. Next I'll work on the following as discussed. Thanks Greg On 10/6/06, John Hunter <jdh...@ac...> wrote: > > >>>>> "Greg" == Greg Willden <gre...@gm...> writes: > Greg> c) Modify specgram so that if it > Greg> receives an array as the window parameter it checks its > Greg> length and then applies it as a window. If the window > Greg> parameter is not an array then it treats it as a function > Greg> (current behaviour) > > This is fine -- I suggest using the matplotlib.cookbook.iterable > function or the python builtin callable function to do the check. > Whatever changes you make for specgram should also be ported into psd, > csd and cohere. > -- Linux. Because rebooting is for adding hardware. |