<div dir="ltr"><div dir="ltr" class="gmail_attr">Em sex., 1 de abr. de 2022 às 13:46, Miller Puckette <<a href="mailto:msp@ucsd.edu">msp@ucsd.edu</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Because when just making a patch the origin is conventionally top left,<br>not bottom left.  So pixels count downward, and if you want "y" to increase<br>as you go up, that's the opposite dorection.<br></blockquote><div><br></div><div dir="ltr">Sure, but let me see if I get things straight. This is just meaningful for Data Structures, right? Cause if I change this in a "regular" canvas, I don't see any difference. But maybe I'm missing something.<div><br></div><div>Now, I can see the difference is where to consider the origin (0/0 coordinate), but I don't know what's the benefit besides maybe having a more intuitive expectation when resizing the window, right? Perhaps one could argue it also makes easier to know where to append objects on the canvas, but I'm not sure about that.</div><div><br></div><div>Anyway, I really think it makes it very confusing for setting and retrieving field values that represent the horizontal axis. In the Data Structures tutorial examples, like 02.getting.data, the height of the triangle is a negative number. This is particularly troublesome for arrays, cause we really expect that the higher the element is, the higher its value should be.</div><div> </div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Just install a mirror on your desktop and look at your screen downward<br>
through it, and you'll see 'y' increase upward when 'scale' is set to 1 :)<br></blockquote><div><br></div><div><div dir="ltr"><div>Not sure if that fixes everything and this can be easily fixed by setting the "Y units per pixel" value to a positive number, like in the 07.sequencer examples, which, by the way, makes much more sense to follow the score.</div><div><br></div><div>I'm now revising the Data Structures tutorial in my documentation updates and would like to bring this discussion into attention. I have changed all the patches so the "Y" unit is set to positive values and have better documented how this works. But anyway, I really think it makes more sense for a default value that we have Y units set to "1".</div><div><br></div><div>cheers</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><br></div></div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
M<br>
<br>
On Mon, Mar 28, 2022 at 10:34:37PM -0300, Alexandre Torres Porres wrote:<br>
> Hi, I believe this must have been discussed before... it's surely known. I<br>
> wonder why when you add a subpatch the 'scale' section has an inverted "-1"<br>
> scale for the vertical axis. This is particularly bad for display data<br>
> structures and needs to be corrected by hand.<br>
> <br>
> Should I open a request to change this default parameter?<br>
> <br>
> cheers<br>
<br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_listinfo_pd-2Dlist&d=DwICAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=wgWtkJJcYUwRifqLJg59owSZw1zTNpWHHOL8XWo1Mz6ksC-Vsnqx6ouhVmT8Kd1B&s=S2yiWX7RQ4qwLPaUV-x5HEnQTrJ0Z_oyqcCIjAF1zLc&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_listinfo_pd-2Dlist&d=DwICAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=wgWtkJJcYUwRifqLJg59owSZw1zTNpWHHOL8XWo1Mz6ksC-Vsnqx6ouhVmT8Kd1B&s=S2yiWX7RQ4qwLPaUV-x5HEnQTrJ0Z_oyqcCIjAF1zLc&e=</a> <br>
<br>
</blockquote></div></div>