def makeEmptyScore(numMeasures, counter = None, kit = None): score = Score() if kit is None: kit = DrumKitFactory.DrumKitFactory.getNamedDefaultKit() score.drumKit = kit if counter is None: registry = CounterRegistry() counter = list(registry.countsByTicks(2)) counter = counter[0][1] counter = makeSimpleCount(counter, 4) for dummy in xrange(numMeasures): score.insertMeasureByIndex(len(counter), counter = counter) score.scoreData.makeEmpty() return score
def makeEmptyScore(numMeasures, counter=None, kit=None): score = Score() if kit is None: kit = DrumKitFactory.DrumKitFactory.getNamedDefaultKit() score.drumKit = kit if counter is None: registry = CounterRegistry() counter = list(registry.countsByTicks(2)) counter = counter[0][1] counter = makeSimpleCount(counter, 4) for dummy in xrange(numMeasures): score.insertMeasureByIndex(len(counter), counter=counter) score.scoreData.makeEmpty() return score
def __init__(self): self._staffs = [] self.drumKit = DrumKitFactory.DrumKitFactory.emptyKit() self._callBack = None self._callBacksEnabled = True self.scoreData = ScoreMetaData() self._sections = [] self._formatState = None self.paperSize = "Letter" counter = CounterRegistry().getCounterByIndex(0) self.defaultCount = makeSimpleCount(counter, 4) self.systemSpacing = 25 self.fontOptions = FontOptions() self.lilysize = 20 self.lilypages = 0 self.lilyFill = True self.lilyFormat = 0 self.fileFormat = None
def _setMeasureCount(self, newCounter): newMeasureCount = makeSimpleCount(newCounter, self._counter.numBeats()) command = ChangeMeasureCountCommand(self._qScore, self._np, newMeasureCount) self._qScore.addCommand(command)