Lines Matching refs:beats
221 def ConvertToTicks (self, measures, beats, ticks): argument
222 total_beats = beats + (measures * self.beats_per_measure)
227 beats = ticks / self.ppqn
228 ticks -= beats * self.ppqn
229 measures = beats / self.beats_per_measure
230 beats -= measures * self.beats_per_measure
231 return (measures, beats, ticks)
234 measures, beats, ticks = self.ConvertTicksToMBT(ticks)
235 return format % (measures, beats, ticks)
239 measures, beats, ticks = s.split(':',3)
240 return (int(measures), int(beats), int(ticks))
245 measures, beats, ticks = self.ConvertStrTimeToTuple(s)
246 return self.ConvertToTicks(measures, beats, ticks)
1369 def ConvertToTicks (self, measures, beats, ticks): argument
1370 return self.timebase.ConvertToTicks(measures, beats, ticks)