Hi list,
trying to work on phase angles of spectra I am looking for an easy example with actual Pd objects how to convert a [rfft~] output from real and imaginary to magnitudes and phases, eventually unwrap phases if required, and then convert magnitudes and phases back to a cartesian for [rifft~].
I know about the Dudas/Lippe pvoc tutorials for MaxMSP but can not find much in Pd's documentation. Perhaps I am missing something?
Thanks for any pointers! best, Peter
My Live Electronics tutorial deals with that see https://github.com/porres/Live-Electronics-Tutorial/tree/master/Examples/Par...
as for including rhis in the help file, not really sure...
cheers
Em sex., 26 de mai. de 2023 às 09:12, Peter P. peterparker@fastmail.com escreveu:
Hi list,
trying to work on phase angles of spectra I am looking for an easy example with actual Pd objects how to convert a [rfft~] output from real and imaginary to magnitudes and phases, eventually unwrap phases if required, and then convert magnitudes and phases back to a cartesian for [rifft~].
I know about the Dudas/Lippe pvoc tutorials for MaxMSP but can not find much in Pd's documentation. Perhaps I am missing something?
Thanks for any pointers! best, Peter
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
oh, and else has [pol2car~] and [car2pol~], which are simple vanilla abstractions
Em seg., 29 de mai. de 2023 às 02:34, Alexandre Torres Porres < porres@gmail.com> escreveu:
My Live Electronics tutorial deals with that see https://github.com/porres/Live-Electronics-Tutorial/tree/master/Examples/Par...
as for including rhis in the help file, not really sure...
cheers
Em sex., 26 de mai. de 2023 às 09:12, Peter P. peterparker@fastmail.com escreveu:
Hi list,
trying to work on phase angles of spectra I am looking for an easy example with actual Pd objects how to convert a [rfft~] output from real and imaginary to magnitudes and phases, eventually unwrap phases if required, and then convert magnitudes and phases back to a cartesian for [rifft~].
I know about the Dudas/Lippe pvoc tutorials for MaxMSP but can not find much in Pd's documentation. Perhaps I am missing something?
Thanks for any pointers! best, Peter
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Dear list,
I am still trying to calculate (unwrapped) phases from cartesian complex numbers output by [rfft~] and got pointed to cyclone's [atan~] and [phasewrap~]. I am wondering Is there a way to achieve the same with vanilla pd objects?
Thanks! Peter
Hi list,
trying to work on phase angles of spectra I am looking for an easy example with actual Pd objects how to convert a [rfft~] output from real and imaginary to magnitudes and phases, eventually unwrap phases if required, and then convert magnitudes and phases back to a cartesian for [rifft~].
I know about the Dudas/Lippe pvoc tutorials for MaxMSP but can not find much in Pd's documentation. Perhaps I am missing something?
Thanks for any pointers! best, Peter
hello,
expr~ is in vanilla!
so [expr atan2($f1, $f2)] should work.
cheers
Le 01/06/2023 à 09:55, Peter P. a écrit :
Dear list,
I am still trying to calculate (unwrapped) phases from cartesian complex numbers output by [rfft~] and got pointed to cyclone's [atan~] and [phasewrap~]. I am wondering Is there a way to achieve the same with vanilla pd objects?
Thanks! Peter
- Peter P. peterparker@fastmail.com [2023-05-26 14:10]:
Hi list,
trying to work on phase angles of spectra I am looking for an easy example with actual Pd objects how to convert a [rfft~] output from real and imaginary to magnitudes and phases, eventually unwrap phases if required, and then convert magnitudes and phases back to a cartesian for [rifft~].
I know about the Dudas/Lippe pvoc tutorials for MaxMSP but can not find much in Pd's documentation. Perhaps I am missing something?
Thanks for any pointers! best, Peter
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
hello,
expr~ is in vanilla!
so [expr atan2($f1, $f2)] should work.
Thanks Cyrille, that's a good hint! I think it should in fact be [expr~ atan2($v2, $v1)] to work with signal vectors blockwise.
Now I am wondering if I should/need to unwrap the phases still...
cheersz, P
Em qui., 1 de jun. de 2023 às 06:49, Peter P. peterparker@fastmail.com escreveu:
Thanks Cyrille, that's a good hint! I think it should in fact be [expr~ atan2($v2, $v1)] to work with signal vectors blockwise.
yup, and that's what [else/car2pol~] does, which I had referred to before as a vanilla solution.
Now I am wondering if I should/need to unwrap the phases still...
depends on what you're doing and how you are converting things back to cartesian form (else/pol2car~ is vanilla and doesn't need wrapping). you could use wrap~ and just convert to the range from 0-1 in the input and then resize back on the output.
cheers
cheersz, P
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list