<!DOCTYPE html><html><head>
<style type="text/css">body { font-family:'Times New Roman'; font-size:13px}</style>
</head>
<body><br><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex"><div dir="ltr"><div class="m_-6205969221429992403inbox-inbox-inbox-inbox-uyb8Gf" style="color:rgb(33,33,33)"><div><div class="m_-6205969221429992403inbox-inbox-inbox-inbox-pv" style="border-left:1px solid rgb(224,224,224);color:rgb(117,117,117);padding:10px"><div class="m_-6205969221429992403inbox-inbox-inbox-inbox-inbox-inbox-uyb8Gf" style="color:rgb(33,33,33)"><div><div class="m_-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_-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_-6205969221429992403inbox-inbox-inbox-inbox-inbox-inbox-uyb8Gf" style="color:rgb(0,0,0)"><div><div class="m_-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>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><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>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></body></html>