PageRenderTime 24ms CodeModel.GetById 19ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/examples/shell/examples.txt

http://echo-nest-remix.googlecode.com/
Plain Text | 24 lines | 17 code | 7 blank | 0 comment | 0 complexity | 5aff45da152c83f1a5cd3622f2fe8225 MD5 | raw file
 1# the following one-liners will hopefully get you started.
 2# the first five are condensed (and in some cases slightly simplified)
 3# versions of standard examples
 4
 5# one/one.py
 6beats.that(fall_on_the(1))
 7
 8# selection/tonic.py
 9beats.that(overlap_ends_of(segments.that(have_pitch_max(analysis.key['value'])).that(overlap_starts_of(beats))))
10
11# reverse/reverse.py
12reversed(beats)
13
14# summary/summary.py
15tatums.that(fall_on_the(1))
16
17# limp/lopside.py
18[aql(a.children()[:-1] + a.children()[-1].children()[:len(a.children()[-1].children())/2]) for a in bars] 
19
20# occasionally interesting walk through the timbre vector
21[aql(segments.ordered_by(timbre_value(a),descending=1)[:16]*2) for a in range(12)]
22
23# drill baby, drill
24[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)]