Пример #1
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.AddSlur(Directions.Slur(type="stop"))
     self.item.AddSlur(Directions.Slur(type="start"))
     self.lilystring = "c')("
     Lily.setUp(self)
Пример #2
0
 def setUp(self):
     self.item = Note.Note(chord="stop")
     self.item.pitch = Note.Pitch()
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{<", "}"]
     self.lilystring = "c'>"
     self.name = "notecordstop"
Пример #3
0
 def setUp(self):
     self.item = Note.Note(chord="continue")
     self.item.pitch = Note.Pitch()
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", "}"]
     self.lilystring = "c'"
     self.name = "chordcont"
Пример #4
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.lilystring = "c'"
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", "}"]
     self.name = "notepitch"
Пример #5
0
 def setUp(self):
     self.item = Note.Note(chord="start")
     self.item.pitch = Note.Pitch()
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", ">}"]
     self.lilystring = "<c'"
     self.name = "notechord"
Пример #6
0
 def setUp(self):
     self.item = Note.Note(duration=4, divisions=4, rest=True)
     self.item.pitch = Note.Pitch()
     self.lilystring = "r4"
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", "}"]
     self.name = "noterest"
Пример #7
0
 def setUp(self):
     self.item = Note.Note(duration=16, divisions=4)
     self.item.pitch = Note.Pitch()
     self.lilystring = "c'1"
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", "}"]
     self.name = "notedurationsemibreve"
Пример #8
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.addNotation(Note.Slide(type="stop"))
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", "}"]
     self.lilystring = "c'"
     self.name = "noteslidestop"
Пример #9
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.print = False
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{a8 ", " c'8]}"]
     self.lilystring = "\n\hideNotes\nc'\n\\unHideNotes"
     self.name = "notebeamstart"
Пример #10
0
 def setUp(self):
     self.item = MeasureNode()
     self.item.addDirection(Directions.Metronome(beat="quarter", min=60))
     self.item.addNote(NoteNode())
     self.lilystring = " \\tempo 4=60  | "
     self.compile = True
     self.wrappers = ["\\new Staff {", "}"]
     Lily.setUp(self)
     self.name = "measuretempo"
Пример #11
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.addNotation(Ornaments.Trill())
     self.lilystring = "c'\\trill"
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", "}"]
     self.name = "notetrill"
Пример #12
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.addNotation(Ornaments.InvertedTurn())
     self.lilystring = "c'\\reverseturn"
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", "}"]
     self.name = "notereverseturn"
Пример #13
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.addBeam(1, Note.Beam("end"))
     self.item.addBeam(2, Note.Beam("begin"))
     Lily.setUp(self)
     self.wrappers = ["\\new Staff{a8 ", "c'8]}"]
     self.lilystring = "c']["
     self.name = "notebeamstart"
Пример #14
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.notehead = Note.Notehead(type="diamond")
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", "}"]
     self.lilystring = "c'\\harmonic"
     self.name = "notehead"
Пример #15
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.addNotation(Note.GraceNote(slash=True))
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", "}}"]
     self.lilystring = " c'"
     self.name = "notegrace"
Пример #16
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.notehead = Note.Notehead(type="diamond")
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", "}"]
     self.lilystring = "c'\\harmonic"
     self.name = "notehead"
Пример #17
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.addNotation(Note.Glissando())
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", "}"]
     self.lilystring = "\\override Glissando.style = #'zigzag c'\glissando"
     self.name = "notegliss"
Пример #18
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.addBeam(1, Note.Beam("end"))
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{a [", "}"]
     self.lilystring = "c']"
     self.name = "notebeamend"
Пример #19
0
 def setUp(self):
     self.item = MeasureNode()
     self.item.addDirection(Directions.Metronome(beat="quarter",min=60))
     self.item.addNote(NoteNode())
     self.lilystring = " \\tempo 4=60  | "
     self.compile = True
     self.wrappers = ["\\new Staff {", "}"]
     Lily.setUp(self)
     self.name = "measuretempo"
Пример #20
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.addNotation(Note.Glissando())
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", "}"]
     self.lilystring = "\\override Glissando.style = #'zigzag c'\glissando"
     self.name = "notegliss"
Пример #21
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.addBeam(1, Note.Beam("end"))
     self.item.addBeam(2, Note.Beam("begin"))
     Lily.setUp(self)
     self.wrappers = ["\\new Staff{a8 ", "c'8]}"]
     self.lilystring = "c']["
     self.name = "notebeamstart"
