<div dir="ltr"><div><div>[readsf~] outputs a bang out its right outlet when the current sample it's playing has finished. You can send that bang to [random] (the argument of which will be the number of your samples) and the output of [random] to a message [open ./samples/P$1.wav, 1(<br></div>I don't think that you can use 01, 02, etc., but 1, 2, etc. If you really want to name your samples like that, your message could be [open ./samples/P0$1.wav, 1(, but any sample greater than 9 would have to be named P010.wav. There should be a work around that though.<br></div>In this example there's a directory called "samples" in the directory of the patch.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 12, 2016 at 5:31 PM, Pagano, Patrick <span dir="ltr"><<a href="mailto:pat@digitalworlds.ufl.edu" target="_blank">pat@digitalworlds.ufl.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>​you need a folder playlist object attached to a file player <br>
</p>
<p>i suggest the browser/folder from the MTL abstractions and the player~ external from Eric lyon Potpourri<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div>
<div style="font-family:Tahoma;font-size:13px">
<div><font size="3"><i>Patrick Pagano B.S, M.F.A</i></font></div>
<div>Audio and Projection Design Faculty</div>
<div>Digital Worlds Institute</div>
<div>University of Florida, USA</div>
<div><a href="tel:%28352%29294-2020" value="+13522942020" target="_blank">(352)294-2020</a></div>
</div>
</div>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Pd-list <<a href="mailto:pd-list-bounces@mail.iem.at" target="_blank">pd-list-bounces@mail.iem.at</a>> on behalf of Spyros Polychronopoulos <<a href="mailto:spypolymail@gmail.com" target="_blank">spypolymail@gmail.com</a>><br>
<b>Sent:</b> Thursday, February 11, 2016 6:50 PM<br>
<b>To:</b> <a href="mailto:pd-list@mail.iem.at" target="_blank">pd-list@mail.iem.at</a><br>
<b>Subject:</b> [PD] loading random samples</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">
<div>
<div>Hi list,<br>
<br>
</div>
I have a question if you could enlighten me:<br>
<br>
I would like to make a patch that loads randomly a sample from a folder (if I can make it open randomly any file begging with P01 ie. P01*.wav) and when the sample ends loads automatically another sample randomly (ie. P02*.wav).<br>
<br>
</div>
thank you in advance<br>
<div>
<div>
<div>-- <br>
<div>
<div dir="ltr">Spyros Polychronopoulos
<div>Music Composer / BSc / PhD<br>
<div><a href="http://www.spyweirdos.com" target="_blank">www.spyweirdos.com</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>

<br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>