def setUp(self): self.staff = Staff() self.staff.addMeasure(Measure(1)) self.staff.addMeasure(Measure(2)) self.staff.addMeasure(Measure(3)) self.staff.addMeasure(Measure(4)) self.np = NotePosition(measureIndex=2)
def setUp(self): self.staff = Staff() self.staff.addMeasure(Measure(16)) self.calls = [] def myCallBack(position): self.calls.append( (position.measureIndex, position.noteTime, position.drumIndex)) self.staff.setCallBack(myCallBack)
def setUp(self): self.staff = Staff()
def setUp(self): self.staff = Staff() self.staff.addMeasure(Measure(16)) self.staff.addMeasure(Measure(16)) self.staff.addMeasure(Measure(16)) self.staff.addMeasure(Measure(16))
def _addStaff(self): newStaff = Staff() self._staffs.append(newStaff) self._setStaffCallBack(newStaff, self.numStaffs() - 1)