Ejemplo n.º 1
0
 def test_generate_chromatic_scales(self):
     start = 'C5'
     should_be = [
         'C5', 'C#5', 'D5', 'D#5', 'E5', 'F5', 'F#5', 'G5', 'G#5', 'A5',
         'A#5', 'B5'
     ]
     self.assertEqual(should_be, scales.generateScale('chromatic', start))
Ejemplo n.º 2
0
 def test_generate_phrygian_mode(self):
     start = 'E5'
     should_be = ['E5', 'F5', 'G5', 'A5', 'B5', 'C6', 'D6', 'E6']
     self.assertEqual(should_be, scales.generateScale('major',
                                                      start,
                                                      mode=3))
Ejemplo n.º 3
0
 def test_generate_minor_pentatonic_scales(self):
     start = 'A5'
     should_be = ['A5', 'C6', 'D6', 'E6', 'G6']
     self.assertEqual(should_be,
                      scales.generateScale('minor_pentatonic', start))
Ejemplo n.º 4
0
 def test_generate_major_pentatonic_scales(self):
     start = 'C5'
     should_be = ['C5', 'D5', 'E5', 'G5', 'A5']
     self.assertEqual(should_be,
                      scales.generateScale('major_pentatonic', start))
Ejemplo n.º 5
0
 def test_generate_major_scales(self):
     start = 'D4'
     should_be = ['D4', 'E4', 'F#4', 'G4', 'A4', 'B4', 'C#5', 'D5']
     self.assertEqual(should_be, scales.generateScale('major', start))
Ejemplo n.º 6
0
 def test_generate_chromatic_scales(self):
     start = 'C5'
     should_be= ['C5', 'C#5', 'D5', 'D#5', 'E5', 'F5', 'F#5', 'G5', 'G#5', 'A5', 'A#5', 'B5']
     self.assertEqual(should_be, scales.generateScale('chromatic', start))
Ejemplo n.º 7
0
 def test_generate_lydian_dominant(self):
     start = 'C5'
     should_be = ['C5', 'D5', 'E5', 'F#5', 'G5', 'A5', 'A#5', 'C6']
     self.assertEqual(should_be,
                      scales.generateScale('melodic_minor', start, mode=4))
Ejemplo n.º 8
0
 def test_generate_lydian_augmented(self):
     start = 'C5'
     should_be = ['C5','D5','E5','F#5','G#5','A5','B5','C6']
     self.assertEqual(should_be, scales.generateScale('melodic_minor', start, mode=3))
Ejemplo n.º 9
0
 def test_generate_lydian_dominant(self):
     start = 'C5'
     should_be = ['C5','D5','E5','F#5','G5','A5','A#5','C6']
     self.assertEqual(should_be, scales.generateScale('melodic_minor', start, mode=4))
Ejemplo n.º 10
0
 def test_generate_mixolydian_mode(self):
     start = 'C5'
     should_be = ['C5','D5','E5','F5','G5','A5','A#5','C6']
     self.assertEqual(should_be, scales.generateScale('major', start, mode=5))
Ejemplo n.º 11
0
 def test_generate_dorian_flat_nine(self):
     start = 'D5'
     should_be = ['D5','D#5','F5','G5','A5','B5','C6','D6']
     self.assertEqual(should_be, scales.generateScale('melodic_minor', start, mode=2))
Ejemplo n.º 12
0
 def test_generate_phrygian_mode(self):
     start = 'E5'
     should_be = ['E5','F5','G5','A5','B5','C6','D6','E6']
     self.assertEqual(should_be, scales.generateScale('major', start, mode=3))
Ejemplo n.º 13
0
 def test_generate_minor_pentatonic_scales(self):
     start = 'A5'
     should_be = ['A5', 'C6', 'D6', 'E6', 'G6']
     self.assertEqual(should_be, scales.generateScale('minor_pentatonic', start))
Ejemplo n.º 14
0
 def test_generate_major_pentatonic_scales(self):
     start = 'C5'
     should_be = ['C5', 'D5', 'E5', 'G5', 'A5']
     self.assertEqual(should_be, scales.generateScale('major_pentatonic', start))
Ejemplo n.º 15
0
 def test_generate_mixolydian_mode(self):
     start = 'C5'
     should_be = ['C5', 'D5', 'E5', 'F5', 'G5', 'A5', 'A#5', 'C6']
     self.assertEqual(should_be, scales.generateScale('major',
                                                      start,
                                                      mode=5))
Ejemplo n.º 16
0
 def test_generate_lydian_augmented(self):
     start = 'C5'
     should_be = ['C5', 'D5', 'E5', 'F#5', 'G#5', 'A5', 'B5', 'C6']
     self.assertEqual(should_be,
                      scales.generateScale('melodic_minor', start, mode=3))
Ejemplo n.º 17
0
 def test_generate_dorian_flat_nine(self):
     start = 'D5'
     should_be = ['D5', 'D#5', 'F5', 'G5', 'A5', 'B5', 'C6', 'D6']
     self.assertEqual(should_be,
                      scales.generateScale('melodic_minor', start, mode=2))
Ejemplo n.º 18
0
 def test_generate_major_scales(self):
     start = 'D4'
     should_be = ['D4', 'E4', 'F#4', 'G4', 'A4', 'B4', 'C#5','D5']
     self.assertEqual(should_be, scales.generateScale('major', start))