Package jazzparser :: Package harmonical
[hide private]
[frames] | no frames]

Source Code for Package jazzparser.harmonical

 1  """The Harmonical: a just-intonation music generator module. 
 2   
 3  The Harmonical is an instrument that can play music in any tuning  
 4  system, including just intonation, by allowing the music to specify  
 5  a precise pitch for each note. 
 6   
 7  Its name is that given by Alexander J. Ellis, in his translation of  
 8  Helmholtz's On the Sensations of Tone, to his specially tuned harmonium  
 9  that allowed him to experiment with just tuning systems. 
10   
11  """ 
12   
13  """Tonal space clusters to realize different chord types.""" 
14  CHORD_TYPES = { 
15      'M7' : [(0,0,0),(1,0,1),(0,1,1),(1,1,0)], 
16      'm'  : [(0,0,0),(1,0,1),(1,-1,1)], 
17      # Not entirely certain this is the right 7 
18      'm7' : [(0,0,0),(1,0,1),(1,-1,1),(-2,0,2)], 
19      '7'  : [(0,0,0),(1,0,1),(0,1,1),(-2,0,2)], 
20      ''   : [(0,0,0),(1,0,1),(0,1,1)], 
21      'prime' : [(0,0,0)], 
22  } 
23