Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Util/Block.py
diff options
context:
space:
mode:
Diffstat (limited to 'common/Util/Block.py')
-rw-r--r--common/Util/Block.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/Util/Block.py b/common/Util/Block.py
index b1395b8..45f942a 100644
--- a/common/Util/Block.py
+++ b/common/Util/Block.py
@@ -5,6 +5,7 @@ import gtk
import random
+import common.Util.InstrumentDB as InstrumentDB
import common.Config as Config
from common.Util.NoteDB import PARAMETER
@@ -368,7 +369,7 @@ class Drum(Block):
#:::
def __init__( self, owner, data ):
Block.__init__( self, owner, data )
-
+ self.instrumentDB = InstrumentDB.getRef()
self.type = Drum
self.canSubstitute = True
@@ -441,7 +442,7 @@ class Drum(Block):
if block.type == Loop:
return False
- if Config.INSTRUMENTSID[block.data["id"]].kit == None:
+ if self.instrumentDB.instId[block.data["id"]].kit == None:
return False
if abs( self.x - block.x ) < Block.SNAP and abs( self.y - block.y ) < Block.SNAP: