<div class="gmail_quote">Ive managed to tweak the example more or less to the requirement however (in the code below) <br><br>On Sun, Jul 17, 2011 at 9:01 PM, Rustom Mody <span dir="ltr"><<a href="mailto:rustompmody@gmail.com">rustompmody@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">fun void keyboardListener()<br>{<br>    KBHit hi;<br>    int c;<br>    while(true)<br>    {<br>

        hi => now;<br>        while(hi.more())<br>        {<br>            //if(msg.isButtonDown())<br>            hi.getchar() => c;<br>            {<br>                if(c == 68) // d<br>                    2 *=> Voice.multiplier;<br>

                else if(c == 72) // h<br>                    2 /=> Voice.multiplier;<br>                else if(c == 73) // i<br>                    Voice.decreaseSpread();<br>                else if(c == 79) // o<br>
                    Voice.increaseSpread();<br>
            }<br>        }<br>    }<br>}<br></blockquote></div><br><br><br>if I change<br>2 *=> Voice.multiplier;<br>to<br>1.5 *=> Voice.multiplier;<br><br>chuck dies and cpu usage shows 100%<br><br>Any clues/tips?<br>