Sebastien, incredible! Looking forward to see you dynamic patching thing! Wishing to help soon.<br><br>Keep rocking!<br><br><div class="gmail_quote">2012/3/30 sebastien piquemal <span dir="ltr"><<a href="mailto:sebpiq@gmail.com">sebpiq@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks ! I was kind of afraid that you were upset by me raping your code ...<br><br>I
think what I did really made the whole thing easier to maintain and
easier to test. The new architecture is as uncoupled as possible and so
allows for more hardcore testing (for example, I wrote full unit-tests
for [cos~] : <a href="https://github.com/sebpiq/WebPd/blob/master/test/objects.js#L60" target="_blank">https://github.com/sebpiq/<u></u>WebPd/blob/master/test/<u></u>objects.js#L60</a>).<br>
I'll continue refactoring in the same direction, and I expect that in ~ 1
month, I'll arrive to a point where it will be about stable.<br>Also, I finished yesterday to implement an API for complete dynamic patching. For example, you can now do :<br><br>var patch = new Pd.Patch();<br>var osc440 = new Pd.objects['osc~'](patch, [440]);<br>
var dac = new Pd.objects['dac~'](patch);<br>patch.connect(osc440.getId(), 0, dac.getId(), 0);<br>patch.connect(osc440.getId(), 0, dac.getId(), 1);<br><br>There's still a bunch of stuff I'm not fully satisfied of, but overall that's the idea.<br>
Also, I am moving slowly all the objects from the old system to new system (implementing full unit-testing at the same time), so many objects are not available yet, because not yet migrated.<br><br>Cheers,<br><br>Sébastien<br>
</blockquote></div><br><br clear="all"><br>-- <br>Vilson Vieira<br><br>vilson@void.cc<br><br>((( <a href="http://automata.cc" target="_blank">http://automata.cc</a> )))<br><br>((( <a href="http://musa.cc" target="_blank">http://musa.cc</a> )))<br>
<br>((( <a href="http://labmacambira.sourceforge.net" target="_blank">http://labmacambira.sourceforge.net</a> )))<br><br>