예제 #1
0
 def test_note_to_lily_9b(self):
     test_note_1 = note.Rest(quarterLength=1.0)
     test_note_1.tie = tie.Tie('start')
     test_note_1.lily_markup = '_\\markup{ "example!" }'
     actual = functions.note_to_lily(test_note_1)
     expected = u"r4~_\\markup{ \"example!\" }"
     self.assertEqual(actual, expected)
예제 #2
0
 def test_note_to_lily_9b(self):
     test_note_1 = note.Rest(quarterLength=1.0)
     test_note_1.tie = tie.Tie('start')
     test_note_1.lily_markup = '_\\markup{ "example!" }'
     actual = functions.note_to_lily(test_note_1)
     expected = u"r4~_\\markup{ \"example!\" }"
     self.assertEqual(actual, expected)
예제 #3
0
 def test_note_to_lily_9a(self):
     test_note_1 = note.Note('C4', quarterLength=1.0)
     test_note_1.tie = tie.Tie('start')
     test_note_1.lily_markup = '_\\markup{ "example!" }'
     test_note_1.lily_invisible = True
     actual = functions.note_to_lily(test_note_1)
     expected = u"s4~_\\markup{ \"example!\" }"
     self.assertEqual(actual, expected)
예제 #4
0
 def test_note_to_lily_9a(self):
     test_note_1 = note.Note('C4', quarterLength=1.0)
     test_note_1.tie = tie.Tie('start')
     test_note_1.lily_markup = '_\\markup{ "example!" }'
     test_note_1.lily_invisible = True
     actual = functions.note_to_lily(test_note_1)
     expected = u"s4~_\\markup{ \"example!\" }"
     self.assertEqual(actual, expected)
예제 #5
0
 def test_chord_maker_2(self):
     expected = u"<c' e' g'>16."
     the_chord = chord.Chord('c e g', quarterLength=0.375)
     actual = functions.note_to_lily(the_chord)
     self.assertEqual(actual, expected)
예제 #6
0
 def test_note_to_lily_11a(self):
     some_note = note.Note('C4', quarterLength=7.99609375)
     some_note.lily_invisible = True
     actual = functions.note_to_lily(some_note)
     expected = u"s1~ s2~ s4~ s8~ s16~ s32~ s64...."
     self.assertEqual(actual, expected)
예제 #7
0
 def test_note_to_lily_1c(self):
     expected = u"r4"
     some_note = note.Rest(quarterLength=1.0)
     actual = functions.note_to_lily(some_note)
     self.assertEqual(actual, expected)
예제 #8
0
 def test_note_to_lily_8(self):
     test_note_1 = note.Note('C4', quarterLength=1.0)
     test_note_1.tie = tie.Tie('start')
     actual = functions.note_to_lily(test_note_1)
     expected = u"c'4~"
     self.assertEqual(actual, expected)
예제 #9
0
 def test_note_to_lily_6(self):
     actual = functions.note_to_lily(note.Rest(quarterLength=16.0))
     expected = u"r\\longa"
     self.assertEqual(actual, expected)
예제 #10
0
 def test_note_to_lily_3(self):
     actual = functions.note_to_lily(note.Note('F##3',
                                               quarterLength=0.0625))
     expected = u"fisis64"
     self.assertEqual(actual, expected)
예제 #11
0
 def test_note_to_lily_3(self):
     actual = functions.note_to_lily(note.Note('F##3', quarterLength=0.0625))
     expected = u"fisis64"
     self.assertEqual(actual, expected)
예제 #12
0
 def test_note_to_lily_1b(self):
     expected = u"s4"
     some_note = note.Rest(quarterLength=1.0)
     some_note.lily_invisible = True
     actual = functions.note_to_lily(some_note)
     self.assertEqual(actual, expected)
예제 #13
0
 def test_note_to_lily_8(self):
     test_note_1 = note.Note('C4', quarterLength=1.0)
     test_note_1.tie = tie.Tie('start')
     actual = functions.note_to_lily(test_note_1)
     expected = u"c'4~"
     self.assertEqual(actual, expected)
예제 #14
0
 def test_note_to_lily_7(self):
     actual = functions.note_to_lily(note.Rest(quarterLength=0.0625))
     expected = u"r64"
     self.assertEqual(actual, expected)
예제 #15
0
 def test_note_to_lily_6(self):
     actual = functions.note_to_lily(note.Rest(quarterLength=16.0))
     expected = u"r\\longa"
     self.assertEqual(actual, expected)
예제 #16
0
 def test_note_to_lily_4(self):
     actual = functions.note_to_lily(note.Note('F--11', quarterLength=3.75))
     expected = u"feses''''''''2..."
     self.assertEqual(actual, expected)
예제 #17
0
 def test_chord_maker_4(self):
     expected = u"<c' e' g'>4~"
     the_chord = chord.Chord('c e g')
     the_chord.tie = tie.Tie('start')
     actual = functions.note_to_lily(the_chord)
     self.assertEqual(actual, expected)
예제 #18
0
 def test_note_to_lily_1c(self):
     expected = u"r4"
     some_note = note.Rest(quarterLength=1.0)
     actual = functions.note_to_lily(some_note)
     self.assertEqual(actual, expected)
예제 #19
0
 def test_chord_maker_6(self):
     expected = u"<c'>4"
     the_chord = chord.Chord('c')
     actual = functions.note_to_lily(the_chord)
     self.assertEqual(actual, expected)
예제 #20
0
 def test_note_to_lily_2(self):
     actual = functions.note_to_lily(note.Note('E#0', quarterLength=16.0))
     expected = u"eis,,,\\longa"
     self.assertEqual(actual, expected)
