hi all
I'd like to make filenames like that:
file-00001 file-00002 ... file-00702 file-00703
instead of:
file-1 file-2 ... file-702 file-703
any idea how to achieve that?
thanks
eni
Hi Eni,
the object makefilename with the appropriate printf format:
makefilename file-%05d.aiff
with inputs integers will do precisely that. It's all in the C!
cheers,
tim
On Apr 6, 2006, at 11:49 AM, Enrique Erne wrote:
hi all
I'd like to make filenames like that:
file-00001 file-00002 ... file-00702 file-00703
instead of:
file-1 file-2 ... file-702 file-703
any idea how to achieve that?
thanks
eni
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
----- Tim Boykett TIME'S UP::Research Department \ / Industriezeile 33b A-4020 Linz Austria X +43-732-787804(ph) +43-732-7878043(fx) / \ tim@timesup.org http://www.timesup.org
Hallo, Enrique Erne hat gesagt: // Enrique Erne wrote:
I'd like to make filenames like that:
file-00001 file-00002
any idea how to achieve that?
Yes: [makefilename file-%05d]
makefilename can use several of the formatting rules as explained in the sprintf(3) manual, online e.g. here: http://ccrma.stanford.edu/planetccrma/man/man3/sprintf.3.html
Frank Barknecht _ ______footils.org_ __goto10.org__
thanks!
On Apr 6, 2006, at 12:36 PM, Frank Barknecht wrote:
Hallo, Enrique Erne hat gesagt: // Enrique Erne wrote:
I'd like to make filenames like that:
file-00001 file-00002
any idea how to achieve that?
Yes: [makefilename file-%05d]
makefilename can use several of the formatting rules as explained in the sprintf(3) manual, online e.g. here: http://ccrma.stanford.edu/planetccrma/man/man3/sprintf.3.html
Ciao
Frank Barknecht _ ______footils.org_ __goto10.org__
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
even easier is to make them the other way round: 0001-file 0002-file..etc
just:
[number] (a number box or float) | [symbol $1-file< (message box)
"hard off" hard.off@gmail.com wrote:
even easier is to make them the other way round: 0001-file 0002-file..etc
just:
[number] (a number box or float) | [symbol $1-file< (message box)
the result then would be '1-file' '2-file' '99-file'. the advantage of the pattern 'filename-<number>' is the order by filenames, not by numbers in the filebrowser.
roman
Roman Haefeli wrote:
"hard off" hard.off@gmail.com wrote:
even easier is to make them the other way round: 0001-file 0002-file..etc
just:
[number] (a number box or float) | [symbol $1-file< (message box)
the result then would be '1-file' '2-file' '99-file'. the advantage of the pattern 'filename-<number>' is the order by filenames, not by numbers in the filebrowser.
the usual workaround to deal with it is by using bigger numbers, like 1000-1999 instead of 0-999.
mfg.a.sdr IOhannes
Roman Haefeli wrote:
"hard off" hard.off@gmail.com wrote:
even easier is to make them the other way round: 0001-file 0002-file..etc
just:
[number] (a number box or float) | [symbol $1-file< (message box)
the result then would be '1-file' '2-file' '99-file'. the advantage of the pattern 'filename-<number>' is the order by filenames, not by numbers in the filebrowser.
the usual workaround to deal with this is by using bigger numbers, like 1000-1999 instead of 0-999.
mfg.a.sdr IOhannes