Hi list,
I am using William Brent's [cepstrum~] to calculate cepstral coefficients from a section of an audio signal. My object outputs 512 the real-valued coefficients as pd message list, which I would like to convert to their absolute value. I can't seem to find an easy way to do this except for possibly sending the list to an array and using tabread to serialize, calculate the absolute value for every element and send it back to another array, then requesting it as a list again. Has anyone got a better idea?
thank you! P
[list-abs/list-abs] ? ++
Jack
Le 16/02/2018 à 14:43, Peter P. a écrit :
Hi list,
I am using William Brent's [cepstrum~] to calculate cepstral coefficients from a section of an audio signal. My object outputs 512 the real-valued coefficients as pd message list, which I would like to convert to their absolute value. I can't seem to find an easy way to do this except for possibly sending the list to an array and using tabread to serialize, calculate the absolute value for every element and send it back to another array, then requesting it as a list again. Has anyone got a better idea?
thank you! P
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Hello, You can use iem_tab. copy the list to 2 array tab_min 1st arry with 0 tab_mul_scalar it with -1 tab_max 0 the 2nd array tab_add both array
cheer c
Le 16/02/2018 à 14:43, Peter P. a écrit :
Hi list,
I am using William Brent's [cepstrum~] to calculate cepstral coefficients from a section of an audio signal. My object outputs 512 the real-valued coefficients as pd message list, which I would like to convert to their absolute value. I can't seem to find an easy way to do this except for possibly sending the list to an array and using tabread to serialize, calculate the absolute value for every element and send it back to another array, then requesting it as a list again. Has anyone got a better idea?
thank you! P
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Hi Peter,
On 16/02/18 13:43, Peter P. wrote:
I am using William Brent's [cepstrum~] to calculate cepstral coefficients from a section of an audio signal. My object outputs 512 the real-valued coefficients as pd message list, which I would like to convert to their absolute value. I can't seem to find an easy way to do this except for possibly sending the list to an array and using tabread to serialize, calculate the absolute value for every element and send it back to another array, then requesting it as a list again. Has anyone got a better idea?
you could put it in a table of size 512, then trigger dsp in a switch~d off subpatch with blocksize 512:
"0, bang" | [switch~ 512]
[tabreceive~] | [abs~] | [tabsend~]
Order of execution means you can use the same table at both ends.
Then copy the table to a list ([array get] ? Not sure of the best way these days).
If the list were longer or not a power of two you could use [tabplay~] and [tabwrite~], with multiple bangs to the [switch~] if necessary.
Hi, personally I'd use a generic foreach abstraction like the one I attached.
Note: since Pd 0.48 we have [list store] which finally makes iterating over lists and assembling lists from elements much easier (and faster)!
Gesendet: Freitag, 16. Februar 2018 um 14:43 Uhr Von: "Peter P." peterparker@fastmail.com An: pd-list pd-list@iem.at Betreff: [PD] absolute values of a list of numbers?
Hi list,
I am using William Brent's [cepstrum~] to calculate cepstral coefficients from a section of an audio signal. My object outputs 512 the real-valued coefficients as pd message list, which I would like to convert to their absolute value. I can't seem to find an easy way to do this except for possibly sending the list to an array and using tabread to serialize, calculate the absolute value for every element and send it back to another array, then requesting it as a list again. Has anyone got a better idea?
thank you! P
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
On 02/16/2018 02:43 PM, Peter P. wrote:
Hi list,
I am using William Brent's [cepstrum~] to calculate cepstral coefficients from a section of an audio signal. My object outputs 512 the real-valued coefficients as pd message list, which I would like to convert to their absolute value. I can't seem to find an easy way to do this except for possibly sending the list to an array and using tabread
the [list] help has example implementations of a serializer and an accumulator.
gfadsmf IOhannes
Hello,
I have a [range $1 1( message instead of [get $1 1( message in [pd example3] in the 'list *' help. It is with Pd version 0.48.1-test3. Do you have same message in this help file or i make a mistake ? ++
Jack
Le 16/02/2018 à 16:29, IOhannes m zmölnig a écrit :
On 02/16/2018 02:43 PM, Peter P. wrote:
Hi list,
I am using William Brent's [cepstrum~] to calculate cepstral coefficients from a section of an audio signal. My object outputs 512 the real-valued coefficients as pd message list, which I would like to convert to their absolute value. I can't seem to find an easy way to do this except for possibly sending the list to an array and using tabread
the [list] help has example implementations of a serializer and an accumulator.
gfadsmf IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
this is a bug and the example actually causes an infinite loop. the [range( message has been renamed to [get( during development but apparently the help file hasn't been updated accordingly.
Gesendet: Freitag, 16. Februar 2018 um 19:08 Uhr Von: Jack jack@rybn.org An: pd-list@lists.iem.at Betreff: [PD] list serializer was Re: absolute values of a list of numbers?
Hello,
I have a [range $1 1( message instead of [get $1 1( message in [pd example3] in the 'list *' help. It is with Pd version 0.48.1-test3. Do you have same message in this help file or i make a mistake ? ++
Jack
Le 16/02/2018 à 16:29, IOhannes m zmölnig a écrit :
On 02/16/2018 02:43 PM, Peter P. wrote:
Hi list,
I am using William Brent's [cepstrum~] to calculate cepstral coefficients from a section of an audio signal. My object outputs 512 the real-valued coefficients as pd message list, which I would like to convert to their absolute value. I can't seem to find an easy way to do this except for possibly sending the list to an array and using tabread
the [list] help has example implementations of a serializer and an accumulator.
gfadsmf IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
If you're already using timbreID, you could put the list in a table and use [tabletool]'s "abs" method to do this without iterating.
On Feb 16, 2018 10:31 AM, "IOhannes m zmölnig" zmoelnig@iem.at wrote:
On 02/16/2018 02:43 PM, Peter P. wrote:
Hi list,
I am using William Brent's [cepstrum~] to calculate cepstral coefficients from a section of an audio signal. My object outputs 512 the real-valued coefficients as pd message list, which I would like to convert to their absolute value. I can't seem to find an easy way to do this except for possibly sending the list to an array and using tabread
the [list] help has example implementations of a serializer and an accumulator.
gfadsmf IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list
Jack, Cyrille, Claude, Roman, Christof, IOhannes, William, thank you all for the inspiring ideas! I went with list-abs for now.
cheers, P
If you're already using timbreID, you could put the list in a table and use [tabletool]'s "abs" method to do this without iterating.
On Feb 16, 2018 10:31 AM, "IOhannes m zmölnig" zmoelnig@iem.at wrote:
On 02/16/2018 02:43 PM, Peter P. wrote:
Hi list,
I am using William Brent's [cepstrum~] to calculate cepstral coefficients from a section of an audio signal. My object outputs 512 the real-valued coefficients as pd message list, which I would like to convert to their absolute value. I can't seem to find an easy way to do this except for possibly sending the list to an array and using tabread
the [list] help has example implementations of a serializer and an accumulator.
gfadsmf IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
...or you could use [listtool] (https://github.com/dmedine/list_externs) which I made back in the CRCA days because I wanted to be as cool as William :)
On 02/17/2018 01:02 PM, William Brent wrote:
If you're already using timbreID, you could put the list in a table and use [tabletool]'s "abs" method to do this without iterating.
On Feb 16, 2018 10:31 AM, "IOhannes m zmölnig" <zmoelnig@iem.at mailto:zmoelnig@iem.at> wrote:
On 02/16/2018 02:43 PM, Peter P. wrote: > Hi list, > > I am using William Brent's [cepstrum~] to calculate cepstral > coefficients from a section of an audio signal. My object outputs 512 > the real-valued coefficients as pd message list, which I would like to > convert to their absolute value. I can't seem to find an easy way to do > this except for possibly sending the list to an array and using tabread the [list] help has example implementations of a serializer and an accumulator. gfadsmf IOhannes _______________________________________________ Pd-list@lists.iem.at <mailto:Pd-list@lists.iem.at> mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list <https://lists.puredata.info/listinfo/pd-list>
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list