Beispiel #1
0
 def test_open_rpp(self):
     v = VsqFile()
     r = RppReader('test/a.RPP')
     v = VsqFile()
     v.tempo = r.tempo
     v.lstJNote = r.getJNoteVOs('untitled MIDI item')
     v.buildVSQ()
     #test
     f = open('test/v.vsq', 'wb')
     f.write(v.getBytes())
     f.close()
     self.assertEqual(v.getBytes(), not None)
Beispiel #2
0
 def get_vsq_bytes(self):
     prModel = PrModel()
     v = VsqFile()
     v.tempo = prModel.tempo
     v.lstJNote = prModel.get_jnotes_for_save()
     v.buildVSQ()
     bs = v.getBytes()
     return bs