hello
usding [rfft~] how do I retreive all values from a rfft one by one, and from these values, do some operation ?
like an unpack but for the fft result ?
[rfft~]
|
[unpack]
| . . . . . \
[do_a] [do_b] .... [do_z]
thanks
how to iterate over rfft ?
hello
usding [rfft~] how do I retreive all values from a rfft one by one, and from these values, do some operation ?
like an unpack but for the fft result ?
[rfft~]
|
[unpack]
| . . . . . \
[do_a] [do_b] .... [do_z]
thanks
@phil123456 Hi, the [rfft~] help file uses [print~] to get the values from the object.
Depends if you want to work in the audio or the control domain. If you want to work in the audio domain the output is ready to be used. If you want to work in the control domain you can use [tabsend~] and then retrieve the values from the array you'll write to.
@weightless printing in this case is rather useless
@phil123456 Pd has two kinds of "data": one is referred to as the signal domain (aka, audio), and the other is referred to as the control domain (aka, numbers and symbols).
Objects that work in the signal domain have a ~ at the end of the name and they process the signal flow in blocks (chunks) of samples at the time (the default block size is 64).
It depends what you want to do with the output of [rfft~], which works in the signal domain. If you want to process its output in the signal domain, you just stick whatever object you need after it and it will process the output of [rfft~] in realtime, sample by sample in chunks of 64, otherwise you need to convert its output to the control domain, aka numbers. Since you said that you needed something like unpack, [print~] or [snapshot~] will give convert the output of a signal object into the control domain.
I'll try to use [tabread] and [until]
thanks
[print~] is probably no good since it just prints signal blocks to Pd's console. How will you retrieve these values then?
You can use [tabsend~] and then something like [array get] to get all the values in a list, or as you said, [until] with [tabread]. This way you'll have the [rfft~] output in the control domain.
Oops! Looks like something went wrong!