Hi list,
I was trying something without succes, and couldn't find any documentation for it as well.
I wanted to split the symbol 2/4 to separate the numbers on both sides of the / . No problem using [list fromsymbol] and [list tosymbol] in doing that. But, afterwards I can't find a way of turning the symbol back to a float, except using an external. Is there any special hack somewhere for this?
Best,
JOao
hello,
you can use [fudiparse] better than [list tosymbol] to convert it directlly to a number. cheers c
Le 12/10/2019 à 09:01, João Pais a écrit :
Hi list,
I was trying something without succes, and couldn't find any documentation for it as well.
I wanted to split the symbol 2/4 to separate the numbers on both sides of the / . No problem using [list fromsymbol] and [list tosymbol] in doing that. But, afterwards I can't find a way of turning the symbol back to a float, except using an external. Is there any special hack somewhere for this?
Best,
JOao
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Hi, since Pd 0.48 the [float] object takes symbol messages and converts them to floats (if possible).
Christof
Gesendet: Samstag, 12. Oktober 2019 um 09:01 Uhr Von: "João Pais" jmmmpais@gmail.com An: PD-List pd-list@lists.iem.at Betreff: [PD] Vanilla method for symbol -> float
Hi list,
I was trying something without succes, and couldn't find any documentation for it as well.
I wanted to split the symbol 2/4 to separate the numbers on both sides of the / . No problem using [list fromsymbol] and [list tosymbol] in doing that. But, afterwards I can't find a way of turning the symbol back to a float, except using an external. Is there any special hack somewhere for this?
Best,
JOao
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Like this?
On 12.10.19 09:01, João Pais wrote:
Hi list,
I was trying something without succes, and couldn't find any documentation for it as well.
I wanted to split the symbol 2/4 to separate the numbers on both sides of the / . No problem using [list fromsymbol] and [list tosymbol] in doing that. But, afterwards I can't find a way of turning the symbol back to a float, except using an external. Is there any special hack somewhere for this?
Best,
JOao
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
that's a clever one :)
Em sáb, 12 de out de 2019 às 03:30, Ingo Stock mail@ingostock.de escreveu:
Like this?
On 12.10.19 09:01, João Pais wrote:
Hi list,
I was trying something without succes, and couldn't find any documentation for it as well.
I wanted to split the symbol 2/4 to separate the numbers on both sides of the / . No problem using [list fromsymbol] and [list tosymbol] in doing that. But, afterwards I can't find a way of turning the symbol back to a float, except using an external. Is there any special hack somewhere for this?
Best,
JOao
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
Worth noting that this solution only works if the numerator and denumerator are single-digit.
De: Pd-list pd-list-bounces@lists.iem.at em nome de Alexandre Torres Porres porres@gmail.com Enviado: sábado, 12 de outubro de 2019 16:26 Para: Ingo Stock mail@ingostock.de Cc: Pd-List pd-list@lists.iem.at Assunto: Re: [PD] Vanilla method for symbol -> float
that's a clever one :)
Em sáb, 12 de out de 2019 às 03:30, Ingo Stock <mail@ingostock.demailto:mail@ingostock.de> escreveu: Like this?
On 12.10.19 09:01, João Pais wrote:
Hi list,
I was trying something without succes, and couldn't find any documentation for it as well.
I wanted to split the symbol 2/4 to separate the numbers on both sides of the / . No problem using [list fromsymbol] and [list tosymbol] in doing that. But, afterwards I can't find a way of turning the symbol back to a float, except using an external. Is there any special hack somewhere for this?
Best,
JOao
Pd-list@lists.iem.atmailto:Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.atmailto:Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Hi Joao,
you can now use a simple [f] to convert a symbol to float, e.g:
[5( | [symbol 3.$1( // generate "3.5" symbol | [f] | [print]
prints 3.5 (i.e a float)
But the most powerful related tool is [fudiparse]:
[51 46 53( // list of chars '3' '.' '5' | [fudiparse] | [print]
also prints the float 3.5.
Le sam. 12 oct. 2019 à 09:01, João Pais jmmmpais@gmail.com a écrit :
Hi list,
I was trying something without succes, and couldn't find any documentation for it as well.
I wanted to split the symbol 2/4 to separate the numbers on both sides of the / . No problem using [list fromsymbol] and [list tosymbol] in doing that. But, afterwards I can't find a way of turning the symbol back to a float, except using an external. Is there any special hack somewhere for this?
Best,
JOao
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list