/flash/examples/js/tonic.js
http://echo-nest-remix.googlecode.com/ · JavaScript · 9 lines · 6 code · 1 blank · 2 comment · 0 complexity · a1822f6fa7ffaf7aab13b678e6d87652 MD5 · raw file
- // see tonic.py,
- // Originally by Adam Lindsay, 2008-09-15.
- function remix (analysis) {
- var tonic = analysis.key.value;
- var chunks = analysis.tatums;
- var segs = analysis.segments.that(havePitchMax(tonic)).that(overlapStartsOf(chunks));
- return chunks.that(overlapEndsOf(segs));
- }