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