<?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[Saving the path of a sample]]></title><description><![CDATA[<p>hi everybody,</p>
<p>i'm currently working on a groovebox-like beat tool and i'm struggeling with the whole save thing.<br />
does pd provide any object or message to save / load a path of a .wav file, so that i can link all my samples in a preset?<br />
it also would be nice to pack everything in one preset file together with my other tables etc. which also should be saved..</p>
<p>thanks in advance</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Nov 2026 23:58:27 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/5789.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Dec 2011 13:33:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Saving the path of a sample on Mon, 12 Dec 2011 13:33:32 GMT]]></title><description><![CDATA[<p>hi everybody,</p>
<p>i'm currently working on a groovebox-like beat tool and i'm struggeling with the whole save thing.<br />
does pd provide any object or message to save / load a path of a .wav file, so that i can link all my samples in a preset?<br />
it also would be nice to pack everything in one preset file together with my other tables etc. which also should be saved..</p>
<p>thanks in advance</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample</guid><dc:creator><![CDATA[gerritschuster]]></dc:creator><pubDate>Mon, 12 Dec 2011 13:33:32 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Mon, 12 Dec 2011 19:59:21 GMT]]></title><description><![CDATA[<p>For more complex state-saving like you're talking about, I wrote these abstractions to help simplify it:</p>
<p><a href="http://puredata.hurleur.com/sujet-5664-state-saving-abstractions" rel="nofollow">http://puredata.hurleur.com/sujet-5664-state-saving-abstractions</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/2</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Mon, 12 Dec 2011 19:59:21 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Tue, 13 Dec 2011 02:09:25 GMT]]></title><description><![CDATA[<p>as for the path thing, [splitfilename] will split your filename into a path and filename, so maybe that's useful?</p>
<p>i don't think there is a way to do that in vanilla PD.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/3</guid><dc:creator><![CDATA[mod]]></dc:creator><pubDate>Tue, 13 Dec 2011 02:09:25 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Tue, 13 Dec 2011 10:17:21 GMT]]></title><description><![CDATA[<p>thx mealstorm! this looks very useful.</p>
<p>do the save.mmb and the corresponding my.hero objects have to be in the same patch / subpatch or is there any workaround?</p>
<p>and is it possible to save path information &quot;/samples/kick.wav&quot; with the save.mmb object?</p>
<p>thx for the help</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/4</guid><dc:creator><![CDATA[gerritschuster]]></dc:creator><pubDate>Tue, 13 Dec 2011 10:17:21 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Tue, 13 Dec 2011 18:19:41 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/gerritschuster">@gerritschuster</a> said:</p>
<blockquote>
<p>thx mealstorm! this looks very useful.</p>
<p>do the save.mmb and the corresponding my.hero objects have to be in the same patch / subpatch or is there any workaround?</p>
</blockquote>
<p>As long as they have the same ID, they'll all talk to each other.</p>
<blockquote>
<p>and is it possible to save path information &quot;/samples/kick.wav&quot; with the save.mmb object?</p>
</blockquote>
<p>Yes, just send the full path to [save.me.mmb]. You just have to remember to convert it back to a symbol, since Pd seems to forget.</p>
<p>In fact, if you're saving to file and then opening it, Pd will probably parse out the spaces in the path (if there are any) and call it a list or an anything. In that case, you might want to use [list2symbol] to convert it.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/5</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Tue, 13 Dec 2011 18:19:41 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Tue, 13 Dec 2011 20:37:21 GMT]]></title><description><![CDATA[<p>thx a lot, the path thing works fine.<br />
but putting the save.mmb objects in seperate patches doesn't work although they have the same ID..</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/6</guid><dc:creator><![CDATA[gerritschuster]]></dc:creator><pubDate>Tue, 13 Dec 2011 20:37:21 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Tue, 13 Dec 2011 22:01:01 GMT]]></title><description><![CDATA[<p>They should. The ID is what it uses for the [send]s and [receive]s. You're not using $0 as the ID, are you? Because that will give a different value for each patch, and so they're not actually matching IDs.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/7</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Tue, 13 Dec 2011 22:01:01 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Tue, 13 Dec 2011 22:06:14 GMT]]></title><description><![CDATA[<p>To be honest, though, I wouldn't consider it good practice to be saving presets of multiple patches in one file, because then you lose the usefulness of $0. You'll run into problems if you have multiple instances of the same patch. It's a bit more complicated, but you'd probably be better off wrapping the patches up as abstractions and using a method like the one in [pd abstractions] in the [my.hero.mmb] helpfile.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/8</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Tue, 13 Dec 2011 22:06:14 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Wed, 14 Dec 2011 01:00:46 GMT]]></title><description><![CDATA[<p>ah ok - i tried it like in the abstractions-helpfile (but with a saved textfile). the output in the file looks good so far but with the given save/load-patch in your examples, it doesn't seem to load from the textfile.<br />
do i have to modify the routine (from the help patch) to load the data?<br />
sorry for the many questions but this saving stuff is freaking me out</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/9</guid><dc:creator><![CDATA[gerritschuster]]></dc:creator><pubDate>Wed, 14 Dec 2011 01:00:46 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Wed, 14 Dec 2011 01:30:23 GMT]]></title><description><![CDATA[<p>Post an example patch so I can get a better idea of what's not working.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/10</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Wed, 14 Dec 2011 01:30:23 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Wed, 14 Dec 2011 08:13:22 GMT]]></title><description><![CDATA[<p>save_settings.pd -&gt; save routine from your helpfile (with my instsaver abstraction).<br />
instsaver.pd -&gt; receives sample-relevant parameters i would like write in a textfile</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/save_settings.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/save_settings.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/11</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/11</guid><dc:creator><![CDATA[gerritschuster]]></dc:creator><pubDate>Wed, 14 Dec 2011 08:13:22 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Wed, 14 Dec 2011 08:13:22 GMT]]></title><description><![CDATA[<p>save_settings.pd -&gt; save routine from your helpfile (with my instsaver abstraction).<br />
instsaver.pd -&gt; receives sample-relevant parameters i would like write in a textfile</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/save_settings.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/save_settings.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/12</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/12</guid><dc:creator><![CDATA[gerritschuster]]></dc:creator><pubDate>Wed, 14 Dec 2011 08:13:22 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Wed, 14 Dec 2011 18:50:03 GMT]]></title><description><![CDATA[<p>Okay, I see. So let me explain a bit about how this approach works, because I'm realizing now it may not be entirely clear. When you use these abstractions to make a &quot;dump&quot; method in an abstraction, what happens is each parameter gets sent out with its [save.me.mmb] name and value. Now, when you collect all of those parameters in a single [save.me.mmb] outside of the abstraction, the name and value pairs are all stored. When they get loaded, they get spit out, again in name and value pairs. You need to [route] those pairs in the abstraction to wherever they need to go. Right now, you have the [route], but it's not doing anything.</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/instsaver.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/instsaver.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/13</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/13</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Wed, 14 Dec 2011 18:50:03 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Thu, 15 Dec 2011 13:07:09 GMT]]></title><description><![CDATA[<p>oh my, this one is quite obvious. thanks again for the help..<br />
one last thing would be the saving in relative paths (the file symbols), so i can use my presets on different computers / os. openpanel alsways puts out the absolute path, even when i switched to the patche's dir where my samples are in.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/14</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/14</guid><dc:creator><![CDATA[gerritschuster]]></dc:creator><pubDate>Thu, 15 Dec 2011 13:07:09 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Thu, 15 Dec 2011 20:31:59 GMT]]></title><description><![CDATA[<p>Assuming the samples are all in the same folder (let's call it &quot;samples&quot;), and that folder is in the same folder the main patch is in (which is the best way to do it if you are passing the patch around), then the simplest way would be to use [declare] to add the samples folder to the path when the patch loads:</p>
<p>[declare -path samples]</p>
<p>Put that in your main patch. You might have to save and reload the patch for it to take effect.</p>
<p>Then, when you call up the sample using [openpanel], you can use [splitfilename] to get the file name only. You won't need to keep the path, because Pd will look for it in the samples folder when you load the file into [soundfiler] or whatever.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/15</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/15</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Thu, 15 Dec 2011 20:31:59 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Fri, 16 Dec 2011 11:17:22 GMT]]></title><description><![CDATA[<p>usually i have some subfolders like samples/kicks, snares etc. but if it's the only way i could get used to it.</p>
<p>i stumbled upon a new saving issue - in my patch there are 2 tables which need to be saved in the same preset file together with all the other parameters etc. i tried to add the routine like in the attached patch -&gt; error msg output (addcomma) and the table gets saved and loaded. the other parameters also appear in the preset file but don't get loaded.. any idea?</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/save_settings.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/save_settings.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/16</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/16</guid><dc:creator><![CDATA[gerritschuster]]></dc:creator><pubDate>Fri, 16 Dec 2011 11:17:22 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Fri, 16 Dec 2011 12:38:03 GMT]]></title><description><![CDATA[<p>forget about the previous post, i found the bug..</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/17</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/17</guid><dc:creator><![CDATA[gerritschuster]]></dc:creator><pubDate>Fri, 16 Dec 2011 12:38:03 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Fri, 16 Dec 2011 20:48:01 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/gerritschuster">@gerritschuster</a> said:</p>
<blockquote>
<p>usually i have some subfolders like samples/kicks, snares etc. but if it's the only way i could get used to it.</p>
</blockquote>
<p>It's not the only way, it's just one way. Keep in mind you can add multiple [declare]s, so you can have [declare -path samples/kicks], [declare -path samples/snares], etc.</p>
<p>You can also do some list processing to try and keep the &quot;samples/kicks&quot; part if you want:</p>
<p>[openpanel]<br />
|<br />
[symbol2list]<br />
|<br />
[t l l]<br />
| \<br />
|</p>
<p>| \<br />
| [- 3]<br />
| \<br />
|<br />
[list2symbol]</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/18</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/18</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Fri, 16 Dec 2011 20:48:01 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Fri, 16 Dec 2011 20:55:36 GMT]]></title><description><![CDATA[<p>Actually, check out this patch I just put together. It will give you a relative path if the path given is contained in the same folder as the patch. Otherwise, it will give an absolute path.</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/relativepath.mmb.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/relativepath.mmb.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/19</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/19</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Fri, 16 Dec 2011 20:55:36 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Sun, 18 Dec 2011 18:43:30 GMT]]></title><description><![CDATA[<p>boom! that's what I needed.. I just shared my little project in the patches section - have a look and tell me what you think.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/20</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/20</guid><dc:creator><![CDATA[gerritschuster]]></dc:creator><pubDate>Sun, 18 Dec 2011 18:43:30 GMT</pubDate></item><item><title><![CDATA[Reply to Saving the path of a sample on Wed, 08 Nov 2023 01:16:23 GMT]]></title><description><![CDATA[<p>A version of relative path for Vanilla (no need for externals):</p>
<p><a href="/uploads/files/1699406177377-relativepath.vanilla2.mmb.pd">relativepath.vanilla2.mmb.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/21</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5789/saving-the-path-of-a-sample/21</guid><dc:creator><![CDATA[ludnny]]></dc:creator><pubDate>Wed, 08 Nov 2023 01:16:23 GMT</pubDate></item></channel></rss>