- commit
- dc325c740441e3246d47e539b92fbc668258d853
- parent
- eb35c5ef644ffb1553ff2bc660d699358d3f6f38
- Author
- Tobias Bengfort <tobias.bengfort@gmx.net>
- Date
- 2012-07-31 17:13
docu
Diffstat
| M | iparser.py | 2 | ++ |
| M | midi.py | 1 | + |
| M | xi2.py | 3 | +++ |
3 files changed, 6 insertions, 0 deletions
diff --git a/iparser.py b/iparser.py
@@ -8,6 +8,8 @@ and noteOff events 8 8 """ 9 9 10 10 class IParser: -1 11 # creates midi events from intermediate code -1 12 # and than uses midi to create midi bytecode 11 13 12 14 def __init__(self, seq, ch=0, offset=60): 13 15 self.midi = Midi()
diff --git a/midi.py b/midi.py
@@ -5,6 +5,7 @@ 5 5 timeDevision = 0x00c0 # two bytes 6 6 7 7 class Midi: -1 8 # creates midi bytecode from midi events 8 9 9 10 def __init__(self): 10 11 self._buf = ''
diff --git a/xi2.py b/xi2.py
@@ -6,6 +6,9 @@ from iparser import IParser 6 6 from midi import Midi, MidiFile 7 7 from random import randint 8 8 -1 9 # creates indermediate code from xi2 code -1 10 # and than uses iparser to create midi bytecode -1 11 9 12 def length(data): 10 13 data = re.sub('{[^}]*}', '', data) 11 14 data = re.sub('\([^\)]*\)', '', data)