<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>[savepanel] should default to whatever directory the the patch you opened</div><div>is in.</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">-Jonathan</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b>
 Billy Stiltner &lt;billy.stiltner@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Ivica Ico Bukvic &lt;ico@vt.edu&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> Jonathan Wilkes &lt;jancsika@yahoo.com&gt;; flad chester &lt;flad.chester@gmail.com&gt;; pd-list@iem.at <br> <b><span style="font-weight: bold;">Sent:</span></b> Sunday, September 30, 2012 10:23 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [PD] Preset system in pd?<br> </font> </div> <br>due to the nature of my polysynth patch I can make [polysynth a]&nbsp;  and<br> [polysynth b]&nbsp; and have them both load a seperate preset.<br>I haven't added specifying the preset filename to the creation or to<br>the message structure yet but that is doable, you just have to hit the<br>load preset button. currently things like tuning and lfo filenames are<br>not saved with the preset because with pd vanilla i see no way to<br>browse for a textfile in
 say lfo/pulsar/ to get pulsar1.txt and have<br>the openpanel return that path it more than likeley will return<br>/users/home/billy/dev/polysynth/lfo/pulsar/pulsar1.txt&nbsp; and if that<br>value is saved&nbsp; then when Johnathon gets the preset Johnathon's synth<br>doesn't load the pulsar1.txt<br><br><br>On Sun, Sep 30, 2012 at 9:42 PM, Ivica Ico Bukvic &lt;<a ymailto="mailto:ico@vt.edu" href="mailto:ico@vt.edu">ico@vt.edu</a>&gt; wrote:<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; From: <a ymailto="mailto:pd-list-bounces@iem.at" href="mailto:pd-list-bounces@iem.at">pd-list-bounces@iem.at</a> [mailto:<a ymailto="mailto:pd-list-bounces@iem.at" href="mailto:pd-list-bounces@iem.at">pd-list-bounces@iem.at</a>] On Behalf Of<br>&gt; Jonathan Wilkes<br>&gt; Sent: Sunday, September 30, 2012 8:46 PM<br>&gt; To: flad chester; <a ymailto="mailto:pd-list@iem.at" href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>&gt; Subject: Re: [PD] Preset system in
 pd?<br>&gt;<br>&gt;<br>&gt;<br>&gt; Pd-l2ork now has [preset_hub]/[preset_node] for which I'm currently writing<br>&gt; help files.&nbsp; But I don't think it lets you interpolate between values.<br>&gt;<br>&gt; -Jonathan<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; To add to this, preset_node and hub are AFAIK the only preset system on pd<br>&gt; that allow for use in conjunction with multiple instances of the same<br>&gt; abstraction (e.g. you want to use two abstractions of same type and have<br>&gt; presets in them that are controlled in the parent patch above them). For an<br>&gt; example, see pd-l2ork K12 module (invoke pd-l2ork with –k12 flag). They also<br>&gt; offer communication between nodes and hub allowing each of the nodes to send<br>&gt; requests to the hub (e.g. any paired node can send a request to the hub to<br>&gt; store and/or recall presets which can lead to some very cool possibilities).<br>&gt; It is in many
 ways synonymous to pattrstorage in Max, so its contents are<br>&gt; saved as part of the patch, rather than having to save them in a separate<br>&gt; file. Finally, pairing nodes with a hub is simple and does not require any<br>&gt; $0 workarounds. Simply have a [preset_hub foo], and as soon as you add<br>&gt; [preset_node foo] it will automatically pair with the hub provided hub is<br>&gt; positioned hierarchically higher than the node (e.g. in the same canvas or<br>&gt; any of its parent canvases, it does not have to be before preset_node in the<br>&gt; glist if it is located in the same canvas). Other features include, ability<br>&gt; to compensate for infinite undo/redo (pd-l2ork) feature, cut/paste, to<br>&gt; front/back (pd-l2ork feature), and other actions that tend to alter glist<br>&gt; ordering. As a matter of fact, pd-l2ork always preserves glist structure<br>&gt; wherever possible (including infinite undo/redo actions), and since<br>&gt;
 preset_hub saves all presets as part of its creation arguments, undo/redo<br>&gt; also recreate all saved presets. Preset_hub/node also support every data<br>&gt; format except for pointers (for obvious reasons).<br>&gt;<br>&gt;<br>&gt;<br>&gt; That said, Jonathan is right, the preset_hub and node do not interpolate,<br>&gt; but with some [line] love, this can be easily added to the patch with<br>&gt; arguably better granularity control.<br>&gt;<br>&gt;<br>&gt;<br>&gt; Cheers!<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; <a ymailto="mailto:Pd-list@iem.at" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>&gt; UNSUBSCRIBE and account-management -&gt;<br>&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>&gt;<br><br><br> </div> </div> </blockquote></div>   </div></body></html>