Hello,<br><br>this is not what i meant with the code but as i&#39;m not testing the audio gens its all right, all i&#39;m doing is see the MAUI changes with midi input.<br>Yesterday iīve seen the .onChange trigger thatīs what I was trying to do with the .value function.
<br>I was trying to compile miniAudicle yesterday and it doesnt go all right, there is any libs I must install before I can build it ? I was thinking on try a little change on the MAUI API for supporting some kind of really knob like widgets (a ball with a mark at the 0 point that rotates itself from 0 to 127 or something like this) because my application will fit all of the screen just with the knob states if I use that rule as the marker.
<br>Another thing I think is missing is a onscreen file manager to map my turntable and select samples from the midi controller, did you ever think on using GTK for this? because it support skins from itself (I dont know if cocoa can do this but i havent seen any Mac OS X apps with too much skin support) I thought it could be nice to make really good looking skins for any kind of chuck based machine.
<br><br>Iīll send you more crash reports, there is something odd with the crashes, they donīt seem to hang on the same function, maybe its a little overflow the bcd is causing on the midi routines.<br><br>Thanks for your time
<br><br>Piero<br><br><br><br><div><span class="gmail_quote">2007/4/13, Spencer Salazar &lt;<a href="mailto:ssalazar@cs.princeton.edu">ssalazar@cs.princeton.edu</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Piero,<br>Thanks for your feedback on this.&nbsp;&nbsp;I&#39;ve been looking into your crash<br>report from earlier and while I can see where the crash is occurring,<br>I can&#39;t quite figure out why it is occurring.&nbsp;&nbsp;So I don&#39;t really have
<br>anything helpful to say at the moment, except that Im looking a<br>little deeper into ChucK&#39;s MIDI implementation.<br><br>Also, while it doesn&#39;t explain the crashing, this code of yours seems<br>a little suspect:
<br><br>&gt; public void Distortion() {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; while(knob_0.value()) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; knob_0.value() =&gt; float value;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value * 39 =&gt; f.pfreq;<br>&gt; //&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value =&gt; i.next;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; }
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; min =&gt; now;<br>&gt; }<br><br>As far as I can tell, this will hang all audio processing until<br>knob_0.value() is 0--is that the desired result?<br><br>spencer<br><br>On Apr 12, 2007, at 9:46 PM, Piero B. Contezini wrote:
<br><br>&gt; Hello,<br>&gt;<br>&gt; I don&#39;t know if this is the right place to put this on but, this<br>&gt; code is crashing randomly on my tests:<br>&gt;<br>&gt; MAUI_View window;<br>&gt; MAUI_Slider knob_0;<br>&gt;
<br>&gt; window.size(300,300);<br>&gt; window.name(&quot;Test&quot;);<br>&gt; window.position(0,100);<br>&gt;<br>&gt; knob_0.range(0,127);<br>&gt; knob_0.size(150,knob_0.height());<br>&gt; //cut_knob_0.position(0,0);<br>&gt; knob_0.name(&quot;Knob 0&quot;);
<br>&gt; knob_0.displayFormat(MAUI_Slider.integerFormat);<br>&gt; // impulse to filter to dac<br>&gt;<br>&gt; Impulse i =&gt; BiQuad f =&gt; Pan2 p =&gt; dac;<br>&gt; // set the filter&#39;s pole radius<br>&gt; .99 =&gt; 
f.prad;<br>&gt; // set equal gain zeros<br>&gt; 1 =&gt; f.eqzs;<br>&gt; // set filter gain<br>&gt; .5 =&gt; f.gain;<br>&gt;<br>&gt;<br>&gt; window.addElement (knob_0);<br>&gt;<br>&gt; window.display();<br>&gt;<br>&gt; 1 =&gt; int device;
<br>&gt;<br>&gt; MidiIn min;<br>&gt; MidiMsg msg;<br>&gt;<br>&gt; if( !min.open( device ) ) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt;&lt; &quot;erro ao iniciar device:&quot; , device &gt;&gt;&gt; ;<br>&gt; } else {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt;&lt; &quot;device inicializado:&quot; , 
min.num() , &quot; -&gt; &quot; , <a href="http://min.name">min.name</a><br>&gt; () &gt;&gt;&gt;;<br>&gt; }<br>&gt;<br>&gt; public void controlKnob_0() {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; while(true) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while ( min.recv(msg) ) {
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; msg.data1 =&gt; int msg_1;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; msg.data2 =&gt; int msg_2;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; msg.data3 =&gt; int msg_3;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(msg_2 == 3) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; knob_0.value(msg_3);
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; min =&gt; now;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt; }<br>&gt;<br>&gt; public void Distortion() {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; while(knob_0.value()) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; knob_0.value() =&gt; float value;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value * 39 =&gt; f.pfreq;<br>&gt; //&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value =&gt; i.next;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; min =&gt; now;<br>&gt; }<br>&gt;<br>&gt;<br>&gt;<br>&gt; spork ~ controlKnob_0();<br>&gt; spork ~ Distortion();
<br>&gt;<br>&gt;<br>&gt; while ( true ) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 1.0 =&gt; i.next;<br>&gt; //&nbsp;&nbsp;&nbsp;&nbsp;Std.rand2f ( 250, 5000 ) =&gt; f.pfreq;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Std.rand2f( -1, 1 ) =&gt; p.pan;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 100::ms =&gt; now;<br>&gt; }<br>&gt;<br>
&gt;<br>&gt; What i&#39;m doing is mapping one knob of my bcd2000 to a MAUI Slider,<br>&gt; to see on the screen the position of the knob, as i&#39;ve posted here<br>&gt; before, the midi itself is hanging up using this controller, but I
<br>&gt; think it might be something i&#39;m doing wrong, anyone can point me<br>&gt; out a clue on what could be it?<br>&gt;<br>&gt; Thanks<br>&gt;<br>&gt; Piero<br>&gt; _______________________________________________<br>
&gt; chuck-users mailing list<br>&gt; <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>&gt; <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
</a><br><br>_______________________________________________<br>chuck-users mailing list<br><a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br><a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br></blockquote></div><br>