Broken push to get vagrant install running

This commit is contained in:
Fergal Moran
2013-08-13 16:12:07 +01:00
parent 61318a5de4
commit dfee17045d
4 changed files with 20 additions and 1 deletions

1
.gitignore vendored
View File

@@ -21,3 +21,4 @@ downloads.txt
plays.txt
dss_ah
fixtures.json
dss_test.db

View File

@@ -1,5 +1,8 @@
Django==1.5
PIL>=1.1.7
numpy
pygtk
timeside
south
beautifulsoup4>=4.1.1
decorator>=3.3.3

View File

@@ -0,0 +1,15 @@
from django.core.management.base import NoArgsCommand
import timeside
class Command(NoArgsCommand):
def handle_noargs(self, **options):
try:
audio_file = 'spring.mp3'
decoder = timeside.decoder.FileDecoder(audio_file)
grapher = timeside.grapher.Spectrogram(width=1920, height=1080)
(decoder | grapher).run()
grapher.render('d:\spectrogram.png')
except Exception, ex:
print "Debug exception: %s" % ex.message

View File

@@ -12,7 +12,7 @@ class Command(NoArgsCommand):
in_file = mix.get_absolute_path()
try:
if os.path.isfile(in_file):
create_waveform_task.delay(in_file=in_file, mix_uid=mix.uid)
create_waveform_task.delay(in_file=in_file, uid=mix.uid)
else:
print "File %s not found" % in_file