Mercurial > hg > syncopation-dataset
diff Syncopation models/music_objects.py @ 24:08c298f47917
updated music objects to have a few more "to_string()" methods on the
objects
finished making the iitial version of the midi reading functions
author | christopherh <christopher.harte@eecs.qmul.ac.uk> |
---|---|
date | Sun, 12 Apr 2015 15:40:06 +0100 |
parents | df1e7c378ee0 |
children | 7a1730bbf15a |
line wrap: on
line diff
--- a/Syncopation models/music_objects.py Sun Apr 12 13:06:17 2015 +0100 +++ b/Syncopation models/music_objects.py Sun Apr 12 15:40:06 2015 +0100 @@ -136,7 +136,7 @@ self.tpq = ticksPerQuarter self.qpm = qpmTempo - self.timeSignature = TimeSignature(timeSignature) + self.timeSignature = timeSignature self.nextBar = nextBar self.prevBar = prevBar @@ -202,5 +202,7 @@ def get_denominator(self): return int(self.tsString.split('/')[1]) + def to_string(self): + return self.tsString