<div dir="ltr">I have done a precise draw of the key but I have more than one key selected in some cases.<div><br></div><div>What's wrong?</div><div><br></div><div>I have error messages when I run multiples abstractions of this patch, but it still working well.</div><div><br></div><div>Thanks for any advance.. :)<br><br><div class="gmail_quote"><div dir="ltr">Em sáb, 20 de mai de 2017 às 06:31, João Pais <<a href="mailto:jmmmpais@gmail.com">jmmmpais@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br><blockquote style="margin:0 0 0.80ex;border-left:#0000ff 2px solid;padding-left:1ex"><div dir="ltr"><div class="m_-4885061252687745745m_-6205969221429992403inbox-inbox-inbox-inbox-uyb8Gf" style="color:rgb(33,33,33)"><div><div class="m_-4885061252687745745m_-6205969221429992403inbox-inbox-inbox-inbox-pv" style="border-left:1px solid rgb(224,224,224);color:rgb(117,117,117);padding:10px"><div class="m_-4885061252687745745m_-6205969221429992403inbox-inbox-inbox-inbox-inbox-inbox-uyb8Gf" style="color:rgb(33,33,33)"><div><div class="m_-4885061252687745745m_-6205969221429992403inbox-inbox-inbox-inbox-inbox-inbox-pv" style="border-left:1px solid rgb(224,224,224);color:rgb(117,117,117);padding:10px"><br class="m_-4885061252687745745m_-6205969221429992403inbox-inbox-inbox-inbox-inbox-inbox-Apple-interchange-newline">> for that it works to draw first the black, then the white keys, then vis 0,vis 1.<br>> It's not logical, but it seems to work.<br><br></div></div></div><div class="m_-4885061252687745745m_-6205969221429992403inbox-inbox-inbox-inbox-inbox-inbox-uyb8Gf" style="color:rgb(0,0,0)"><div><div class="m_-4885061252687745745m_-6205969221429992403inbox-inbox-inbox-inbox-inbox-inbox-F3hlO"><font color="#666666">also works for me. and it helps for filtering the right key events (see my solution).</font></div></div></div></div></div></div><br><div dir="ltr"><div>Seems like a magic for me... Anyway I adopt Christof mixed with João solutions at this patch.</div><div><br></div><div>But arises some questions...</div><div><br></div><div>Once I need:</div><div>  1. change color of key while mouse click is on at these key</div></div></div></blockquote><div><br></div></div><div><div>that's easy on its own, get the pointer from the output of [struct] when you click on it. use it to change the color with [set ...... color].</div></div><div><div><br></div><blockquote style="margin:0 0 0.80ex;border-left:#0000ff 2px solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>  2. once mouse click is on, and mouse cursor move around the gop area, the keyboard will respond. Like a finger pressing and moving around a real keyboard.</div><div>  3. the key are velocity sensitive around y axis at first click.</div></div></div></blockquote><div><br></div><blockquote style="margin:0 0 0.80ex;border-left:#0000ff 2px solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>I'm thinking to map the gop are, create a system of coordinates to draw keyboard and using [cyclone/mousestate] and/or only [iemguts/receivecanvas].</div><div><br></div><div>In this way maybe is better implement the João suggestion of parameterize the template and implement the keys with more points and implement the control with a gop coordinate system.</div></div></div></blockquote><div><br></div></div><div><div>you can't click and drag on data-s, so your other idea is better (and get the pointers to make the display look accordingly).  </div><div>Once I did a sampler what I had an horizontal line of marks indicating places in a sample; also using [mousestate] to get the mouse actions (position in window + clicks) I could extrapolate where I was in the window, and what should sound. </div><div><br></div><div>Joao</div></div></blockquote></div></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><p dir="ltr"><a href="http://www.estebanviveros.com">www.estebanviveros.com</a> </p>
</div></div>