There is a strange one already there: Delay2048
Code: Select all
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# MusE external midi processing script
# By: Robert Jonsson (c) 2013
# RemoveDoubles
(...)
import sys,time
testFile = open(sys.argv[1],"r")
inputEvents = testFile.readlines()
testFile.close()
outputEvents=[]
for line in inputEvents:
if line.startswith('AUDIOFRAME'):
tag, frame, newFrame = line.split(' ')
newline = tag + " " + frame + " " + str(int(frame) + 2048)
outputEvents.append(newline)
else:
outputEvents.append(line)
testFile = open(sys.argv[1],"w")
testFile.writelines(outputEvents)
testFile.close()
@spamatica, is this your code?