Пример #22
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.print = False
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{a8 ", " c'8]}"]
     self.lilystring = "\n\hideNotes\nc'\n\\unHideNotes"
     self.name = "notebeamstart"
Пример #23
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.addBeam(1, Note.Beam("continue"))
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{a [c'8", "8]}"]
     self.lilystring = "c'"
     self.name = "notebeamcont"
Пример #24
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.addBeam(1, Note.Beam("end"))
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{a [", "}"]
     self.lilystring = "c']"
     self.name = "notebeamend"
Пример #25
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.addBeam(1, Note.Beam("continue"))
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{a [c'8", "8]}"]
     self.lilystring = "c'"
     self.name = "notebeamcont"
Пример #26
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.addNotation(Note.GraceNote(slash=True))
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", "}}"]
     self.lilystring = " c'"
     self.name = "notegrace"
Пример #27
0
    def setUp(self):
        self.item = Note.Note()
        self.item.pitch = Note.Pitch()
        self.item.addBeam(1, Note.Beam("begin"))
        self.lilystring = "c'["

        Lily.setUp(self)
        self.compile = True
        self.wrappers = ["\\new Staff{", "}"]
        self.name = "notepitch"
Пример #28
0
 def setUp(self):
     self.item = MeasureNode()
     note = Note.Note()
     note.pitch = Note.Pitch()
     self.item.addNote(note)
     self.lilystring = "c'  | "
     self.compile = True
     self.wrappers = ["\\new Staff {", "}"]
     Lily.setUp(self)
     self.name = "measurenote"
Пример #29
0
 def setUp(self):
     self.item = MeasureNode()
     note = Note.Note()
     note.pitch= Note.Pitch()
     self.item.addNote(note)
     self.lilystring = "c'  | "
     self.compile = True
     self.wrappers = ["\\new Staff {", "}"]
     Lily.setUp(self)
     self.name = "measurenote"
Пример #30
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.timeMod = Note.TimeModifier(normal=2, actual=3)
     self.item.addNotation(Note.Tuplet(type="start"))
     self.lilystring = "\\tuplet 3/2 {c'"
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", "}}"]
     self.name = "notetuplet"
Пример #31
0
 def setUp(self):
     self.item = MeasureNode()
     self.item.addDirection(Directions.Direction(text="hello world",placement="above"))
     self.item.addDirection(Directions.Metronome(beat="quarter",min=60))
     self.item.addNote(NoteNode())
     self.lilystring = " ^\\markup { \"hello world\"  } \\tempo 4=60  | "
     self.compile = True
     self.wrappers = ["\\new Staff {", "}"]
     Lily.setUp(self)
     self.name = "measuretwodirections"
Пример #32
0
    def setUp(self):
        self.item = Note.Note()
        self.item.pitch = Note.Pitch()
        self.item.addNotation(Ornaments.Tremolo(type="start"))

        self.lilystring = "\\repeat tremolo 4 {c'"
        Lily.setUp(self)
        self.compile = True
        self.wrappers = ["\\new Staff{", "}}"]
        self.name = "notetremolo"
Пример #33
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.addNotation(Note.NonArpeggiate(type="start"))
     self.item.addNotation(Note.NonArpeggiate(type="stop"))
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", "}"]
     self.lilystring = "\\arpeggioBracket  c'\\arpeggio"
     self.name = "notenonarpegg"
Пример #34
0
    def setUp(self):
        self.item = Note.Note()
        self.item.pitch = Note.Pitch()
        self.item.addNotation(Ornaments.Tremolo(type="start"))

        self.lilystring = "\\repeat tremolo 4 {c'"
        Lily.setUp(self)
        self.compile = True
        self.wrappers = ["\\new Staff{", "}}"]
        self.name = "notetremolo"
Пример #35
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.addNotation(Note.NonArpeggiate(type="start"))
     self.item.addNotation(Note.NonArpeggiate(type="stop"))
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", "}"]
     self.lilystring = "\\arpeggioBracket  c'\\arpeggio"
     self.name = "notenonarpegg"
Пример #36
0
 def setUp(self):
     self.item = Note.Note()
     self.item.pitch = Note.Pitch()
     self.item.timeMod = Note.TimeModifier(normal=2, actual=3)
     self.item.addNotation(Note.Tuplet(type="start"))
     self.lilystring = "\\tuplet 3/2 {c'"
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{", "}}"]
     self.name = "notetuplet"
Пример #37
0
 def setUp(self):
     self.item = MeasureNode()
     note = Note.Note()
     note.pitch = Note.Pitch()
     self.item.addDirection(Directions.Direction(text="hello",placement="below"))
     self.item.addNote(note)
     self.lilystring = "c' _\\markup { \"hello\"  }  | "
     self.compile = True
     self.wrappers = ["\\new Staff {", "}"]
     Lily.setUp(self)
     self.name = "measurenotedirection"
