int x; void main() { while(1) { printf("Press START\n"); while(!start_button()) {} while(stop_button()==0) { x=knob(); printf("knob is at %d\n", x); if(x<128) { tone(250.,.1); } else { tone(550.,.1); } } } }