private PWM getPWM(int ToneId)
	{
		switch (ToneId)
		{
			case TONE_C:
				return factory.createPWM(PWM.PWM_CHANNEL5, 2093);

			case TONE_D:
				return factory.createPWM(PWM.PWM_CHANNEL5, 2349);

			case TONE_E:
				return factory.createPWM(PWM.PWM_CHANNEL5, 2637);

			case TONE_F:
				return factory.createPWM(PWM.PWM_CHANNEL5, 2794);

			case TONE_G:
				return factory.createPWM(PWM.PWM_CHANNEL5, 3136);

			case TONE_A:
				return factory.createPWM(PWM.PWM_CHANNEL5, 3520);

			case TONE_B:
				return factory.createPWM(PWM.PWM_CHANNEL5, 3951);

			case TONE_C1:
				return factory.createPWM(PWM.PWM_CHANNEL5, 4186);

			default:
				return factory.createPWM(PWM.PWM_CHANNEL5, 0);
		}
	}