Added rest and chords to music21 converter

This commit is contained in:
2023-02-16 00:41:31 +02:00
parent f6c6497319
commit 1ff7e3b6d2
3 changed files with 19 additions and 10 deletions

View File

@ -1,8 +1,10 @@
from ziffers import *
from music21 import *
from sardine import *
from ziffers import *
z = z('e (1 2 3)+(4 2 1)*2')
s = to_music21(z,octave=-2,time="3/4")
a = zparse('1 2 qr 124')
print(list(a))
s = to_music21('1 2 qr 124',octave=-2,time="3/4")
s.show()
s.show('midi')