class TestPythagoranDodecaphinicScale(unittest.TestCase): def setUp(self): self.base_frequency = 528 self.scale = PythagDodecaphonic(self.base_frequency) def test_interval_frequecies(self): interval_frequencies = [528, 556, 594, 626, 668, 704, 742, 752, 792, 834, 891, 939, 1002] i = 0 for f in interval_frequencies: self.assertAlmostEqual(f, self.scale.get_frequency(i), 0) i += 1
def setUp(self): self.base_frequency = 528 self.scale = PythagDodecaphonic(self.base_frequency)