StackTraceElement[] stes=ex.getStackTrace();
for(StackTraceElement ste:stes) {
System.err.println("\t"+ste);
}
*/
SoundParameter sp=getSoundBuffer().getActiveSoundParameter();
if (mode==Mode.OSC1_MODE) {
MidiThread.getInstance().emitParamChange(this, getSoundBuffer().getActiveSoundNumber(),
RackAttack.OSC1_PITCH, pitchKnob.getIntValue());
sp.setOsc1Pitch(pitchKnob.getIntValue());
} else {
MidiThread.getInstance().emitParamChange(this, getSoundBuffer().getActiveSoundNumber(),
RackAttack.OSC2_PITCH, pitchKnob.getIntValue());
sp.setOsc2Pitch(pitchKnob.getIntValue());
}
pitchSpinner.setValue(new Integer(pitchKnob.getIntValue()));
}//GEN-LAST:event_pitchKnobStateChanged