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; }
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); } }
public void CreateFSharpMinor() { AcademicScale actual = ScaleHelper.Create(Note.Fsharp, ScaleType.Minor); Assert.AreEqual(F_SHARP_MINOR, actual.notes); }
public void CreateCMinor() { AcademicScale actual = ScaleHelper.Create(Note.C, ScaleType.Minor); Assert.AreEqual(C_MINOR, actual.notes); }
public void CreateGMinorPentatonic() { AcademicScale actual = ScaleHelper.Create(Note.G, ScaleType.MinorPentatonic); Assert.AreEqual(G_MINOR_PENTATONIC, actual.notes); }
public void CreateCMajorPentatonic() { AcademicScale actual = ScaleHelper.Create(Note.C, ScaleType.MajorPentatonic); Assert.AreEqual(C_MAJOR_PENTATONIC, actual.notes); }