Пример #38
0
 def setUp(self):
     self.item = MeasureNode()
     self.item.addDirection(
         Directions.Direction(text="hello world", placement="above"))
     self.item.addDirection(Directions.Metronome(beat="quarter", min=60))
     self.item.addNote(NoteNode())
     self.lilystring = " ^\\markup { \"hello world\"  } \\tempo 4=60  | "
     self.compile = True
     self.wrappers = ["\\new Staff {", "}"]
     Lily.setUp(self)
     self.name = "measuretwodirections"
Пример #39
0
 def setUp(self):
     self.item = StaffNode()
     self.item.AddChild(MeasureNode(), 1)
     measure = self.item.GetChild(1)
     note = Note.Note()
     note.pitch = Note.Pitch()
     note.addBeam(2, Note.Beam("begin"))
     measure.addNote(note)
     self.item.NewBeam("begin")
     Lily.setUp(self)
     self.lilystring = " % measure 1\nc'  | \n\n"
     self.name = "notenoendbeam"
Пример #40
0
 def setUp(self):
     self.item = MeasureNode()
     self.item.partial = True
     self.item.meter = Meter.Meter(beats=4, type=4)
     note = Note.Note(type="quarter")
     note.pitch = Note.Pitch()
     self.item.addNote(note)
     self.lilystring = "\\time 4/4 \partial 4 c'4  | "
     self.compile = True
     self.wrappers = ["\\new Staff {", "}"]
     Lily.setUp(self)
     self.name = "measurePartial"
Пример #41
0
 def setUp(self):
     self.item = StaffNode()
     self.item.AddChild(MeasureNode(), 1)
     measure = self.item.GetChild(1)
     note = Note.Note()
     note.pitch = Note.Pitch()
     note.addBeam(2, Note.Beam("begin"))
     measure.addNote(note)
     self.item.NewBeam("begin")
     Lily.setUp(self)
     self.lilystring = " % measure 1\nc'  | \n\n"
     self.name = "notenoendbeam"
Пример #42
0
 def setUp(self):
     self.item = MeasureNode()
     self.item.partial = True
     self.item.meter = Meter.Meter(beats=4, type=4)
     note = Note.Note(type="quarter")
     note.pitch = Note.Pitch()
     self.item.addNote(note)
     self.lilystring = "\\time 4/4 \partial 4 c'4  | "
     self.compile = True
     self.wrappers = ["\\new Staff {", "}"]
     Lily.setUp(self)
     self.name = "measurePartial"
Пример #43
0
 def setUp(self):
     self.item = MeasureNode()
     note = Note.Note()
     note.pitch = Note.Pitch()
     self.item.addDirection(
         Directions.Direction(text="hello", placement="below"))
     self.item.addNote(note)
     self.lilystring = "c' _\\markup { \"hello\"  }  | "
     self.compile = True
     self.wrappers = ["\\new Staff {", "}"]
     Lily.setUp(self)
     self.name = "measurenotedirection"
Пример #44
0
 def setUp(self):
     self.item = MeasureNode(partial=True)
     self.item.meter = Meter.Meter(type=4,beats=4)
     note = Note.Note()
     note.SetType("quarter")
     note.pitch = Note.Pitch(octave=4)
     note2 = Note.Note()
     note2.SetType("half")
     note2.pitch = Note.Pitch(octave=4)
     self.item.addNote(note)
     self.item.addNote(note2)
     Lily.setUp(self)
     self.lilystring = "\\time 4/4 \partial 2. c'4 c'2  | "
Пример #45
0
 def setUp(self):
     self.item = MeasureNode(partial=True)
     self.item.meter = Meter.Meter(type=4, beats=4)
     note = Note.Note()
     note.SetType("quarter")
     note.pitch = Note.Pitch(octave=4)
     note2 = Note.Note()
     note2.SetType("half")
     note2.pitch = Note.Pitch(octave=4)
     self.item.addNote(note)
     self.item.addNote(note2)
     Lily.setUp(self)
     self.lilystring = "\\time 4/4 \partial 2. c'4 c'2  | "
Пример #46
0
 def setUp(self):
     self.item = MeasureNode(partial=True)
     self.item.meter = Meter.Meter(type=4, beats=4)
     note = Note.Note(type="quarter")
     note.pitch = Note.Pitch(octave=4)
     note2 = Note.Note(type="half")
     note2.pitch = Note.Pitch(octave=4)
     note3 = Note.Note(type="eighth")
     note3.pitch = Note.Pitch(octave=4)
     self.item.addNote(note)
     self.item.addNote(note2)
     self.item.addNote(note3)
     Lily.setUp(self)
     self.lilystring = "\\time 4/4 \partial 2.. c'4 c'2 c'8  | "
