diff options
-rw-r--r-- | common/Util/ControlStream.py | 1 | ||||
-rw-r--r-- | common/Util/InstrumentDB.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/common/Util/ControlStream.py b/common/Util/ControlStream.py index 9080bf2..5598b19 100644 --- a/common/Util/ControlStream.py +++ b/common/Util/ControlStream.py @@ -64,6 +64,7 @@ class TamTamOStream: def block_add( self, typeStr, active, centerX, centerY, child, data ): if typeStr == "Drum" or typeStr == "Instrument": + data = data[:] # don't overwrite the block's data data["id"] = self.instrumentDB.getInstrument( data["id"] ).name l = [ "block_add", typeStr, str(active), str(centerX), str(centerY), str(child), str(data) ] self.file.write( " ".join([str(i) for i in l])) diff --git a/common/Util/InstrumentDB.py b/common/Util/InstrumentDB.py index d11fed8..36a7a84 100644 --- a/common/Util/InstrumentDB.py +++ b/common/Util/InstrumentDB.py @@ -98,7 +98,7 @@ class InstrumentDB: return self.labelSet[label] def getInstrument( self, id ): - return self.inst[id] + return self.instId[id] def getInstrumentByName( self, name ): try: |