private void shapeComboBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_shapeComboBoxItemStateChanged
        if (evt.getStateChange() == java.awt.event.ItemEvent.SELECTED) {
            switch (shapeComboBox.getSelectedItem().toString()) {
                case "Sine":
                    synth.updateVoiceShape(WaveShapes.SINE, 0);
                    pulseWidthSlider.setEnabled(false);
                    pulseWidthLabel.setEnabled(false);
                    break;
                case "Triangle":
                    synth.updateVoiceShape(WaveShapes.TRI, 0);
                    pulseWidthSlider.setEnabled(false);
                    pulseWidthLabel.setEnabled(false);
                    break;
                case "Saw":
                    synth.updateVoiceShape(WaveShapes.SAW, 0);
                    pulseWidthSlider.setEnabled(false);
                    pulseWidthLabel.setEnabled(false);
                    break;
                case "Pulse":
                    synth.updateVoiceShape(WaveShapes.PULSE, pulseWidthSlider.getValue() / 100f);
                    pulseWidthSlider.setEnabled(true);
                    pulseWidthLabel.setEnabled(true);
            }

        }
    }//GEN-LAST:event_shapeComboBoxItemStateChanged