Hi all, I'm trying to build a "spectral delay" and to separate the fft analysis into "bands" I'm planning on multyplying the output of rfft by arrays (read with tableread~). These arrays contain as many points as there are fft bins. So my question is: Is there a quick way to populate arrays (1024 points in size) so that between x-value 'a' and x-value 'b' I have a y-value of 1, while the rest of the array is set to 0? I also want to be able control the values of a and b, so the band can be changed dynamically. Any help is very appreciated, as I cannot think of a simple straigthforward way.
Thanks, Andres
Hallo!
For a lot of array-operations you could use VASP from Thomas Grill: http://www.parasitaere-kapazitaeten.net/~thomas/ext/
LG GEorg
Hi all, I'm trying to build a "spectral delay" and to separate the fft analysis into "bands" I'm planning on multyplying the output of rfft by arrays (read with tableread~). These arrays contain as many points as there are fft bins. So my question is: Is there a quick way to populate arrays (1024 points in size) so that between x-value 'a' and x-value 'b' I have a y-value of 1, while the rest of the array is set to 0? I also want to be able control the values of a and b, so the band can be changed dynamically. Any help is very appreciated, as I cannot think of a simple straigthforward way.
Thanks, Andres
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
acabrera@teleset.com.co wrote:
Hi all,
Is there a quick way to populate arrays (1024 points in size) so that between x-value 'a' and x-value 'b' I have a y-value of 1, while the rest of the array is set to 0? I also want to be able control the values of a and b, so the band can be changed dynamically.
while georg is right with pointing at specialized libraries (an IEMtab is coming too), such simple operations can also be achieved with plain pd: think of combining [tabwrite] and [until] (and some knowledge of counters...)
mfg.as.dr IOhannes