[PD] [shell] creates line breaks randomly in big lists.

Andy Farnell padawan12 at obiwannabe.co.uk
Mon Nov 3 17:21:11 CET 2008



man stty

Each call to [shell] opens a new tty

It could be an issue that's a combination of column sizes
and EOL characters.

Because of buffering problems [shell] can be an unreliable
tool. If you can use pdlua or pyext to write a listing external
you will have more control and more consistent results.






On Mon, 03 Nov 2008 16:59:54 +0100
Martin Schied <crinimal at gmx.net> wrote:

> Hello, dear list!
> 
> 
> I'm using Ubuntu 8.04, Pd version 0.40.3-extended, pentium M 1600MHz, 
> currently trying to build a file handling patch using [shell] and a 
> message to it: [ls mypath/*.jpg(
> 
> everything works fine with 20 or less files in the folder. In folders 
> containing approximately 200 files, some of the resulting lines become 
> divided by line breaks, for example:
> 
> print: Szenografie3/manufactum/ausgewaehlt/6608.jpg
> print: Szenografie3/manufactum/ausgewaehlt/6610.jpg
> print: Szenografie3/manufactu
> print: m/ausgewaehlt/6611.jpg
> print: Szenografie3/manufactum/ausgewaehlt/6614.jpg
> print: Szenografie3/manufactum/ausgewaehlt/6615.jpg
> 
> the cut appears at different positions and different filenames when 
> sending the message again. In some cases a filename is distributed on 3 
> lines.
> 
> Is there any way to detect those line breaks within pd? Any objects for 
> string manipulations or regular expressions?
> 
> Thanks,
> Martin
> 
> 
> 


-- 
Use the source




More information about the Pd-list mailing list