Esempio n. 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)
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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  | "
Esempio n. 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  | "
Esempio n. 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  | "
Esempio n. 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  | "
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 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"
Esempio n. 53
0
 def setUp(self):
     self.item = Note.Note(type="eighth")
     self.lilystring = "8"
     Lily.setUp(self)
Esempio n. 54
0
 def setUp(self):
     self.item = Note.Note(type="eighth", dots=2)
     self.lilystring = "8.."
     Lily.setUp(self)
Esempio n. 55
0
 def setUp(self):
     self.item = Note.Note()
     self.lilystring = ""
     Lily.setUp(self)