<div dir="auto">This is great news, Jonathan. Is this the most appropriate API for devising the K-12 menu or should I pursue pure HTML/CSS implementation by altering the canvas HTML doc?<div dir="auto"><br><div data-smartmail="gmail_signature" dir="auto">-- <br>Ivica Ico Bukvic, D.M.A.<br>Associate Professor<br>Computer Music<br>ICAT Senior Fellow<br>Director -- DISIS, L2Ork<br>Virginia Tech<br>School of Performing Arts – 0141<br>Blacksburg, VA 24061<br>(540) 231-6139<br><a href="mailto:ico@vt.edu">ico@vt.edu</a><br><a href="http://www.performingarts.vt.edu">www.performingarts.vt.edu</a><br><a href="http://disis.icat.vt.edu">disis.icat.vt.edu</a><br><a href="http://l2ork.icat.vt.edu">l2ork.icat.vt.edu</a><br><a href="http://ico.bukvic.net">ico.bukvic.net</a></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Nov 14, 2017 23:05, "Jonathan Wilkes" <<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3076">Hi list,</div><div dir="ltr">I've got a branch that adds a small GUI API that can incrementally be switched out <br></div><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3253" dir="ltr">for the current "tcl-like" content inside the various functions of pdgui.js.</div><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3254" dir="ltr"><br></div><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3251" dir="ltr">Currently, there are some problems that can crop up when updates to the GUI get <br></div><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3252" dir="ltr">sent from Pd before the GUI has finished loading the window. I've got some stop-gap <br></div><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3276" dir="ltr">existence checks sprinkled about but that isn't very maintainable.</div><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3307" dir="ltr"><br></div><div dir="ltr">This interface has three benefits:</div><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3452" dir="ltr">1. The existence checks are abstracted away.</div><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3453" dir="ltr">2. The methods return a reference to the API so commands can be chained together</div><div dir="ltr">3. Non-existent elements within such a chain will just be silently skipped without error.</div><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3484" dir="ltr"><br></div><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3490" dir="ltr">Have a look here:</div><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3403" dir="ltr"><a id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3402" href="https://git.purrdata.net/jwilkes/purr-data/tree/gui-refactor" target="_blank">https://git.purrdata.net/<wbr>jwilkes/purr-data/tree/gui-<wbr>refactor</a></div><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3491"><br>The current Pd<->GUI API can still be used with this; hence it can incrementally replace <br></div><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3536" dir="ltr">the current code.</div><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3537" dir="ltr"><br></div><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3538" dir="ltr">Any suggestions are welcome.</div><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3539" dir="ltr"><br></div><div id="m_9216100605629737372yui_3_16_0_ym19_1_1510717882840_3540" dir="ltr">-Jonathan<br></div></div></div><br>______________________________<wbr>_________________<br>
L2Ork-dev mailing list<br>
<a href="mailto:L2Ork-dev@disis.music.vt.edu">L2Ork-dev@disis.music.vt.edu</a><br>
<a href="https://disis.music.vt.edu/listinfo/l2ork-dev" rel="noreferrer" target="_blank">https://disis.music.vt.edu/<wbr>listinfo/l2ork-dev</a><br></blockquote></div></div>