예제 #21
0
 def test_note_to_lily_1b(self):
     expected = u"s4"
     some_note = note.Rest(quarterLength=1.0)
     some_note.lily_invisible = True
     actual = functions.note_to_lily(some_note)
     self.assertEqual(actual, expected)
예제 #22
0
 def test_note_to_lily_11(self):
     actual = functions.note_to_lily(note.Note('C4', quarterLength=7.99609375))
     expected = u"c'1~ c'2~ c'4~ c'8~ c'16~ c'32~ c'64...."
     self.assertEqual(actual, expected)
예제 #23
0
 def test_note_to_lily_2(self):
     actual = functions.note_to_lily(note.Note('E#0', quarterLength=16.0))
     expected = u"eis,,,\\longa"
     self.assertEqual(actual, expected)
예제 #24
0
 def test_note_to_lily_11a(self):
     some_note = note.Note('C4', quarterLength=7.99609375)
     some_note.lily_invisible = True
     actual = functions.note_to_lily(some_note)
     expected = u"s1~ s2~ s4~ s8~ s16~ s32~ s64...."
     self.assertEqual(actual, expected)
예제 #25
0
 def test_note_to_lily_4(self):
     actual = functions.note_to_lily(note.Note('F--11', quarterLength=3.75))
     expected = u"feses''''''''2..."
     self.assertEqual(actual, expected)
예제 #26
0
 def test_note_to_lily_11b(self):
     actual = functions.note_to_lily(note.Rest(quarterLength=7.99609375))
     expected = u"r1~ r2~ r4~ r8~ r16~ r32~ r64...."
     self.assertEqual(actual, expected)
예제 #27
0
 def test_note_to_lily_7(self):
     actual = functions.note_to_lily(note.Rest(quarterLength=0.0625))
     expected = u"r64"
     self.assertEqual(actual, expected)
예제 #28
0
 def test_chord_maker_2(self):
     expected = u"<c' e' g'>16."
     the_chord = chord.Chord('c e g', quarterLength=0.375)
     actual = functions.note_to_lily(the_chord)
     self.assertEqual(actual, expected)
예제 #29
0
 def test_chord_maker_3(self):
     expected = u"<c' e' g'>4__look_at_me!"
     the_chord = chord.Chord('c e g')
     the_chord.lily_markup = u'__look_at_me!'
     actual = functions.note_to_lily(the_chord)
     self.assertEqual(actual, expected)
예제 #30
0
 def test_chord_maker_4(self):
     expected = u"<c' e' g'>4~"
     the_chord = chord.Chord('c e g')
     the_chord.tie = tie.Tie('start')
     actual = functions.note_to_lily(the_chord)
     self.assertEqual(actual, expected)
예제 #31
0
 def test_note_to_lily_11(self):
     actual = functions.note_to_lily(
         note.Note('C4', quarterLength=7.99609375))
     expected = u"c'1~ c'2~ c'4~ c'8~ c'16~ c'32~ c'64...."
     self.assertEqual(actual, expected)
예제 #32
0
 def test_chord_maker_5(self):
     expected = u"<c' e'>1~ <c' e'>2~ <c' e'>4~ <c' e'>8~ <c' e'>16~ <c' e'>32~ <c' e'>64...."
     the_chord = chord.Chord('c e', quarterLength=7.99609375)
     actual = functions.note_to_lily(the_chord)
     self.assertEqual(actual, expected)
예제 #33
0
 def test_note_to_lily_11b(self):
     actual = functions.note_to_lily(note.Rest(quarterLength=7.99609375))
     expected = u"r1~ r2~ r4~ r8~ r16~ r32~ r64...."
     self.assertEqual(actual, expected)
예제 #34
0
 def test_chord_maker_6(self):
     expected = u"<c'>4"
     the_chord = chord.Chord('c')
     actual = functions.note_to_lily(the_chord)
     self.assertEqual(actual, expected)
예제 #35
0
 def test_chord_maker_3(self):
     expected = u"<c' e' g'>4__look_at_me!"
     the_chord = chord.Chord('c e g')
     the_chord.lily_markup = u'__look_at_me!'
     actual = functions.note_to_lily(the_chord)
     self.assertEqual(actual, expected)
예제 #36
0
 def test_chord_maker_7(self):
     expected = u"<feses, c cisisis ges g' bis'>4"
     the_chord = chord.Chord('f--2 c3 c###3 g-3 g4 b#4')
     actual = functions.note_to_lily(the_chord)
     self.assertEqual(actual, expected)
예제 #37
0
 def test_chord_maker_5(self):
     expected = u"<c' e'>1~ <c' e'>2~ <c' e'>4~ <c' e'>8~ <c' e'>16~ <c' e'>32~ <c' e'>64...."
     the_chord = chord.Chord('c e', quarterLength=7.99609375)
     actual = functions.note_to_lily(the_chord)
     self.assertEqual(actual, expected)
예제 #38
0
 def test_note_to_lily_1(self):
     expected = u"c'4"
     actual = functions.note_to_lily(note.Note('C4', quarterLength=1.0))
     self.assertEqual(actual, expected)
예제 #39
0
 def test_chord_maker_7(self):
     expected = u"<feses, c cisisis ges g' bis'>4"
     the_chord = chord.Chord('f--2 c3 c###3 g-3 g4 b#4')
     actual = functions.note_to_lily(the_chord)
     self.assertEqual(actual, expected)
예제 #40
0
 def test_note_to_lily_1(self):
     expected = u"c'4"
     actual = functions.note_to_lily(note.Note('C4', quarterLength=1.0))
     self.assertEqual(actual, expected)