# HG changeset patch # User christopherh # Date 1428875035 -3600 # Node ID d9ac6e0d1daff098541eaf5f0ce7b2a94b9efd50 # Parent 7a1730bbf15a4a5fcf5585ff59514c57e2d0b67b mabe the bar able to take a time signature or string representation of a time signature diff -r 7a1730bbf15a -r d9ac6e0d1daf Syncopation models/music_objects.py --- a/Syncopation models/music_objects.py Sun Apr 12 22:37:56 2015 +0100 +++ b/Syncopation models/music_objects.py Sun Apr 12 22:43:55 2015 +0100 @@ -145,7 +145,10 @@ self.tpq = ticksPerQuarter self.qpm = qpmTempo - self.timeSignature = timeSignature + if isinstance(timeSignature, basestring): + self.timeSignature = TimeSignature(timeSignature) + else: + self.timeSignature = timeSignature self.nextBar = nextBar self.prevBar = prevBar