Added music21 and csound examples
This commit is contained in:
9
examples/music21/create_musicxml.py
Normal file
9
examples/music21/create_musicxml.py
Normal file
@ -0,0 +1,9 @@
|
||||
from music21 import *
|
||||
from ziffers import *
|
||||
|
||||
# Parse ziiffers object to music21 object
|
||||
parsed = zparse("q 1 024 5 235 h 02345678{12} 0", key='C', scale='Zyditonic')
|
||||
s2 = to_music21(parsed,time="4/4")
|
||||
|
||||
# Save to MusicXML file
|
||||
s2.write('musicxml', fp='examples/music21/output/ziffers_example.xml')
|
||||
Reference in New Issue
Block a user