Hi Miller,

On Tue, Aug 02, 2011 at 09:35:14PM -0700, Miller Puckette wrote:
> Nope... there needs to be a string-to-binary-list-and-back function somewhere
> but I can't figure out what to name it :)

Would you consider adding a more generally useful [split] object to Pd for this 
type of thing? Something like this is present in Perl, Python, Javascript, etc. 
It has two inlets and one argument. The right inlet and argument both specify 
the character or sequence of characters (symbol) to split the incoming symbol 
on. The left inlet accepts a symbol and the single outlet outputs a list, which 
is the symbol that came in, split into a list of atoms using the specified 
character or symbol as a divider.

> On Wed, Aug 03, 2011 at 01:26:21AM -0300, Alexandre Torres Porres wrote:
> > now, some files come in ratios as one symbol like this
> > 
> > 5/4
> > 3/2
> > 7/4

Here you would use [split /] and filter those atoms like "5/4" through to get 
lists like "5 4".

This would make a whole bunch of behaviour possible in Pd that is currently 
only possible with externals.

Hm, I should just contribute a patch.

Cheers,

Chris.


-------------------
http://mccormick.cx

_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to