int getPitchOffsetInterval(KeyEvent e) {
		int interval = 0;
		switch (e.getKeyCode()) {
		case KeyEvent.VK_UP:
		case KeyEvent.VK_KP_UP:
			interval = Pitch.INTERVALS_PER_OCTAVE;
			break;
		case KeyEvent.VK_DOWN:
		case KeyEvent.VK_KP_DOWN:
			interval = -Pitch.INTERVALS_PER_OCTAVE;
			break;
		case KeyEvent.VK_LEFT:
		case KeyEvent.VK_KP_LEFT:
			interval = -1;
			break;
		case KeyEvent.VK_RIGHT:
		case KeyEvent.VK_KP_RIGHT:
			interval = 1;
			break;
		}
		return interval;
	}