Пример #1
0
 protected void UpdateScale(Note rootNote, ScaleType scaleType)
 {
     context.academicScale  = ScaleHelper.Create(rootNote, scaleType);
     context.academicChords = _useSingleNoteChords
         ? ScaleHelper.GenerateSingleNoteAcademicChords(context.academicScale)
         : ScaleHelper.GenerateAcademicChords(context.academicScale);
     context.rootNote  = rootNote;
     context.scaleType = scaleType;
 }
Пример #2
0
        public void GenerateAcademicChordsCMajor()
        {
            AcademicScale academicScale = ScaleHelper.Create(Note.C, ScaleType.Major);

            AcademicChord[] academicChords = ScaleHelper.GenerateAcademicChords(academicScale);
            for (int i = 0; i < academicChords.Length; ++i)
            {
                Assert.AreEqual(C_MAJOR_CHORDS[i].notes, academicChords[i].notes);
            }
        }
Пример #3
0
        public void CreateFSharpMinor()
        {
            AcademicScale actual = ScaleHelper.Create(Note.Fsharp, ScaleType.Minor);

            Assert.AreEqual(F_SHARP_MINOR, actual.notes);
        }
Пример #4
0
        public void CreateCMinor()
        {
            AcademicScale actual = ScaleHelper.Create(Note.C, ScaleType.Minor);

            Assert.AreEqual(C_MINOR, actual.notes);
        }
Пример #5
0
        public void CreateGMinorPentatonic()
        {
            AcademicScale actual = ScaleHelper.Create(Note.G, ScaleType.MinorPentatonic);

            Assert.AreEqual(G_MINOR_PENTATONIC, actual.notes);
        }
Пример #6
0
        public void CreateCMajorPentatonic()
        {
            AcademicScale actual = ScaleHelper.Create(Note.C, ScaleType.MajorPentatonic);

            Assert.AreEqual(C_MAJOR_PENTATONIC, actual.notes);
        }