hi all i've [1(, [2( and [3( message when i hit 3 times [1(, i would like to have 111 resulting when i hit 2 times [1(, i would like to have 11 resulting when i hit [2( [2( [3(, i woul like to have 223 resulting
but i don't succeed. has anybody got i idea please
nicolas
On Tue, Mar 15, 2005 at 03:50:21PM +0100, nicob wrote:
hi all i've [1(, [2( and [3( message when i hit 3 times [1(, i would like to have 111 resulting when i hit 2 times [1(, i would like to have 11 resulting when i hit [2( [2( [3(, i woul like to have 223 resulting
please tell me theres a simpler way to do this than the attached patch (which requires zexy..)
but i don't succeed. has anybody got i idea please
nicolas
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
just out of curiosity after /doc/'s example patch: how many digits can handle a message in pd? r
On Tue, 15 Mar 2005, roc wrote:
just out of curiosity after /doc/'s example patch: how many digits can handle a message in pd?
a float atom can handle 24 significant bits (that's about 7 decimals). After that, it starts dropping the least significant digits, so that 16777217 is the first natural number that can't be a pd-float.
However when converting floats to text and back (for example in saving/loading patches) it's only 6 decimals: 1000001 is the first natural number that won't be _written_ exactly by pd.
It's difficult to get extra precision in PureData. Those who really need it can pick a language supported by PureData and write externals for that... Using Ruby or Scheme you can easily get thousands or even millions of digits.
If you're sticking to PureData you will have to chop that into manageable chunks: for example, 1 or 3 or 6 decimals per float, in a list of floats representing different parts of the number (gaaaah).
BTW, I have the impression that this should go in the FAQ. I sense déjà-vu and if I go in my mail archives I'll prolly find myself having retyped the same ideas many times... (some copies of it may have been on the pd-dev mailing-list though)
Mathieu Bouchard -=- Montréal QC Canada -=- http://artengine.ca/matju
You don't need the whole patch, just a subpatch within it. I just don't have the time to rewrite it for you. If you don't have Zexy I would really recommend getting it, it's almost a standard, and is extraordinarily useful to boot.
If you really need to avoid using any external for some reason, maybe you could kludge something out of spigots and a [pack f f f], but it ain't gon' be purty.
The more I think about it, prepend and lister are going to be the easiest way to do this. You're using them in a cross connection like the basic counter in control examples to build a dynamic list.
-I
/doc/ wrote:
On Tue, Mar 15, 2005 at 03:50:21PM +0100, nicob wrote:
hi all i've [1(, [2( and [3( message when i hit 3 times [1(, i would like to have 111 resulting when i hit 2 times [1(, i would like to have 11 resulting when i hit [2( [2( [3(, i woul like to have 223 resulting
please tell me theres a simpler way to do this than the attached patch (which requires zexy..)
but i don't succeed. has anybody got i idea please
nicolas
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
On Tue, 15 Mar 2005, nicob wrote:
hi all i've [1(, [2( and [3( message when i hit 3 times [1(, i would like to have 111 resulting when i hit 2 times [1(, i would like to have 11 resulting when i hit [2( [2( [3(, i woul like to have 223 resulting
see attachment (digits.pd)
Mathieu Bouchard -=- Montréal QC Canada -=- http://artengine.ca/matju
you're absolutely right that's it, simple as 1 2 3 = 123
thanks Le 15 mars 05, à 18:30, Mathieu Bouchard a écrit :
On Tue, 15 Mar 2005, nicob wrote:
hi all i've [1(, [2( and [3( message when i hit 3 times [1(, i would like to have 111 resulting when i hit 2 times [1(, i would like to have 11 resulting when i hit [2( [2( [3(, i woul like to have 223 resulting
see attachment (digits.pd)
Mathieu Bouchard -=- Montréal QC Canada -=- http://artengine.ca/matju <digits.pd>
Use prepend and/or lister from iemlib/zexy respectively. Or you could look at the attached patch which does something similar. Under [pd guts]->[pd random_list] is a patch that in part creates dynamincally sized lists, which you could alter to your purposes.
I've also heard say that gridflow and other libraries have some useful list kludges.
Hope that helps -Ian
nicob wrote:
hi all i've [1(, [2( and [3( message when i hit 3 times [1(, i would like to have 111 resulting when i hit 2 times [1(, i would like to have 11 resulting when i hit [2( [2( [3(, i woul like to have 223 resulting
but i don't succeed. has anybody got i idea please
nicolas
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
in fact the problem is space beetween number, thank you for your exemple. i finally use awfull combination between [gem_counter] and [gate] but it works.... thanks nico Le 15 mars 05, à 19:07, Ian Smith-Heisters a écrit :
Use prepend and/or lister from iemlib/zexy respectively. Or you could look at the attached patch which does something similar. Under [pd guts]->[pd random_list] is a patch that in part creates dynamincally sized lists, which you could alter to your purposes.
I've also heard say that gridflow and other libraries have some useful list kludges.
Hope that helps -Ian
nicob wrote:
hi all i've [1(, [2( and [3( message when i hit 3 times [1(, i would like to have 111 resulting when i hit 2 times [1(, i would like to have 11 resulting when i hit [2( [2( [3(, i woul like to have 223 resulting but i don't succeed. has anybody got i idea please nicolas _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list