summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4373b7d)
self._duration = self.duration + note.duration
self.divisions = 1
self._duration = self.duration + note.duration
self.divisions = 1
-# @property
-# def midi(self) :
-# mid = DIATO_SCALE[self.step]
-# mid = mid + (self.octave - OCTAVE_REF) * 12
-# mid = mid + self.alter
-# return mid
-
@property
def duration(self) :
return self._duration / self.divisions
@property
def duration(self) :
return self._duration / self.divisions
-# @property
-# def name(self) :
-# name = '%s%d' % (self.step, self.octave)
-# if self.alter < 0 :
-# alterext = 'b'
-# else :
-# alterext = '#'
-# name = '%s%s' % (name, abs(self.alter) * alterext)
-# return name
-#
-# @property
-# def nom(self) :
-# name = FR_NOTES[self.step]
-# if self.alter < 0 :
-# alterext = 'b'
-# else :
-# alterext = '#'
-# name = '%s%s' % (name, abs(self.alter) * alterext)
-# return name
-
@property
def column(self):
return self.scale.index(self.midi)
@property
def column(self):
return self.scale.index(self.midi)