]> git.donarmstrong.com Git - lilypond.git/blob - buildscripts/pmx2ly.py
release: 1.3.82
[lilypond.git] / buildscripts / pmx2ly.py
1 #!@PYTHON@
2 import string
3
4 ls = open ('barsant.pmx').readlines ()
5 def stripcomment (l):
6         return re.sub ('^%.*$', '', l)
7         
8 ls = map (stripcomment, ls)
9 ls = filter (lambda x: x <> '', ls)
10
11 opening = ls[0]
12 ls = ls[1:]
13
14 opening = map (string.atoi, re.split ('[\t ]+', opening))
15 (nv,noinst,mtrnuml,mtrdenl,mtrnump,mtrdenp,xmtrnum0,isig) = tuple (opening)
16
17
18 opening = ls[0]
19 ls = ls[1:]
20 opening = map (string.atoi, re.split ('[\t ]+', opening))
21 (npages,nsyst,musicsize,fracindent) = tuple (opening)
22
23 for l  in ls:
24         pass
25