本文整理汇总了Python中MuseParse.tests.testUsingXML.xmlSet.xmlSet.setUp函数的典型用法代码示例。如果您正苦于以下问题:Python setUp函数的具体用法?Python setUp怎么用?Python setUp使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setUp函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUp
def setUp(self):
xmlSet.setUp(self)
self.p_id = "P1"
if hasattr(self, "measure_id"):
self.measure = piece.getPart(
self.p_id).getMeasure(
self.measure_id, 1)
示例2: setUp
def setUp(self):
xmlSet.setUp(self)
self.m_num = 32
self.p_id = "P1"
self.p_name = "Flute"
if hasattr(self, "measure_id"):
self.measure = piece.getPart(self.p_id).getMeasure(self.measure_id, 1)
示例3: setUp
def setUp(self):
xmlSet.setUp(self)
self.p_id = "P1"
if hasattr(self, "measure_id"):
self.measure = piece.getPart(self.p_id).getMeasure(self.measure_id, 1)
if hasattr(self, "note_id"):
self.note = Search(NoteNode, self.measure, self.note_id+1).GetItem()
示例4: setUp
def setUp(self):
xmlSet.setUp(self)
self.p_id = "P1"
self.sign = ""
self.line = None
self.clef_octave_change = None
self.measure = None
示例5: setUp
def setUp(self):
xmlSet.setUp(self)
if hasattr(self, "measure_id"):
self.measure = piece.getPart("P1").getMeasure(measure=self.measure_id,staff=1)
if hasattr(self, "item_id"):
self.item = Search(NoteNode, self.measure, self.item_id+1).GetItem()
if hasattr(self, "n_id"):
self.notation = self.item.wrap_notation[self.n_id]
示例6: setUp
def setUp(self):
xmlSet.setUp(self)
self.p_id = "P1"
self.measure_id = None
self.step = ""
self.alter = None
self.octave = None
self.accidental = None
self.note = None
示例7: setUp
def setUp(self):
xmlSet.setUp(self)
self.m_num = 32
self.p_id = "P1"
self.p_name = "Piccolo"
self.note_num = {1: 4,2: 4,3: 1,4: 1,5: 1,6: 1,7: 1,8: 1,9: 1,10: 1,
11: 1,12: 1,13: 1,14: 1,15: 1,16: 1,17: 1,18: 1,19: 1,
20: 1,21: 1,22: 1,23: 1,24: 1,25: 1,26: 1,27: 1,28: 1,
29: 1,30: 1,31: 1,32: 1}
示例8: setUp
def setUp(self):
xmlSet.setUp(self)
if hasattr(self, "measure_id"):
self.measure = piece.getPart("P1").getMeasure(self.measure_id, 1)
if hasattr(self, "item_id"):
self.item = Search(
NoteNode,
self.measure,
self.item_id +
1).GetItem()
示例9: setUp
def setUp(self):
self.note_id = 1
self.x = 595.276
self.y = 1627.09
self.size = 24
self.justify = "center"
self.valign = "top"
self.value = "Hello Friends"
self.page = 1
xmlSet.setUp(self)
self.item = piece.GetItem().meta.title
self.type = str
示例10: setUp
def setUp(self):
xmlSet.setUp(self)
self.measure_id = 14
self.item_id = 1
self.tocoda = "coda"
self.m_num = 32
self.p_id = "P1"
if hasattr(self, "measure_id"):
self.measureNode = piece.getPart(self.p_id).getMeasure(self.measure_id, 1)
if hasattr(self, "item_id"):
note = Search(Placeholder, self.measureNode, 1)
self.item = Search(DirectionNode, note, 1).GetItem()
示例11: setUp
def setUp(self):
xmlSet.setUp(self)
self.p_id = "P1"
if hasattr(self, "measure_id"):
self.measure = piece.getPart(
self.p_id).getMeasure(
self.measure_id, 1)
if hasattr(self, "item_id"):
self.item = Search(
NoteNode,
self.measure,
self.item_id +
1).GetItem()
if hasattr(self, "orn_id"):
self.ornament = self.item.postnotation[self.orn_id]
示例12: setUp
def setUp(self):
xmlSet.setUp(self)