Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/Util/Block.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/Util/Block.py b/common/Util/Block.py
index e6a7bf4..7f29e65 100644
--- a/common/Util/Block.py
+++ b/common/Util/Block.py
@@ -29,11 +29,16 @@ class Block:
def __init__( self, owner, data ):
self.owner = owner
self.gc = owner.gc
+ self.instrumentDB = InstrumentDB.getRef()
self.data = {}
for key in data.keys():
self.data[key] = data[key]
+ # hack to modify only Instrument and Drum Block
+ if data.has_key("reverb"):
+ self.data["id"] = self.instrumentDB.instNamed[self.data["name"]].instrumentId
+
self.type = Block
self.width = Block.WIDTH