Esempio n. 1
0
 def test_enough_notes_backwards(self):
     preceding = [{0: 0, 1: 0, 2: 0}, {0: 0}, {0: 0}, {0: 0}]
     self.assertEqual(_chords_for_notes(3, preceding, False), 3)
Esempio n. 2
0
 def test_insufficient_notes_single_pad(self):
     self.assertEqual(_chords_for_notes(4, []), 1)
Esempio n. 3
0
 def test_insufficient_notes_multi_pad(self):
     self.assertEqual(_chords_for_notes(15, []), 3)
Esempio n. 4
0
 def test_enough_notes(self):
     following = [{0: 8, 1: 10}, {0: 8, 1: 10, 2: 10}]
     self.assertEqual(_chords_for_notes(4, following), 2)