Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Util
diff options
context:
space:
mode:
authorOli <olivier.belanger@umontreal.ca>2007-10-29 20:03:28 (GMT)
committer Oli <olivier.belanger@umontreal.ca>2007-10-29 20:03:28 (GMT)
commit39da9cbc81c51bb898ee60c4d0c6027c50a05e84 (patch)
tree80b281242836d369582178e4fd16bcc84a6050ab /common/Util
parent9add4c464a8227e72bfc6e0c0cc6ea4bfbb3ec69 (diff)
hack to pick to good instrument in Jam
Diffstat (limited to 'common/Util')
-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