<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    And also the pixels delta positions vs the grid lines are changing
    depending if your objects are on the left or right -or- top or
    bottom of your patch.<br>
    <div class="moz-signature"><br>
      Joseph<br>
      - - - - - - - - - - - - - - - - - - - -<br>
    </div>
    <div class="moz-cite-prefix">Le 30/10/2020 à 14:10, Linux ROUEN
      Normandie a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:a1d1ab8e-6389-5281-c5ba-9b4c9331d595@free.fr">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      Hello Jonathan,<br>
      <div class="moz-signature">It's a great feature! Thanks a lot. <span
          class="moz-smiley-s3"><span>;-)</span></span><br>
        <br>
        On my side the experience with Purr Data 2.15.2 (Albert's
        20201030) under Ubuntu 20.04 / Linux Mint 20.0 is not positive
        and the behavior changes with the zoom level.<br>
        I'm taking the top/left of the objects being the reference point
        with a screen resolution of 1920 x 1080 and Purr Data Grid = 10.<br>
        <br>
        With Zoom level = 9.<br>
        I take any object and move them with the mouse. Snap to Vertical
        grid is OK but not the horizontal one which -2 pixels down the
        grid.<br>
        <br>
        Change Zoom level = 13.<br>
        The reference point of above objects has moved by -2 pixels to
        the left and no change on the horizontal one.<br>
        Moving them with the mouse, now Snap to Vertical grid is
        effectively -2 pixels left and the horizontal one is still -2
        pixels down. So no possible alignment to the grid.<br>
        <br>
        Change Zoom level = 15.<br>
        Same as for ZL 13 with more shift: from -2 pixels to -5/6
        pixels, but never on the grid.<br>
        <br>
        Best, Joseph<br>
        - - - - - - - - - - - - - - - - - - - -<br>
      </div>
      <div class="moz-cite-prefix"><br>
        Le 30/10/2020 à 03:47, Albert Graef a écrit :<br>
      </div>
      <blockquote type="cite"
cite="mid:CA+rUic1qa_hrCFg-ZF6iL7tCF=5ZhBTOzjQ22bp-NgHLmMArnQ@mail.gmail.com">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <div dir="ltr">
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Thu, Oct 29, 2020 at
              10:30 PM Jonathan Wilkes <<a
                href="mailto:jon.w.wilkes@gmail.com"
                moz-do-not-send="true">jon.w.wilkes@gmail.com</a>>
              wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">Canvas snap-to-grid
              feature is now available for review:<br>
              <br>
              <a
                href="https://git.purrdata.net/jwilkes/purr-data/-/merge_requests/597"
                rel="noreferrer" target="_blank" moz-do-not-send="true">https://git.purrdata.net/jwilkes/purr-data/-/merge_requests/597</a></blockquote>
            <div><br>
            </div>
            <div>Thanks a bunch, I've really been waiting for this! :)</div>
            <div><br>
            </div>
            <div>I already merged this into my testing branch and had a
              quick look, works fine for me so far.</div>
            <div><br>
            </div>
            <div>I noticed one cosmetic issue, though. I'd suggest
              changing the translations for <span class="gmail-line"
                id="gmail-LC420" lang="html"><span class="gmail-s">prefs.gui.grid.show_grid
                  and </span></span><span class="gmail-line"
                id="gmail-LC417" lang="html"><span class="gmail-s">prefs.gui.grid.show_grid_tt.
                  This option is still</span></span> displayed as "grid
              background in edit mode" right now, but has actually
              become a "snap to grid" option.</div>
            <div><br>
            </div>
            <div>My suggested translations can be found at <a
                href="https://bitbucket.org/agraef/purr-data/commits/7aca2748"
                moz-do-not-send="true">https://bitbucket.org/agraef/purr-data/commits/7aca2748</a>.
              (@Joseph, can you please check my French? Thanks.)</div>
            <div><br>
            </div>
            <div> I already have these in my testing branch, so I can
              add this to your MR if you want. Just let me know.</div>
            <div><br>
            </div>
            <div>If anyone else wants to give it a go, try
              purr-data_2.15.2+git4745+7aca2748 which is currently
              building in the OBS preview channel at <a
href="https://build.opensuse.org/package/show/home:aggraef:purr-data-git/purr-data"
                moz-do-not-send="true">https://build.opensuse.org/package/show/home:aggraef:purr-data-git/purr-data</a>.</div>
            <div><br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex"> Albert-- can you take
              a look at my math in canvas_snap_to_grid?<br>
            </blockquote>
            <div><br>
            </div>
            <div>Looks good to me!<span class="gmail-line"
                id="gmail-LC5821" lang="c"><span class="gmail-s"><br>
                </span></span></div>
            <div> <br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">I notice that once you
              start moving the selection, it kind of "snaps<br>
              backwards" to the "floor" gridline. Is there an easy way
              to fix it so<br>
              it always snaps to the closest gridline for the general
              case (e.g., in<br>
              the assignment to dx/dy below the snap_got_anchor
              conditional)?<br>
            </blockquote>
            <div><br>
            </div>
            <div>I haven't thought about this in any depth, but have you
              tried rounding just xnew-xwas to the nearest grid point
              and finally adding snap_dx, likewise for y? That said,<span
                class="gmail-line" id="gmail-LC5821" lang="c"><span
                  class="gmail-s"> for me it already works well enough
                  as it is. :)<br>
                </span></span></div>
            <div><br>
            </div>
            <div>Albert</div>
            <div><br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex"> <br>
              -Jonathan<br>
              _______________________________________________<br>
              L2Ork-dev mailing list<br>
              <a href="mailto:L2Ork-dev@disis.music.vt.edu"
                target="_blank" moz-do-not-send="true">L2Ork-dev@disis.music.vt.edu</a><br>
              <a href="https://disis.music.vt.edu/listinfo/l2ork-dev"
                rel="noreferrer" target="_blank" moz-do-not-send="true">https://disis.music.vt.edu/listinfo/l2ork-dev</a></blockquote>
          </div>
          <br clear="all">
          <br>
          -- <br>
          <div dir="ltr" class="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">Dr. Albert Gr"af<br>
                      Computer Music Research Group, JGU Mainz, Germany<br>
                      Email: <a href="mailto:aggraef@gmail.com"
                        target="_blank" moz-do-not-send="true">aggraef@gmail.com</a>,
                      web: <a href="https://agraef.github.io/"
                        target="_blank" moz-do-not-send="true">https://agraef.github.io/</a></div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
L2Ork-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:L2Ork-dev@disis.music.vt.edu" moz-do-not-send="true">L2Ork-dev@disis.music.vt.edu</a>
<a class="moz-txt-link-freetext" href="https://disis.music.vt.edu/listinfo/l2ork-dev" moz-do-not-send="true">https://disis.music.vt.edu/listinfo/l2ork-dev</a></pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
L2Ork-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:L2Ork-dev@disis.music.vt.edu">L2Ork-dev@disis.music.vt.edu</a>
<a class="moz-txt-link-freetext" href="https://disis.music.vt.edu/listinfo/l2ork-dev">https://disis.music.vt.edu/listinfo/l2ork-dev</a></pre>
    </blockquote>
    <br>
  </body>
</html>