Ejemplo n.º 1
0
        //### Information
        public void PrintNoteInformation()
        {
            //Print Note Information to Console
            Console.WriteLine("Onset: " + Onset.ToString() +
                              " Duration: " + Duration.ToString() +
                              " Dynamics: " + Dynamics.ToString());

            EulerPoint.PrintEulerPointInformation();
        }
Ejemplo n.º 2
0
 //###Methods Calculating
 public void TransposeComposition(EulerPoint ToAdd)
 {
     //method to transpose all notes by the passed value
     foreach (Instrument instrument in Composition.Instruments)
     {
         foreach (Note note in instrument.Notes)
         {
             note.EulerPoint = EulerModule.Add(note.EulerPoint, ToAdd);
         }
     }
 }
Ejemplo n.º 3
0
        private void InitializeModuleData(Fraction[] exponents)
        {
            //Initialize eulerpoints depending on the number of exponents
            //EulerPoint init
            switch (exponents.Length)
            {
            case 3:
                EulerPoint = new EulerPoint(exponents[0], exponents[1], exponents[2]);
                break;

            case 4:
                break;

            default:
                Console.WriteLine("Exponents: " + exponents.Length + " - Number of exponents is not suppoted.");
                throw new ArgumentException("ERROR: Exponent error.");
            }
        }