This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Perhaps an analogy would help ... like comparing an API to a car dashboard. | |
The dashboard is the interface between the car and the human - it has all | |
the controls you need to make the car do its job. An API is like the | |
dashboard for a software system. It provides the interface for another | |
system (typically another computer) to get a system to do its job. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyen | |
import sys | |
en = pyen.Pyen() | |
if len(sys.argv) < 2: | |
print 'Usage: python genre_playlist.py seed genre name' | |
else: | |
genre = ' '.join(sys.argv[1:]) | |
response = en.get('playlist/static', type='genre-radio', genre_preset='core-best', genre=genre) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyen | |
import sys | |
en = pyen.Pyen() | |
if len(sys.argv) > 1: | |
genre = ' '.join(sys.argv[1:]) | |
response = en.get('genre/similar', name=genre) | |
for genre in response['genres']: | |
print genre['name'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyen | |
import sys | |
en = pyen.Pyen() | |
if len(sys.argv) > 1: | |
genre = ' '.join(sys.argv[1:]) | |
response = en.get('genre/artists', name=genre) | |
for artist in response['artists']: | |
print artist['name'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a cappella - A cappella is singing without instrumental accompaniment. From the Italian for "in the manner of the chapel," a cappella may be performed solo or by a group. | |
abstract hip hop - | |
acid house - From house music came acid house, developed in the mid-'80s by Chicago DJs experimenting with the Roland TB-303 synthesizer. That instrument produced the subgenre's signature squelching bass, used to create a hypnotic sound. | |
acid jazz - Acid jazz, also called club jazz, is a style of jazz that takes cues from a number of genres, including funk, hip-hop, house, and soul. | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyen | |
en = pyen.Pyen() | |
response = en.get('genre/list', bucket=['description']) | |
for g in response['genres']: | |
print g['name'], '-', g['description'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Generates an acrostic playlist | |
# | |
# This was built at the Tufts Hackathon Fall 2013 | |
# | |
# Creates a playlist in the given genre, where the | |
# first letter in each song spells out a secret | |
# message | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function runLength(quanta, confidenceThreshold, loudnessThreshold, lookAhead, lookaheadMatch) { | |
var lastState = false; | |
for (var i = 0; i < quanta.length; i++) { | |
quanta[i].needsDrums = false; | |
} | |
for (var i = 0; i < quanta.length -1; i+=2) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
combine.py | |
alternate between two audiofiles, beat by beat | |
By Paul Lamere, 2013-01-25 | |
""" | |
import echonest.audio as audio | |
usage = """ |