Skip to content

Commit

Permalink
Taking out cloud support for these two examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Whitman committed Sep 1, 2010
1 parent 8a5e75f commit 89b3847
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions examples/capsule/capsule.py
Expand Up @@ -15,7 +15,6 @@

from echonest.action import render, make_stereo
from echonest.audio import LocalAudioFile
from echonest.cloud_support import AnalyzedAudioFile
from pyechonest import util

from capsule_support import order_tracks, equalize_tracks, resample_features, timbre_whiten, initialize, make_transition, terminate, FADE_OUT, display_actions, is_valid
Expand All @@ -30,7 +29,7 @@ def do_work(audio_files, options):
verbose = bool(options.verbose)

# Get pyechonest/remix objects
analyze = lambda x : AnalyzedAudioFile(x) if os.path.exists(x + '.json') else LocalAudioFile(x)
analyze = lambda x : LocalAudioFile(x)
tracks = map(analyze, audio_files)

# decide on an initial order for those tracks
Expand Down
6 changes: 1 addition & 5 deletions examples/swinger/swinger.py
Expand Up @@ -15,7 +15,6 @@

from echonest.audio import LocalAudioFile, AudioData
from echonest.action import render, Playback, display_actions
from echonest.cloud_support import AnalyzedAudioFile

def do_work(track, options):

Expand Down Expand Up @@ -82,10 +81,7 @@ def main():
track = None
mp3 = args[0]

if os.path.exists(mp3 + '.json'):
track = AnalyzedAudioFile(mp3)
else:
track = LocalAudioFile(mp3)
track = LocalAudioFile(mp3)

print "Computing swing . . ."
# this is where the work takes place
Expand Down

0 comments on commit 89b3847

Please sign in to comment.