/// <summary>
        /// Creates a score with just one staff (other staves can be added later) in specific clef and key signature determined by scale.
        /// </summary>
        /// <param name="clef">Clef</param>
        /// <param name="scale">Scale</param>
        /// <returns>A new score</returns>
        public static Score CreateOneStaffScore(Clef clef, MajorOrMinorScale scale)
        {
            var score = CreateOneStaffScore();

            score.FirstStaff.Elements.Add(clef);
            score.FirstStaff.Elements.Add(Key.FromScale(scale));
            return(score);
        }
 public static Chord CreateChord(Pitch basePitch, int inversion, MajorOrMinorScale scale)
 {
     return(new TertianHarmony().CreateChord(basePitch, inversion, 2, scale));
 }
 public static Chord Create7thChord(Pitch basePitch, int inversion, MajorOrMinorScale scale)
 {
     return(new TertianHarmony().CreateChord(basePitch, inversion, 3, scale).ApplyAlteration(3 - inversion, -1));
 }
Exemple #4
0
 /// <summary>
 /// Creates a new instance of Key from given Scale
 /// </summary>
 /// <param name="scale"></param>
 /// <returns></returns>
 public static Key FromScale(MajorOrMinorScale scale)
 {
     return(new Key(scale.Fifths));
 }