[PD] asterisk message soundfiler

Norbert Math n at alien.mur.at
Thu Jul 15 13:01:47 CEST 2004


try this.

the patch looks for files 1.wav, 2.wav ... 6.wav
in folder /tmp and plays one of them when [bang] is hit.

hth
norbert


#N canvas 256 13 452 488 12;
#X obj 31 380 readsf~ 2;
#X msg 31 293 open \$1 1;
#X obj 31 110 random 6;
#X obj 31 147 int;
#X obj 31 175 + 1;
#X obj 149 293 del 200;
#X obj 31 201 t f b;
#X msg 149 319 1;
#X obj 31 43 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X floatatom 106 75 5 0 0 0 - - -;
#X obj 32 427 dac~;
#X text 161 77 how many sounfdfiles;
#X obj 31 251 makefilename /tmp/%d.wav;
#X text 113 169 put soundfiles into folder /tmp;
#X text 114 190 name them 1.wav \, 2.wav ... 6.wav;
#X text 52 41 bang to start playback;
#X connect 0 0 10 0;
#X connect 0 1 10 1;
#X connect 1 0 0 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 6 0;
#X connect 5 0 7 0;
#X connect 6 0 12 0;
#X connect 6 1 5 0;
#X connect 7 0 0 0;
#X connect 8 0 2 0;
#X connect 9 0 2 1;
#X connect 12 0 1 0;





> From: =?iso-8859-1?q?laura=20smith?= <lllaaauuurrraaa2001 at yahoo.es>
> Subject: Re: [PD] asterisk message soundfiler
> To: aym3ric <stm-sq at bleu255.com>, pd-list at iem.at
>
> > have a look at the makefilename object in
> > combination with simple
> > messages like [read -resize $1<
>
>
> yes, but how do i tell [makefilename] that i want a
> random file, without really specifying its name? is
> that possible? more like the asterisk use in paths etc
> thanks
> l
>
>




More information about the Pd-list mailing list