//### Information public void PrintNoteInformation() { //Print Note Information to Console Console.WriteLine("Onset: " + Onset.ToString() + " Duration: " + Duration.ToString() + " Dynamics: " + Dynamics.ToString()); EulerPoint.PrintEulerPointInformation(); }
//###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); } } }
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."); } }