<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div><span>But it also precedes the search-plugin.<br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>-Jonathan<br></span></div><div style="display: block;" class="yahoo_quoted"> <br> <br> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div
 dir="ltr"> <font face="Arial" size="2"> On Tuesday, March 4, 2014 3:59 PM, Ivica Bukvic &lt;ico@vt.edu&gt; wrote:<br> </font> </div>  <div class="y_msg_container"><div id="yiv3156650986"><div><div dir="ltr">Except that in this case patch_name precedes&nbsp; canvasinfo...</div>
<div class="yiv3156650986yqt6970297160" id="yiv3156650986yqtfd95675"><div class="yiv3156650986gmail_quote">On Mar 4, 2014 3:01 PM, "Jonathan Wilkes" &lt;<a href="" rel="nofollow" shape="rect" ymailto="mailto:jancsika@yahoo.com" target="_blank">jancsika@yahoo.com</a>&gt; wrote:<br clear="none"><blockquote class="yiv3156650986gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

  
    
  
  <div>
    <div>On 03/04/2014 01:15 PM, Ivica Bukvic
      wrote:<br clear="none">
    </div>
    <blockquote type="cite">
      <div dir="ltr">...and [patch_name] external (again pd-l2ork only)
        that outputs the filepath out of the left outlet and the patch
        filename out of the right outlet.</div>
    </blockquote>
    <br clear="none">
    There's also<br clear="none">
    <br clear="none">
    [patchname $1(<br clear="none">
    |<br clear="none">
    [duplicate_effort]<br clear="none">
    <br clear="none">
    Just fill $1 with the name of the object you want to create, and
    [duplicate_effort] will automatically compile another class with
    that name and with the functionality you want.<br clear="none">
    <br clear="none">
    Currently [duplicate_effort] supports the following methods:<br clear="none">
    <br clear="none">
    patchname<br clear="none">
    dollarargs<br clear="none">
    abs~<br clear="none">
    pow~<br clear="none">
    bandlimited_grabbag<br clear="none">
    arraysize<br clear="none">
    mousecoords<br clear="none">
    count<br clear="none">
    string<br clear="none">
    duplicate_effort<br clear="none">
    <br clear="none">
    Each class created is guaranteed to be unique so you can use it to
    create private keys.&nbsp; You can also give it an extra float argument
    to specify help patch quality.&nbsp; (All values default to zero.)<br clear="none">
    <br clear="none">
    To download a copy, start a repo in github and code up another
    version of it.<br clear="none">
    <br clear="none">
    -Jonathan<br clear="none">
    <br clear="none">
    <blockquote type="cite">
      <div class="yiv3156650986gmail_quote">On Mar 4, 2014 12:47 PM, "Jonathan
        Wilkes" &lt;<a href="" rel="nofollow" shape="rect" ymailto="mailto:jancsika@yahoo.com" target="_blank">jancsika@yahoo.com</a>&gt;
        wrote:<br clear="none">
        <blockquote class="yiv3156650986gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
          On 03/04/2014 03:00 AM, Kaj Ailomaa wrote:<br clear="none">
          <blockquote class="yiv3156650986gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
            <br clear="none">
            On Tue, Mar 4, 2014, at 02:54 AM, Chris McCormick wrote:<br clear="none">
            <blockquote class="yiv3156650986gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
              Hello,<br clear="none">
              <br clear="none">
              On 03/03/14 21:55, Kaj Ailomaa wrote:<br clear="none">
              <blockquote class="yiv3156650986gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
                Hi. I've been googling a bit and looking through the
                library of objects<br clear="none">
                that comes with pd-extended, but can't seem to find a
                way to get the<br clear="none">
                name of the patch from within the patch. Anyone know of
                a nice method to<br clear="none">
                do this?<br clear="none">
              </blockquote>
              I would use [namecanvas] for this. For example you could
              have an object<br clear="none">
              like [namecanvas $0-mypatch] and then you can send
              messages to the patch<br clear="none">
              using e.g. [s $0-mypatch].<br clear="none">
              <br clear="none">
            </blockquote>
            Thanks, but this won't work for me, as the name has to be
            the actual<br clear="none">
            patch name.<br clear="none">
            <br clear="none">
            I've understood that there might be a fix in the svn version
            of<br clear="none">
            [canvasname], apart of iemguts, which would allow getting
            the name of<br clear="none">
            the top level patch.<br clear="none">
            <br clear="none">
            The reason I had for this is I wanted to have uniquely named
            patches<br clear="none">
            that have a common save mechanism, which looks up the
            savefile based on<br clear="none">
            the unique patch name.<br clear="none">
            I was always going to create these uniquely named patches in
            another top<br clear="none">
            level patch, so I can get around this problems by adding an
            argument for<br clear="none">
            the patch, which is the same as the patchname, and let the
            save<br clear="none">
            mechanism look up the filename that way.<br clear="none">
            <br clear="none">
            I initially would have wanted the uniquely named patch to be
            able to be<br clear="none">
            opened as is, but that's not a major problem.<br clear="none">
          </blockquote>
          <br clear="none">
          Currently I think the only way to do this is
          [filename(---[canvasinfo], which is only in Pd-l2ork.<br clear="none">
          <br clear="none">
          -Jonathan<br clear="none">
          <br clear="none">
          <blockquote class="yiv3156650986gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
            <br clear="none">
            _______________________________________________<br clear="none">
            <a href="" rel="nofollow" shape="rect" ymailto="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br clear="none">
            UNSUBSCRIBE and account-management -&gt; <a href="" rel="nofollow" shape="rect" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br clear="none">
            <br clear="none">
            <br clear="none">
          </blockquote>
          <br clear="none">
          <br clear="none">
          _______________________________________________<br clear="none">
          <a href="" rel="nofollow" shape="rect" ymailto="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br clear="none">
          UNSUBSCRIBE and account-management -&gt; <a href="" rel="nofollow" shape="rect" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br clear="none">
        </blockquote>
      </div>
    </blockquote>
    <br clear="none">
  </div>

</blockquote></div></div></div></div><br><br></div>  </div> </div>  </div> </div></body></html>