<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Change array dynamically in tabread~]]></title><description><![CDATA[<p>Hi,</p>
<p>I am relatively new to Pureadata and it looks like the issue is rather trivial.<br />
I load several samples in array at starting time. I would like to play the array with tabread or tabread4 upon receiving a message indicating which sample should be played. To that intent, I need to send a ¨set¨ message to tabread.<br />
I have not managed to build the set message so far. The operation consists in concatenating set and the sample name. I have tried with pack, list, prepend but so far to no avail.<br />
Incidentally, what I am trying to achieve (loading samples and playing them on demand) should be a common operation. I have not managed to find a proper reference for this. The closest were:<br />
<a href="http://skovar.com/journal/pure-data-auto-loading-samples/" rel="nofollow">http://skovar.com/journal/pure-data-auto-loading-samples/</a><br />
<a href="http://www.gamasutra.com/view/feature/131258/audio_prototyping_with_pure_data.php?print=1" rel="nofollow">http://www.gamasutra.com/view/feature/131258/audio_prototyping_with_pure_data.php?print=1</a><br />
The latter is fairly close to what I am looking for but it seems to be using pd-extended function. I need to work in pd-vanilla. Any relevant pointer ?<br />
Best<br />
Trad</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10126/change-array-dynamically-in-tabread</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Mar 2026 08:53:19 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/10126.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Jun 2016 11:09:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Change array dynamically in tabread~ on Sat, 04 Jun 2016 11:09:25 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>I am relatively new to Pureadata and it looks like the issue is rather trivial.<br />
I load several samples in array at starting time. I would like to play the array with tabread or tabread4 upon receiving a message indicating which sample should be played. To that intent, I need to send a ¨set¨ message to tabread.<br />
I have not managed to build the set message so far. The operation consists in concatenating set and the sample name. I have tried with pack, list, prepend but so far to no avail.<br />
Incidentally, what I am trying to achieve (loading samples and playing them on demand) should be a common operation. I have not managed to find a proper reference for this. The closest were:<br />
<a href="http://skovar.com/journal/pure-data-auto-loading-samples/" rel="nofollow">http://skovar.com/journal/pure-data-auto-loading-samples/</a><br />
<a href="http://www.gamasutra.com/view/feature/131258/audio_prototyping_with_pure_data.php?print=1" rel="nofollow">http://www.gamasutra.com/view/feature/131258/audio_prototyping_with_pure_data.php?print=1</a><br />
The latter is fairly close to what I am looking for but it seems to be using pd-extended function. I need to work in pd-vanilla. Any relevant pointer ?<br />
Best<br />
Trad</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10126/change-array-dynamically-in-tabread</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10126/change-array-dynamically-in-tabread</guid><dc:creator><![CDATA[Trad]]></dc:creator><pubDate>Sat, 04 Jun 2016 11:09:25 GMT</pubDate></item><item><title><![CDATA[Reply to Change array dynamically in tabread~ on Sat, 04 Jun 2016 12:01:23 GMT]]></title><description><![CDATA[<p>Hi Trad, welcome to this forum,</p>
<p>You can try something like this: <img src="/uploads/files/1465041675100-screenshot-from-2016-06-04-14-00-41.png" alt="Screenshot from 2016-06-04 14:00:41.png" class="img-responsive img-markdown" /></p>
<p>Hope this helps. Cheers,<br />
Gilberto</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10126/change-array-dynamically-in-tabread/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10126/change-array-dynamically-in-tabread/2</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Sat, 04 Jun 2016 12:01:23 GMT</pubDate></item><item><title><![CDATA[Reply to Change array dynamically in tabread~ on Sat, 04 Jun 2016 14:08:41 GMT]]></title><description><![CDATA[<p>Gilberto,<br />
Thanks. It did work. But I realise that in order to minimise the impact on my existing patch,<br />
I would be better off to remove the ¨set¨ in [set nameSample(.<br />
There is obviously something I cannot wrap my head around with symbol, messages and lists. I cannot achieve this.<br />
I would appreciate greatly if you would be able to lend an hand yet again.<br />
Thanks.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10126/change-array-dynamically-in-tabread/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10126/change-array-dynamically-in-tabread/3</guid><dc:creator><![CDATA[Trad]]></dc:creator><pubDate>Sat, 04 Jun 2016 14:08:41 GMT</pubDate></item><item><title><![CDATA[Reply to Change array dynamically in tabread~ on Sat, 04 Jun 2016 14:25:38 GMT]]></title><description><![CDATA[<p>[unpack s s] and tacking the second argument did the trick. Sorry.<br />
Obviously still in the middle of the learning curve.<br />
Best</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10126/change-array-dynamically-in-tabread/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10126/change-array-dynamically-in-tabread/4</guid><dc:creator><![CDATA[Trad]]></dc:creator><pubDate>Sat, 04 Jun 2016 14:25:38 GMT</pubDate></item><item><title><![CDATA[Reply to Change array dynamically in tabread~ on Sat, 04 Jun 2016 14:31:40 GMT]]></title><description><![CDATA[<p>just some tips:</p>
<p>You can keep samples stored in your patch if you want.</p>
<p>If you change which array is being read from in the middle of actually playing the sample, You'd need to read from two separate tables and crossfade between them to make sure the audio doesn't crack.</p>
<p>Pd has semi-explicit typing.  In the image, list trim is required to remove the &quot;list&quot; type and make the $1-arrrayX message of &quot;set&quot; type.  Or at least thats how I think of it.</p>
<p><img src="/uploads/files/1465050690298-screen-shot-2016-06-04-at-9.26.15-am.png" alt="Screen Shot 2016-06-04 at 9.26.15 AM.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10126/change-array-dynamically-in-tabread/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10126/change-array-dynamically-in-tabread/5</guid><dc:creator><![CDATA[Monetus]]></dc:creator><pubDate>Sat, 04 Jun 2016 14:31:40 GMT</pubDate></item></channel></rss>