[PD] specifying time

Jonathan Wilkes jancsika at yahoo.com
Wed Feb 15 20:44:57 CET 2012


----- Original Message -----

> From: IOhannes m zmoelnig <zmoelnig at iem.at>
> To: pd-list at iem.at
> Cc: 
> Sent: Wednesday, February 15, 2012 2:09 PM
> Subject: Re: [PD] specifying time
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 2012-02-15 19:49, Andy Farnell wrote:
>>  Yes, blocks and samples would be great too.
>> 
>>  The advantage of having a symbol qualifier in a message 
>>  as opposed to creation arguments of the object is that 
>>  [line~] etc could respond to mixed messages with different units.
>> 
> 
> i think (iirc max correctly), miller meant an additional argument to the
> message rather than an additional creation argument to the object.

Right, that's how I understood it, too.

> 
> e.g. [0, 1 12 s( could ramp in 12secs, wherease [1, 0 12 d( would take
> considerably longer.
> 
> this is way easier to parse and i believe more foolproof than making an
> automagic parser that would make [12h(->[f]->[print] output 
> "4.32e+07"
> rather than an error, which it really was because i accidentally hit 
> "h"
> when trying to type 12.

What if I accidentally hit " h", or "1337"?

Also, it's way easier to parse because you're comparing apples to oranges.
If you only want the ability to specify one unit at a time then it's trivial to parse 12s.

Automagic also means "you don't have to code a solution for every single class, including 
externals, that uses floats to mean milliseconds."

-Jonathan

> 
> fgmasr
> IOhannes
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAk88AwEACgkQkX2Xpv6ydvTlTwCg8s7sfi17IerT1IY1oEVgE+24
> AysAoNoVxigeyxl9X5k5hpBztlDrm7um
> =lDhe
> -----END PGP SIGNATURE-----
> 
> 
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list
> 



More information about the Pd-list mailing list