[PD] Creating random filenames

James Dunn james at 4thharmonic.com
Sun Dec 29 13:43:14 CET 2013


Quoth Ronni Montoya, on 29/12/2013 12:17:
> Hi, how can i create random file names in pd?
>
> I need to have a recording button in my patch that everytimes records
> an audio file in a different ( random ) file name.
>
> For example, each time i record something it should create random .wav
> file names:
>
> kasdsd.wav
> lifasik.wav
> kjaskld.wav         ............  etc
>
>
> any idea how to achieve this?
>
>
How about something like this? It uses [l2s] from zexy in Pd-extended.

James
-------------- next part --------------
#N canvas 638 191 450 300 10;
#X obj 45 83 random 26;
#X obj 45 123 makefilename %c;
#X obj 45 103 + 97;
#X obj 45 63 until;
#X msg 26 10 6;
#X obj 47 156 list;
#X obj 102 156 t l;
#X obj 26 180 list;
#X obj 26 252 makefilename %s.wav;
#X obj 26 230 l2s;
#X msg 65 200 symbol;
#X obj 65 180 loadbang;
#X symbolatom 26 273 10 0 0 0 - - -;
#X obj 26 33 t b f b;
#X connect 0 0 2 0;
#X connect 1 0 5 0;
#X connect 2 0 1 0;
#X connect 3 0 0 0;
#X connect 4 0 13 0;
#X connect 5 0 6 0;
#X connect 5 0 7 1;
#X connect 6 0 5 1;
#X connect 7 0 9 0;
#X connect 8 0 12 0;
#X connect 9 0 8 0;
#X connect 10 0 9 1;
#X connect 11 0 10 0;
#X connect 13 0 7 0;
#X connect 13 1 3 0;
#X connect 13 2 5 1;


More information about the Pd-list mailing list