def test_prepend_patch(self): """ If multiple set_patch is done, the last will be used. """ t = Track() t.prepend_patch(2) t.prepend_patch(3) t.note(4, 55) self.assertEquals(MidiEventStream(t).str_repr(), "p0:2 v0:100 n55 d1/4 o55")
def test_prepend_patch(self): """ If multiple set_patch is done, the last will be used. """ t = Track() t.prepend_patch(2) t.prepend_patch(3) t.note(4, 55) self.assertEquals( MidiEventStream(t).str_repr(), "p0:2 v0:100 n55 d1/4 o55")
def test_track1(self): t = Track() t.prepend_patch(33) t.note(4, 60, 120)