Message: 6 Date: Sat, 23 Apr 2005 23:32:26 +0200 From: Matthias Blau blau_m@web.de Subject: [PD] shift display table To: pd-list@iem.at Message-ID: 426ABEEA.5040101@web.de Content-Type: text/plain; charset=ISO-8859-15;
format=flowed
Hi list,
probably quite trivial but I just can't figure out
how to display an
impulse response obtained via fft from -nfft/2 to
+nfft/2-1 instead of
from 0 to nfft-1.
Thanks for any help, Matthias
I'm not sure if I understand right, but lrshift~ shifts a signal block depending upon its creation argument, left for positive numbers, right for negative, filling in the rest with zeros. Unfortunately it doesn't look like you can change the shift amount other than with the creation argument, so alternatively you can tabsend~ input to a temporary table, then tabreceive~ a table of indices which you use to tabread4~ the temporary table. The table of indices can be 0,1,2..63 (assuming block size=64) for no shift, 1,2..64 for left shift 1, etc. even fractional shift if you want.
Stefan Turner
Send instant messages to your online friends http://uk.messenger.yahoo.com
Stefan Turner schrieb:
Unfortunately it doesn't look like you can change the shift amount other than with the creation argument, so alternatively you can tabsend~ input to a temporary table, then tabreceive~ a table of indices which you use to tabread4~ the temporary table. The table of indices can be 0,1,2..63 (assuming block size=64) for no shift, 1,2..64 for left shift 1, etc. even fractional shift if you want.
Thanks a lot, that did it.
It took me a while to figure out the differences between tabreceive~ and tabread~ though (two tabread~s in chain doesn't work whereas tabreceive~ followed by tabread~ does). Is this intended?
And, by the way, there is no help file for tabread~ in 0.38.4. Could someone please fix this?
THanks, Matthias
Stefan Turner
Send instant messages to your online friends http://uk.messenger.yahoo.com
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list