diff options
author | amartin <olpc@xo-05-28-21.localdomain> | 2007-09-22 08:34:30 (GMT) |
---|---|---|
committer | amartin <olpc@xo-05-28-21.localdomain> | 2007-09-22 08:34:30 (GMT) |
commit | bda2ab115da1b3efbd0a772460d31633658f68a8 (patch) | |
tree | 3d4d3eeccb86e84d630b9a83c122e54a77be4c84 /common/Util | |
parent | 1196db483bb36b0d78a710b8d165846affe7c7c7 (diff) |
Jam keyboard recording
Diffstat (limited to 'common/Util')
-rw-r--r-- | common/Util/Block.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/Util/Block.py b/common/Util/Block.py index 6208add..9b1abea 100644 --- a/common/Util/Block.py +++ b/common/Util/Block.py @@ -422,8 +422,8 @@ class Drum(Block): self.owner.updateDrum( self ) def substitute( self, block ): - self.data["name"] = block.data["name"] - self.data["id"] = block.data["id"] + self.setData( "name", block.data["name"] ) + self.setData( "id", block.data["id"] ) self.img = [ self.owner.getInstrumentImage( self.data["id"], False ), self.owner.getInstrumentImage( self.data["id"], True ) ] @@ -431,7 +431,7 @@ class Drum(Block): self.invalidate_rect( True ) if self.active: - self.owner.updateDrum() + self.owner.updateDrum( self ) def testSubstitute( self, block ): ret = Block.testSubstitute( self, block ) @@ -603,10 +603,10 @@ class Loop(Block): def setData( self, key, value ): if key == "beats": + self.data["beats"] = value self.owner.noteDB.updatePage( self.data["id"], PARAMETER.PAGE_BEATS, value ) self._updateWidth() self.updateLoop() - self.data["beats"] = value elif key == "key": oldKey = self.data["key"] |