<?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[Storing symbols in table-like index]]></title><description><![CDATA[<p>Hello. I'm trying to create a sample-player that plays random files from within the folder of the patch.</p>
<p>Right now it's composed of a [random] object sending out values between, say, 0 and 10 to a [select] object that then routes the bang to a message containing the specific filename, which is sent to an [open $1.wav] message for [readsf~], which is then read. No problem, it works just fine.<br />
But as the patch grows and the number of samples I want to use increases, I want to be able to swap out filenames faster and with more ease, and typing in the individual filenames of each file quickly becomes a hassle. A workaround I did was to simply re-name the local samples to the values 0 through 10, so that I could skip the use of the [select]-object altogether, but having to re-name samples every time I want to use it in the patch is likewise a hassle.</p>
<p>Is there a way to create an index of symbols (for filenames) that can be used in a similar fashion to [table] and [tabread]? Input a number, it spits out the information sitting in the relevant index. Would [list] be a way to achieve this? I haven't worked too much with the object, but from what I gathered, it didn't seem to be the best choice. But please do enlighten me if I'm wrong.</p>
<p>I'm using Pd-extended for what it's worth.</p>
<p>Thank you.<br />
M.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10576/storing-symbols-in-table-like-index</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 01:45:55 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/10576.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Feb 2017 20:09:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Storing symbols in table-like index on Mon, 13 Feb 2017 20:09:24 GMT]]></title><description><![CDATA[<p>Hello. I'm trying to create a sample-player that plays random files from within the folder of the patch.</p>
<p>Right now it's composed of a [random] object sending out values between, say, 0 and 10 to a [select] object that then routes the bang to a message containing the specific filename, which is sent to an [open $1.wav] message for [readsf~], which is then read. No problem, it works just fine.<br />
But as the patch grows and the number of samples I want to use increases, I want to be able to swap out filenames faster and with more ease, and typing in the individual filenames of each file quickly becomes a hassle. A workaround I did was to simply re-name the local samples to the values 0 through 10, so that I could skip the use of the [select]-object altogether, but having to re-name samples every time I want to use it in the patch is likewise a hassle.</p>
<p>Is there a way to create an index of symbols (for filenames) that can be used in a similar fashion to [table] and [tabread]? Input a number, it spits out the information sitting in the relevant index. Would [list] be a way to achieve this? I haven't worked too much with the object, but from what I gathered, it didn't seem to be the best choice. But please do enlighten me if I'm wrong.</p>
<p>I'm using Pd-extended for what it's worth.</p>
<p>Thank you.<br />
M.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10576/storing-symbols-in-table-like-index</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10576/storing-symbols-in-table-like-index</guid><dc:creator><![CDATA[Hasselbalch]]></dc:creator><pubDate>Mon, 13 Feb 2017 20:09:24 GMT</pubDate></item><item><title><![CDATA[Reply to Storing symbols in table-like index on Mon, 13 Feb 2017 20:36:20 GMT]]></title><description><![CDATA[<p>Hi there,<br />
if you're using pd extended then I think you could have a text file in the patch folder with the names of the samples on each line and then use [msgfile] to address the text file.</p>
<p>Hope this helps.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10576/storing-symbols-in-table-like-index/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10576/storing-symbols-in-table-like-index/2</guid><dc:creator><![CDATA[weightless]]></dc:creator><pubDate>Mon, 13 Feb 2017 20:36:20 GMT</pubDate></item><item><title><![CDATA[Reply to Storing symbols in table-like index on Mon, 13 Feb 2017 21:04:23 GMT]]></title><description><![CDATA[<p>I got it to work with [msgfile] after some fiddling. I found the helpfile on the object a bit confusing. But was able to send the number to [msgfile] via a [goto $1] message, which - annoyingly - doesn't output anything by itself before a bang is received. A simple use of [trigger] to direct the flow of bangs sorted it out.</p>
<p>Using a simple textfile to address the filenames doesn't seem to get any more convenient. Thank you, weightless.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10576/storing-symbols-in-table-like-index/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10576/storing-symbols-in-table-like-index/3</guid><dc:creator><![CDATA[Hasselbalch]]></dc:creator><pubDate>Mon, 13 Feb 2017 21:04:23 GMT</pubDate></item><item><title><![CDATA[Reply to Storing symbols in table-like index on Mon, 13 Feb 2017 21:06:07 GMT]]></title><description><![CDATA[<p>I got it to work like this:</p>
<p><img src="/uploads/files/1487019937915-screen-shot-2017-02-13-at-22.05.20.png" alt="Screen Shot 2017-02-13 at 22.05.20.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10576/storing-symbols-in-table-like-index/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10576/storing-symbols-in-table-like-index/4</guid><dc:creator><![CDATA[weightless]]></dc:creator><pubDate>Mon, 13 Feb 2017 21:06:07 GMT</pubDate></item><item><title><![CDATA[Reply to Storing symbols in table-like index on Mon, 13 Feb 2017 21:07:25 GMT]]></title><description><![CDATA[<p>Oh, the [this]-message outputs the symbol? That's great.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10576/storing-symbols-in-table-like-index/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10576/storing-symbols-in-table-like-index/5</guid><dc:creator><![CDATA[Hasselbalch]]></dc:creator><pubDate>Mon, 13 Feb 2017 21:07:25 GMT</pubDate></item><item><title><![CDATA[Reply to Storing symbols in table-like index on Mon, 13 Feb 2017 21:10:59 GMT]]></title><description><![CDATA[<p>yes, the 'goto' message brings you to a specific line in the text file, then the 'this' message outputs the content of that line. You can do other operations on the text file with [msgfile], which is why I think when you go to a specific line, it doesn't output its content straight away because that mightn't be what you want to do all of the times.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10576/storing-symbols-in-table-like-index/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10576/storing-symbols-in-table-like-index/6</guid><dc:creator><![CDATA[weightless]]></dc:creator><pubDate>Mon, 13 Feb 2017 21:10:59 GMT</pubDate></item><item><title><![CDATA[Reply to Storing symbols in table-like index on Mon, 13 Feb 2017 21:12:25 GMT]]></title><description><![CDATA[<p>Sure, that's understandable. Thank you very much, that's just what I needed.<br />
M.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10576/storing-symbols-in-table-like-index/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10576/storing-symbols-in-table-like-index/7</guid><dc:creator><![CDATA[Hasselbalch]]></dc:creator><pubDate>Mon, 13 Feb 2017 21:12:25 GMT</pubDate></item><item><title><![CDATA[Reply to Storing symbols in table-like index on Mon, 13 Feb 2017 21:13:02 GMT]]></title><description><![CDATA[<p>You're welcome, I'm glad to help out.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10576/storing-symbols-in-table-like-index/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10576/storing-symbols-in-table-like-index/8</guid><dc:creator><![CDATA[weightless]]></dc:creator><pubDate>Mon, 13 Feb 2017 21:13:02 GMT</pubDate></item></channel></rss>