<div dir="ltr"><div><div><div><div>Hi,<br><br></div>for me a [del 1] was enough to make sure the black keys appear. But it doesn't solve the problem that when the window is minimized and then maximized, white keys are again on top (at least on Pd-Ext), for that it works to draw first the black, then the white keys, then vis 0,vis 1. It's not logical, but it seems to work.<br><br></div>Btw, if you declare the dimensions of the filledpolygon as variables, you can make this using only one struct template. <br>Don't know if you plan on use the keyboard to click on it, but it won't work to click on black keys, as it will also trigger a white key - except you do some hacking of the message, or you don't overlap keys by using a more complex shape for the white keys that goes around the black key. This would also solve the problem that when redrawing, the white keys overlap the black ones.<br><br></div>Best,<br><br></div>Joao<br><div><div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-18 8:19 GMT+02:00 oliver <span dir="ltr"><<a href="mailto:oliver@klingt.org" target="_blank">oliver@klingt.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Esteban Viveros wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
</blockquote>
<br>
hi, nice patch !<br>
beautifully structured as well !<span class=""><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
 I'm drawing a keyboard with data structures.<br>
 The problem is when I use loadbang to draw the keyboard, black keys are<br>
losed. If I bang the routine manually it works like a charm..<br>
<br>
What I'm losing?<br>
</blockquote>
<br></span>
seems like data structures need a little time to "load" (if that's the right term in that context). putting a [del 100] after loadbang did the trick for me.<br>
<br>
([del 10] was to small ...)<br>
<br>
best<br>
<br>
oliver<br>
<br>
<br>
______________________________<wbr>_________________<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://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/li<wbr>stinfo/pd-list</a><br>
</blockquote></div></div></div></div></div>