From 1f827299ad820c1ca6f7ea6cde29cb702f89ad7e Mon Sep 17 00:00:00 2001 From: Oli Date: Fri, 23 May 2008 15:15:58 +0000 Subject: security model, cleanup, SynthLab to OGG --- (limited to 'TamTamJam.activity/Jam/Picker.py') diff --git a/TamTamJam.activity/Jam/Picker.py b/TamTamJam.activity/Jam/Picker.py index 0d280b2..6c70556 100644 --- a/TamTamJam.activity/Jam/Picker.py +++ b/TamTamJam.activity/Jam/Picker.py @@ -168,15 +168,16 @@ class Instrument( Picker ): self.type = Instrument self.instrumentDB = InstrumentDB.getRef() + list = [inst for inst in self.instrumentDB.getSet( "All" ) if not inst.name.startswith('lab')] - for inst in self.instrumentDB.getSet( "All" ): + for inst in list: self.addBlock( inst.instrumentId ) def addBlock( self, id ): # match data structure of Block.Instrument data = { "name": _(self.instrumentDB.instId[id].name), "id": id } - + self.csnd.load_instrument(self.instrumentDB.instId[id].name) win = gtk.gdk.get_default_root_window() -- cgit v0.9.1