I'm working on an application where I want to take a snapshot of the results of [fft~] every once in a while and send them out using OSC. The part I'm having trouble with is getting the output from [fft~]. In the help file for [fft~] they use [print~] to print out the vector coming from the [fft~] object.
I think I know how to manipulate the list once I have it, so that part isn't a problem. I just want something that I can [bang( every once in a while to get the vector. Any ideas, or places I should be looking?
andy
Andrew Turley wrote:
I'm working on an application where I want to take a snapshot of the results of [fft~] every once in a while and send them out using OSC. The part I'm having trouble with is getting the output from [fft~]. In the help file for [fft~] they use [print~] to print out the vector coming from the [fft~] object.
I think I know how to manipulate the list once I have it, so that part isn't a problem. I just want something that I can [bang( every once in a while to get the vector. Any ideas, or places I should be looking?
i guess [tabwrite~] is you friend here.
there are several ways to dump a table to get the list.
fgmasdr IOhannes
hope this ascii graphic stuff works. ....
[bang~] | | [r spigotswitch] | / [spigot] | [t b b] | | | [; | spigotswitch 0( | [tabwrite~ mytable]
[table mytable 256]
just make sure your table is big enough to fit the whole FFT vector. and send a 1 to the spigotswitch to write the table.
then, as iohannes said, there are a few different ways to get tables into lists.
hard off wrote:
hope this ascii graphic stuff works. ....
[bang~] | | [r spigotswitch] | / [spigot] | [t b b] | | | [; | spigotswitch 0( | [tabwrite~ mytable]
[table mytable 256]
hmm, i would have done it like:
[bang( | [tabwrite~ mytable]
[table mytable 256]
this way you don't need a global send/receive :-)
fgsadmr IOhannes
Thanks guys, this is making more sense to me, I think.
andy
On Wed, Nov 19, 2008 at 10:05 AM, IOhannes m zmoelnig zmoelnig@iem.at wrote:
hard off wrote:
hope this ascii graphic stuff works. ....
[bang~] | | [r spigotswitch] | / [spigot] | [t b b] | | | [; | spigotswitch 0( | [tabwrite~ mytable]
[table mytable 256]
hmm, i would have done it like:
[bang( | [tabwrite~ mytable]
[table mytable 256]
this way you don't need a global send/receive :-)
fgsadmr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list