From 39da9cbc81c51bb898ee60c4d0c6027c50a05e84 Mon Sep 17 00:00:00 2001 From: Oli Date: Mon, 29 Oct 2007 20:03:28 +0000 Subject: hack to pick to good instrument in Jam --- (limited to 'common') 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 -- cgit v0.9.1