Hello,<br><br>I don&#39;t know if this is the right place to put this on but, this code is crashing randomly on my tests:<br><br>MAUI_View window;<br>MAUI_Slider knob_0;<br><br>window.size(300,300);<br>window.name(&quot;Test&quot;);
<br>window.position(0,100);<br><br>knob_0.range(0,127);<br>knob_0.size(150,knob_0.height());<br>//cut_knob_0.position(0,0);<br>knob_0.name(&quot;Knob 0&quot;);<br>knob_0.displayFormat(MAUI_Slider.integerFormat);<br>// impulse to filter to dac
<br><br>Impulse i =&gt; BiQuad f =&gt; Pan2 p =&gt; dac;<br>// set the filter&#39;s pole radius<br>.99 =&gt; f.prad; <br>// set equal gain zeros<br>1 =&gt; f.eqzs;<br>// set filter gain<br>.5 =&gt; f.gain;<br><br><br>window.addElement
(knob_0);<br><br>window.display();<br><br>1 =&gt; int device;<br><br>MidiIn min;<br>MidiMsg msg;<br><br>if( !min.open( device ) ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;&lt;&lt; &quot;erro ao iniciar device:&quot; , device &gt;&gt;&gt; ;<br>} else {
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;&lt;&lt; &quot;device inicializado:&quot; , min.num() , &quot; -&gt; &quot; , min.name() &gt;&gt;&gt;;<br>}<br><br>public void controlKnob_0() {<br>&nbsp;&nbsp;&nbsp; while(true) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; while ( min.recv(msg) ) {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; msg.data1 =&gt; int msg_1;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; msg.data2 =&gt; int msg_2;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; msg.data3 =&gt; int msg_3;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(msg_2 == 3) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; knob_0.value(msg_3);
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; min =&gt; now;<br>&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>}<br><br>public void Distortion() {<br>&nbsp;&nbsp;&nbsp; while(knob_0.value()) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; knob_0.value() =&gt; float value;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; value * 39 =&gt; 
f.pfreq;<br>//&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; value =&gt; i.next;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; min =&gt; now;<br>}<br><br><br>&nbsp;&nbsp;&nbsp; <br>spork ~ controlKnob_0();<br>spork ~ Distortion();<br><br><br>while ( true ) {<br>&nbsp;&nbsp;&nbsp; 1.0 =&gt; i.next;<br>//&nbsp;&nbsp;&nbsp; Std.rand2f
( 250, 5000 ) =&gt; f.pfreq;<br>&nbsp;&nbsp;&nbsp; Std.rand2f( -1, 1 ) =&gt; p.pan;<br>&nbsp;&nbsp;&nbsp; 100::ms =&gt; now;<br>}<br><br><br>What i&#39;m doing is mapping one knob of my bcd2000 to a MAUI Slider, to see on the screen the position of the knob, as i&#39;ve posted here before, the midi itself is hanging up using this controller, but I think it might be something i&#39;m doing wrong, anyone can point me out a clue on what could be it?
<br><br>Thanks<br><br>Piero<br>