Пример #47
0
 def setUp(self):
     self.item = MeasureNode(partial=True)
     self.item.meter = Meter.Meter(type=4,beats=4)
     note = Note.Note(type="quarter")
     note.pitch = Note.Pitch(octave=4)
     note2 = Note.Note(type="half")
     note2.pitch = Note.Pitch(octave=4)
     note3 = Note.Note(type="eighth")
     note3.pitch = Note.Pitch(octave=4)
     self.item.addNote(note)
     self.item.addNote(note2)
     self.item.addNote(note3)
     Lily.setUp(self)
     self.lilystring = "\\time 4/4 \partial 2.. c'4 c'2 c'8  | "
Пример #48
0
 def setUp(self):
     self.item = MeasureNode()
     note = Note.Note(type="quarter")
     note.pitch = Note.Pitch()
     grace = Note.GraceNote(first=True)
     grace.last = True
     note.addNotation(grace)
     self.item.addNote(note)
     self.item.RunVoiceChecks()
     self.lilystring = "\grace { c'4 }  | "
     self.compile = True
     self.wrappers = ["\\new Staff {", "}"]
     Lily.setUp(self)
     self.name = "measurenotegrace"
Пример #49
0
 def setUp(self):
     self.item = MeasureNode()
     note = Note.Note(type="quarter")
     note.pitch= Note.Pitch()
     grace = Note.GraceNote(first=True)
     grace.last = True
     note.addNotation(grace)
     self.item.addNote(note)
     self.item.RunVoiceChecks()
     self.lilystring = "\grace { c'4 }  | "
     self.compile = True
     self.wrappers = ["\\new Staff {", "}"]
     Lily.setUp(self)
     self.name = "measurenotegrace"
Пример #50
0
 def setUp(self):
     self.item = MeasureNode()
     node = NoteNode()
     node.GetItem().pitch = Note.Pitch(octave=4)
     self.item.addNote(node)
     dirnode = Directions.OctaveShift(amount=8, type="up")
     self.item.addDirection(dirnode)
     node2 = NoteNode()
     node2.GetItem().pitch = Note.Pitch(octave=4)
     self.item.addNote(node2)
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{a8 ", "c'8]}"]
     self.lilystring = "c' \n\\ottava #-1\n c'  | "
     self.name = "noteOctaveShift"
Пример #51
0
 def setUp(self):
     self.item = MeasureNode()
     node = Note.Note(type="quarter")
     node.pitch = Note.Pitch(octave=4)
     self.item.addNote(node, voice=1)
     self.item.addNote(node, voice=1)
     self.item.Backup(1)
     node2 = Note.Note(type="quarter")
     node2.pitch = Note.Pitch(octave=4)
     self.item.addNote(node2, voice=2)
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{a8 ", "c'8]}"]
     self.lilystring = "<< % voice 1\n\\new Voice = \"one\"\n{\\voiceOne c'4 c'4 } % voice 2\n\\new Voice = \"two\"\n{\\voiceTwo r4 c'4 }>> | "
     self.name = "noteOctaveShift"
Пример #52
0
 def setUp(self):
     self.item = MeasureNode()
     node = Note.Note(type="quarter")
     node.pitch = Note.Pitch(octave=4)
     self.item.addNote(node, voice=1)
     self.item.addNote(node, voice=1)
     self.item.Backup(1)
     node2 = Note.Note(type="quarter")
     node2.pitch = Note.Pitch(octave=4)
     self.item.addNote(node2, voice=2)
     Lily.setUp(self)
     self.compile = True
     self.wrappers = ["\\new Staff{a8 ","c'8]}"]
     self.lilystring = "<< % voice 1\n\\new Voice = \"one\"\n{\\voiceOne c'4 c'4 } % voice 2\n\\new Voice = \"two\"\n{\\voiceTwo r4 c'4 }>> | "
     self.name = "noteOctaveShift"
Пример #53
0
 def setUp(self):
     self.item = Note.Note(type="eighth")
     self.lilystring = "8"
     Lily.setUp(self)
Пример #54
0
 def setUp(self):
     self.item = Note.Note(type="eighth", dots=2)
     self.lilystring = "8.."
     Lily.setUp(self)
Пример #55
0
 def setUp(self):
     self.item = Note.Note()
     self.lilystring = ""
     Lily.setUp(self)