Re: [PD] Vanilla method for symbol -> float

2019-10-12 Thread Henri Augusto Bisognini
Worth noting that this solution only works if the numerator and denumerator are 
single-digit.


De: Pd-list  em nome de Alexandre Torres Porres 

Enviado: sábado, 12 de outubro de 2019 16:26
Para: Ingo Stock 
Cc: Pd-List 
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 
mailto:m...@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<mailto:Pd-list@lists.iem.at> mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
___
Pd-list@lists.iem.at<mailto: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] Vanilla method for symbol -> float

2019-10-12 Thread Alexandre Torres Porres
that's a clever one :)

Em sáb, 12 de out de 2019 às 03:30, Ingo Stock  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
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Vanilla method for symbol -> float

2019-10-12 Thread Henri Augusto Bisognini
> 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?

For your fractions example you can do it with 
easyflow. Screenshot:

[cid:43d28b41-702d-43d8-92f7-f1bcb2c08949]

Cheers,
Henri.


De: Pd-list  em nome de João Pais 

Enviado: sábado, 12 de outubro de 2019 04:01
Para: PD-List 
Assunto: [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
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Vanilla method for symbol -> float

2019-10-12 Thread cyrille henry

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




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


Re: [PD] Vanilla method for symbol -> float

2019-10-12 Thread Antoine Rousseau
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  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
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Vanilla method for symbol -> float

2019-10-12 Thread Ingo Stock
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
#N canvas 645 326 192 245 10;
#X obj 40 40 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X symbolatom 40 60 10 0 0 0 - - -;
#X obj 40 82 list fromsymbol;
#X obj 40 128 - 48;
#X obj 109 128 - 48;
#X obj 40 151 /;
#X obj 40 105 unpack f f f;
#X obj 40 174 print;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 6 0;
#X connect 3 0 5 0;
#X connect 4 0 5 1;
#X connect 5 0 7 0;
#X connect 6 0 3 0;
#X connect 6 2 4 0;


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


Re: [PD] Vanilla method for symbol -> float

2019-10-12 Thread Christof Ressi
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" 
> An: PD-List 
> 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
>



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