示例#1
0
 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)
示例#2
0
    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)
示例#3
0
 def setUp(self):
     self.staff = Staff()
示例#4
0
 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))
示例#5
0
 def _addStaff(self):
     newStaff = Staff()
     self._staffs.append(newStaff)
     self._setStaffCallBack(newStaff, self.numStaffs() - 1)