Thanks Jordan for taking the time to write that.<br><br>However I get<br><br>[chuck]: HidIn: couldn't open keyboard 1...<br><br>and no change with d or h<br><br>Looking at your code I gathered I should try 0 or 1. Same result<br>
<br>Tried it in console (not X windows) Still same.<br><br>Fished around in google and came to this on the wiki<br><a href="http://wiki.cs.princeton.edu/index.php/ChucK/keyboard">http://wiki.cs.princeton.edu/index.php/ChucK/keyboard</a><br>
<br>So by some guesswork I changed your function keyboardListener to this:<br>[This is the first chuck I am writing!]<br><br><br>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><br>At first it did not work until I realized that the d h should be upper case.<br>Now I get my basic effect.<br><br>I cant hear any effect from i/I or o/O but thats minor.<br>
<br>Trying to reduce the jumps to less than half/double I changed the 2 to 1.5<br>It just goes silent<br><br>Changed the <br>2 *>= Voice.multiplier;<br>to<br>5 +=> Voice.multiplier;<br><br>chuck dies and I get cpu 100%.<br>
<br>