Ejemplo n.º 1
0
        public void SetTuning(TuningType tuningType)
        {
            type = tuningType;
            switch (type)
            {
            case TuningType.EQUAL_TEMPERAMENT:
                tuningStrategy = new EqualTemperament();
                break;

            case TuningType.PYTHAGOREAN_TUNING:
                tuningStrategy = new PythagoreanTuning();
                break;

            case TuningType.MEANTONE_TEMPERAMENT:
                throw new System.NotImplementedException();
                break;

            case TuningType.JUST_INTONATION:
                throw new System.NotImplementedException();
                break;

            default:
                tuningStrategy = null;
                break;
            }
        }
Ejemplo n.º 2
0
 public void SetTuning <T>() where T : ITuningStrategy, new()
 {
     tuningStrategy = new T();
 }
Ejemplo n.º 3
0
 public void SetCustomTuning(ITuningStrategy tuning)
 {
     tuningStrategy = tuning;
 }