Lines Matching refs:timebase
388 def TimeEventStr (self, timebase): argument
389 return '[%s]: %s' % (timebase.ConvertTicksToStr(self.ticks), self.__str__())
955 def DumpEvents (self, output, timebase): argument
958 output.write('%s\n' % event.TimeEventStr(timebase))
961 midi_file_logger.debug(event.TimeEventStr(timebase))
983 tick_warning_level = stream.timebase.ppqn * LARGE_TICK_WARNING
1195 controller_events.DumpEvents(None, self.stream.timebase)
1219 …er.debug('Trim: trimming note that extends past end %s' % event.TimeEventStr(self.stream.timebase))
1242 self.events.DumpEvents(output, self.stream.timebase)
1244 output.write('[%s]: end-of-track\n' % self.stream.timebase.ConvertTicksToStr(self.end_of_track))
1246 …midi_file_logger.debug('[%s]: end-of-track' % self.stream.timebase.ConvertTicksToStr(self.end_of_t…
1259 self.timebase = TimeBase()
1282 …riff_tag, self.hdr_len, self.format, self.num_tracks, self.timebase.ppqn = struct.unpack(SMF_HEADE…
1284 (riff_tag, self.hdr_len, self.format, self.num_tracks, self.timebase.ppqn))
1334 …MF_RIFF_TAG, struct.calcsize(SMF_HEADER_FMT) - 8, self.format, self.num_tracks, self.timebase.ppqn)
1370 return self.timebase.ConvertToTicks(measures, beats, ticks)
1434 self.timebase = None
1454 md.endMbt = m.timebase.ConvertTicksToMBT(m.end_of_file)
1458 md.maxTicks = m.timebase.ppqn
1461 md.timebase = m.timebase
1462 md.ppqn = m.timebase.ppqn
1463 md.beats_per_measure = m.timebase.beats_per_measure