Commits

Adam Lindsay committed 0a2010a

better directory completion, slight progression on drill example

Comments (0)

Files changed (2)

 # limp/lopside.py
 [aql(a.children()[:-1] + a.children()[-1].children()[:len(a.children()[-1].children())/2]) for a in bars] 
 
-
 # occasionally interesting walk through the timbre vector
 [aql(segments.ordered_by(timbre_value(a),descending=1)[:16]*2) for a in range(12)]
 
 # drill baby, drill
-[aql([aq(e.start,e.duration*pow(c/40.,2),source=segments.source) for c in range(16+d%4)]) for d,e in enumerate(bars)]
+[aql([aq(e.start+e.duration*c/1600.,e.duration*pow(c/40.,2),source=segments.source) for c in range([17,14,12,12][d%4])]) for d,e in enumerate(bars)]
         l = line.split(None, 1)[1]
         wav = [os.path.basename(f) for f in glob.glob("%s*.wav" % l)]
         mp3 = [os.path.basename(f) for f in glob.glob("%s*.mp3" % l)]
-        dirs = [os.path.basename(d) for d in glob.glob("%s*" % l) if os.path.isdir(d)]
+        dirs = [os.path.basename(d) + '/' for d in glob.glob("%s*" % l) if os.path.isdir(d)]
         return mp3 + wav + dirs
     
     def do_save(self, line):