public void ProgressionTest_changeTabPitch() { Progression.clearProgression(); Progression.addChord(ChordFactory.getChordByName("C")); Assert.AreEqual("X", Progression.getTabNumber(1, 6)); Assert.AreEqual("3", Progression.getTabNumber(1, 5)); Assert.AreEqual("2", Progression.getTabNumber(1, 4)); Assert.AreEqual("0", Progression.getTabNumber(1, 3)); Assert.AreEqual("1", Progression.getTabNumber(1, 2)); Assert.AreEqual("0", Progression.getTabNumber(1, 1)); Progression.changeTabPitch(1, 2); Assert.AreEqual("X", Progression.getTabNumber(1, 6)); Assert.AreEqual("3", Progression.getTabNumber(1, 5)); Assert.AreEqual("5", Progression.getTabNumber(1, 4)); Assert.AreEqual("5", Progression.getTabNumber(1, 3)); Assert.AreEqual("5", Progression.getTabNumber(1, 2)); Assert.AreEqual("3", Progression.getTabNumber(1, 1)); }
public void ProgressionTest_changeTuning() { Progression.clearProgression(); Progression.addChord(ChordFactory.getChordByName("E")); Assert.AreEqual("0", Progression.getTabNumber(1, 6)); Assert.AreEqual("2", Progression.getTabNumber(1, 5)); Assert.AreEqual("2", Progression.getTabNumber(1, 4)); Assert.AreEqual("1", Progression.getTabNumber(1, 3)); Assert.AreEqual("0", Progression.getTabNumber(1, 2)); Assert.AreEqual("0", Progression.getTabNumber(1, 1)); Progression.changeTuning(NoteFactory.getNoteByName("E"), NoteFactory.getNoteByName("A"), NoteFactory.getNoteByName("D"), NoteFactory.getNoteByName("G#"), NoteFactory.getNoteByName("B"), NoteFactory.getNoteByName("E")); Assert.AreEqual("E, A, D, Ab, B, E", Progression.getTuning()); Assert.AreEqual("0", Progression.getTabNumber(1, 6)); Assert.AreEqual("2", Progression.getTabNumber(1, 5)); Assert.AreEqual("2", Progression.getTabNumber(1, 4)); Assert.AreEqual("0", Progression.getTabNumber(1, 3)); Assert.AreEqual("0", Progression.getTabNumber(1, 2)); Assert.AreEqual("0", Progression.getTabNumber(1, 1)); }