/examples/shell/README

http://echo-nest-remix.googlecode.com/ · #! · 40 lines · 31 code · 9 blank · 0 comment · 0 complexity · bcfc04ef58e98ed6aee8863f6b442df4 MD5 · raw file

  1. remix.py
  2. ========
  3. A stupid shell for the Echo Nest Remix API.
  4. I had SuperCollider one-liner envy, so I created this.
  5. Commands:
  6. load: loads the filename
  7. play: play the result of the last command, if it can be played (currently Mac only)
  8. save: save the result of the last command, if it can be rendered
  9. help: be minimally helpful
  10. anything else: try to interpret it in the current environment
  11. Environment:
  12. beats, bars, tatums, sections, segments: all from the currently loaded file
  13. _: the last-defined AudioRenderable
  14. analysis: container for all the other analysis products in the file
  15. libraries (i.e., the namespace you have to work with):
  16. from echonest.audio import *
  17. from echonest.audio import AudioQuantumList as aql
  18. from echonest.audio import AudioQuantum as aq
  19. from echonest.selection import *
  20. from echonest.sorting import *
  21. $ ./remix.py ../music/BillieJean.mp3
  22. > tatums.that(fall_on_the(1))
  23. > play
  24. > save bj.mp3
  25. > load ../music/aha.mp3
  26. > segments.that(have_pitch_max(analysis.key['value']))
  27. > play
  28. > beats.that(overlap_starts_of(_))
  29. > play
  30. > ^D
  31. $