Re: [PD] example needed: rfft~ into magnitudes AND phases AND back

2023-06-03 Thread Alexandre Torres Porres
Em qui., 1 de jun. de 2023 às 06:49, Peter P. 
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
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] example needed: rfft~ into magnitudes AND phases AND back

2023-06-01 Thread Peter P.
* cyrille henry  [2023-06-01 11:00]:
> 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



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] example needed: rfft~ into magnitudes AND phases AND back

2023-06-01 Thread cyrille henry

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.  [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




___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] example needed: rfft~ into magnitudes AND phases AND back

2023-06-01 Thread Peter P.
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.  [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


Re: [PD] example needed: rfft~ into magnitudes AND phases AND back

2023-05-28 Thread Alexandre Torres Porres
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 <
por...@gmail.com> escreveu:

> My Live Electronics tutorial deals with that see
> https://github.com/porres/Live-Electronics-Tutorial/tree/master/Examples/Part.08-FFT.%26.Complex.Signals/31-FFT-IFFT/1.Introduction
>
> as for including rhis in the help file, not really sure...
>
> cheers
>
> Em sex., 26 de mai. de 2023 às 09:12, Peter P. 
> 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
>>
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] example needed: rfft~ into magnitudes AND phases AND back

2023-05-28 Thread Alexandre Torres Porres
My Live Electronics tutorial deals with that see
https://github.com/porres/Live-Electronics-Tutorial/tree/master/Examples/Part.08-FFT.%26.Complex.Signals/31-FFT-IFFT/1.Introduction

as for including rhis in the help file, not really sure...

cheers

Em sex., 26 de mai. de 2023 às 09:12, Peter P. 
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
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] example needed: rfft~ into magnitudes AND phases AND back

2023-05-26 Thread Peter P.
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