omde.rhythm
index
/usr/local/lib/python2.1/site-packages/omde/rhythm.py

rhythm.py

 
Modules
            
re

 
Classes
            
_convert
rhythm

 
class _convert
       
  
__len__(self)
_li(self, a)
_t_(self, a)
_ti_(self, a)
display(self, n=None)
getList(self, n=None)

 
class rhythm(_convert)
       
  
__call__(self, a=None)
__init__(self, input='0', whNote=1)
__len__(self) from _convert
_li(self, a) from _convert
_t_(self, a) from _convert
_ti_(self, a) from _convert
display(self, n=None) from _convert
getList(self, n=None) from _convert

 
Functions
            
rhythm2onset(durations, tempo)
duration is a list of duration symbols in form of power of two
 
1 = semibreve
2 = minima
4 = semiminima
8 = croma
16 = semicroma
32 = biscroma
64 = semibiscroma
128 = fusa
 
tempo is the duration is a tuple in the form
 
(duration symbol, duration time)
 
for example:
 
(4, 0.5) or (4, 60 / 120)
 
mean mean that a semiminima lasts 0.5 seconds that is 120 semiminima per minute

 
Data
             __file__ = '/usr/local/lib/python2.1/site-packages/omde/rhythm.pyc'
__name__ = 'omde.rhythm'
duration_symbols = [1, 2, 4, 8, 16, 32, 64, 128]