[PD] What's the easiest way to cut various symbols to a fixed length?

Dan Wilcox danomatika at gmail.com
Wed Nov 13 10:02:03 CET 2019


I have vanilla implementations of s2l and l2s, if needed: https://github.com/danomatika/rc-patches <https://github.com/danomatika/rc-patches>

File paths with spaces work fine as long as you merge them into a single symbol. I simply use l2s for this.

> On Nov 13, 2019, at 9:56 AM, pd-list-request at lists.iem.at wrote:
> 
> From: "Ingo" <ingo at miamiwave.com <mailto:ingo at miamiwave.com>>
> To: "'Winfried Ritsch'" <ritsch at iem.at <mailto:ritsch at iem.at>>,	<pd-list at lists.iem.at <mailto:pd-list at lists.iem.at>>
> Subject: Re: [PD] What's the easiest way to cut various symbols to a
> 	fixed length?
> Message-ID: <000c01d599fd$63e44ea0$2bacebe0$@miamiwave.com <mailto:000c01d599fd$63e44ea0$2bacebe0$@miamiwave.com>>
> 
> First of all thank you, Winfried and Tim!
> 
> I ended up picking Tim's version with [list fromsymbol], [list split] and 
> [list tosymbol] because it needs less objects.
> Works perfectly!
> 
> However, I had to add a [iemlib/mergefilename _] to eliminate blank spaces in 
> some names.
> In order to change the names to work with [mergefilename] and [ list 
> fromsymbol] I had to convert a few times with [s2l] and [l2s].
> The underscores are converted to spaces again right before going to the LCD 
> display.
> 
> Ingo

--------
Dan Wilcox
@danomatika <http://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20191113/27ea6e97/attachment-0001.html>


More information about the Pd-list mailing list