Sunday, August 20, 2006
simple csd to orc file
I am not sure if this is going to work yet because I have not tested it. Based on the google groups posts and some guessing on how stuff works. This won't work for more complex files that define instrument 1 to 999 or whatever for the purposes of seperating the one instrument.
def simplecsdtoorc(filename):
file = open(filename,"r")
alllines = file.read_until("")
pattern1 = re.compile("")
orcfilename = filename[-3:] + "orc"
for line in alllines:
if not pattern1
print >>orcfilename, line
def simplecsdtoorc(filename):
file = open(filename,"r")
alllines = file.read_until("")
pattern1 = re.compile("")
orcfilename = filename[-3:] + "orc"
for line in alllines:
if not pattern1
print >>orcfilename, line