X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/blobdiff_plain/4373b7d0a2b3df22e290858a65cd54265be6e76c..1bdf29a0b4412135ee91f6165e3c3125e05096f8:/src/app/musicxml.py diff --git a/src/app/musicxml.py b/src/app/musicxml.py index 36a65bc..49e1984 100755 --- a/src/app/musicxml.py +++ b/src/app/musicxml.py @@ -280,37 +280,10 @@ class Note(Tone) : 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 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)