Hello list,
I have a problem with [sel], in a patch the matched value doesn't behave
as expected. In case anyone can have a look, here is a patch with all the
details.
Thanks,
Joao
hello,
it look like rounding error. the rejected 91 is not really 91, but 90.999999 or similar. using a [i] object, it is converted to 90.
cheers c
Le 22/03/2016 09:41, João Pais a écrit :
Hello list,
I have a problem with [sel], in a patch the matched value doesn't behave as expected. In case anyone can have a look, here is a patch with all the details.
Thanks,
Joao
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
You might also find that using individual math objects to solve the arithmetic rather than expr corrects the rounding error.
To: pd-list@lists.iem.at From: ch@chnry.net Date: Tue, 22 Mar 2016 10:01:43 +0100 Subject: Re: [PD] [sel] problem - matched value doesn't bang
hello,
it look like rounding error. the rejected 91 is not really 91, but 90.999999 or similar. using a [i] object, it is converted to 90.
cheers c
Le 22/03/2016 09:41, João Pais a écrit :
Hello list,
I have a problem with [sel], in a patch the matched value doesn't behave as expected. In case anyone can have a look, here is a patch with all the details.
Thanks,
Joao
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hello,
it look like rounding error. the rejected 91 is not really 91, but
90.999999 or similar. using a [i] object, it is converted to 90.
that would be one solution. the problem is that in other moments there
will be floats there. what is the best way to avoid these errors? (had
read about them, but never happened to me before)
Le 22/03/2016 19:26, João Pais a écrit :
hello,
it look like rounding error. the rejected 91 is not really 91, but 90.999999 or similar. using a [i] object, it is converted to 90.
that would be one solution. the problem is that in other moments there will be floats there. what is the best way to avoid these errors? (had read about them, but never happened to me before)
[* 100] [+ 0.5] [i]
to match float using 2 digit precision (use 100 time the value in the sel object)
cheers c
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hello,
it look like rounding error. the rejected 91 is not really 91, but 90.999999 or similar. using a [i] object, it is converted to 90.
that would be one solution. the problem is that in other moments there will be floats there. what is the best way to avoid these errors? (had read about them, but never happened to me before)
[* 100] [+ 0.5] [i]
to match float using 2 digit precision (use 100 time the value in the sel object)
cheers c
Of course, [* 100][+ 0.5][i][/100] between [trigger] and [sel] works ok.
Mensaje telepatico asistido por maquinas.
Strange! it worked for me, picture attached.
Mensaje telepatico asistido por maquinas.
To: pd-list@lists.iem.at; lucarda27@hotmail.com Subject: Re: [PD] [sel] problem - matched value doesn't bang Date: Wed, 23 Mar 2016 00:17:01 +0100 From: jmmmpais@gmail.com
[* 100][+ 0.5][i][/100] actually that one didn't work, I followed Cyrille's suggestion and multiplied the [sel] value also with 100. It's fixed now, everything works as it should. Best, Joao
maybe I did something slightly different the other time. anyway, it's
doing great now.
Strange!
it worked for me, picture attached.
Mensaje telepatico asistido por maquinas.
To: pd-list@lists.iem.at; lucarda27@hotmail.com Subject: Re: [PD] [sel] problem - matched value doesn't bang Date: Wed, 23 Mar 2016 00:17:01 +0100 From: jmmmpais@gmail.com
[* 100] [+ 0.5] [i] [/100]
actually that one didn't work, I followed Cyrille's suggestion and
multiplied the [sel] value also with 100. It's fixed now, >everything
works as it should.Best,
Joao