On 22/04/2008, <b class="gmail_sendername">mike clemow</b> &lt;<a href="mailto:gelfmuse@gmail.com">gelfmuse@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, Kas,</blockquote><div><br>Hey, Mike (and Stephen and Joe),<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>This I agree with completely.&nbsp;&nbsp;It would be sweet, for instance, to<br>
 &quot;plug&quot; a GUI element into a object parameter.<br> <br> mge =&gt; s.gain;&nbsp;&nbsp; //this might work like &quot;SinOsc s =&gt; dac;&quot;</blockquote><div><br>I&#39;ve been thinking about things like that as well. This would mainly be shorthand that would save defining a actual shred but I could imagine that in the (far) future such things (not just interface elements but also Ugens send to parameters) would be dealt with by the compiler who would try to see if that parameter were one where we could do something more clever then using a shred (equivalent). In the case of gain I could imagine assigning the fader&#39;s internal value for it&#39;s state to the oscillator&#39;s internal value for gain. This won&#39;t work everywhere; some parameters need to do calculations upon changing but in some places such things might save cpu, I wonder if that would be worth it.<br>
&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br> That&#39;s off the top of my head, but there are probably a million<br> &quot;chuckian&quot; things one might change about the normal UI paradigm.&nbsp;&nbsp;To<br>
 be fair, MAUI elements are not created in code in a very novel way.<br> It&#39;s still pretty standard UI code.&nbsp;&nbsp;For a live-coding language, this<br> isn&#39;t really ideal.</blockquote><div><br>I agree. I&#39;m extremely curious about the syntax GlucK will have because most 3d libraries seem to reason in a way that&#39;s not mine. I haven&#39;t yet worked with the MAUI elements myself as I don&#39;t have a Mac but based on what Inventor found and my own tests there sporking a thousand empty shreds waiting for a event and seeing how much that took of the CPU (quite a lot) I think we could use some streamlining.<br>
<br>While that may sound very critical of Spencer I think a syntax is a language and like all languages will have to be formed, changed and developed by the people that speak it.<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>I think I actually do mean like a separate program.&nbsp;&nbsp;When I run a UI I<br> made in Processing to control Chuck, Chuck doesn&#39;t even have to be<br> running on the same machine, since all the control messages are sent<br>
 via UPD as OSC messages.&nbsp;&nbsp;This is the same kind of paradigm that the<br> SuperCollider language (client) communicates with their synth server.</blockquote><div><br>Yes, this makes a lot of sense to me. I could see a lot of useful applications for example running such a interface client on a mobile phone or on a tablet PC with a modest CPU.<br>
<br>I had a idea last night. How about abstracting the interface to a class called something like &quot;Gui&quot;, Gui would have member functions for doing things like creating faders and buttons and so on but also (like Hid) a &quot;open&quot; function. This &quot;open&quot; function would be used to either link the gui to a window like the Mini has or to OSC. If OSC is chosen it would be given a port for input and for output and send all commands (standardised) over OSC to be dealt with by Processing or whatever graphical program the user wants to use. This way the choice of what interface to use could even be given as a parameter to the shred. OSC-wise it would just be a abstraction with a convenient naming scheme. Templates for catching these messages could be build in Processing and IXI and so on to get people started.<br>
<br>This would also enable us to use a entire graphical interface window as a single event, ChucK that to now and parse that using the same syntax we use for Hid &quot;if (msg.isButtonDown()).......&quot; which would save a LOT of shreds for large and complex interfaces.<br>
&nbsp;<br>The big weakspot in this plan is that a user may want to define a element (say a sprite) in one of these packages that has no ChucKian gui equivalent. Ideally there would be a way of dealing with that, for example simply passing them on if the gui is linked to OSC and generating a non-fatal error otherwise (to preserve compatibility where possible and fail gracefully).<br>
</div><br>I could also imagine this &quot;open&quot; function getting presets to make it speak the same language as a Lemur or a Monome. That would chiefly be a convenience thing but I could see that getting quite popular.<br>
<br>&lt;snipping a few of your ideas here, I think those are quite similar to mine&gt;<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
 I mean, I guess we&#39;re not that far from this...&nbsp;&nbsp;meaning that we could<br> kind of roll our own here with a clever class that abstracts the OSC<br> functionality of Chuck, but to honest, it&#39;s going to be tricky.&nbsp;&nbsp;There<br>
 are some quirks to its current implementation, and some limitations to<br> the OSC hierarchy due to the way that shreds work.&nbsp;&nbsp;If it were built<br> in functionality, I think that this would certainly pave the way to<br> having a framework upon which one could choose-your-own-UI-platform.<br>
 After that, I could see a Chuck-syntax 2D/3D drawing kit that would<br> use Chuck to do UI.</blockquote><div><br>Yes, OSC could use some love, I&#39;m not sure I understand what you mean by the link between shreds and OSC hierarchy though, could you elaborate on that, please?<br>
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> I&#39;m just thinking out loud here...</blockquote><div><br>:¬)<br><br>Yours,<br>
Kas. <br></div><br></div>