当前位置: 首页>>代码示例>>Python>>正文


Python xmlSet.setUp函数代码示例

本文整理汇总了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)
开发者ID:Godley,项目名称:MuseParse,代码行数:7,代码来源:testLines.py

示例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)
开发者ID:PCrompton,项目名称:MuseParse,代码行数:7,代码来源:testFingering.py

示例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()
开发者ID:PCrompton,项目名称:MuseParse,代码行数:7,代码来源:testNoteheads.py

示例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
开发者ID:Godley,项目名称:MuseParse,代码行数:7,代码来源:testClef.py

示例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]
开发者ID:PCrompton,项目名称:MuseParse,代码行数:8,代码来源:testBreathMarks.py

示例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
开发者ID:PCrompton,项目名称:MuseParse,代码行数:9,代码来源:testAccidentals.py

示例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}
开发者ID:PCrompton,项目名称:MuseParse,代码行数:9,代码来源:testArpegGliss.py

示例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()
开发者ID:Godley,项目名称:MuseParse,代码行数:11,代码来源:testTuplets.py

示例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
开发者ID:Godley,项目名称:MuseParse,代码行数:12,代码来源:testText.py

示例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()
开发者ID:PCrompton,项目名称:MuseParse,代码行数:13,代码来源:testRepeatMarks.py

示例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]
开发者ID:Godley,项目名称:MuseParse,代码行数:16,代码来源:testTrillsFermataOtherOrnaments.py

示例12: setUp

 def setUp(self):
     xmlSet.setUp(self)
开发者ID:PCrompton,项目名称:MuseParse,代码行数:2,代码来源:testMultipleParts.py


注:本文中的MuseParse.tests.testUsingXML.xmlSet.xmlSet.setUp函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。