if((note<0) || (note >127))
throw new IllegalArgumentException("illegal note");
if(duration <= 0)
throw new IllegalArgumentException("duration must be positive");
if(volume < 0)
volume = 0;
else if(volume > 100)
volume = 100;
qsSP.playTone(note, duration, volume);