# all the data will then be in memory for you to play with import csv import os import pylab import numpy from scipy import stats import joystick from joystick import Dataset, Datafile data_folder = "data" ds = Dataset(data_folder) colours={'i': 'b', 'l': 'r'} # instrumental = blue, lyrics = red print "Reminder: Lyrics = Red, Instrumental = Blue" pylab.figure() pylab.show() for songcounter,songname in enumerate(ds.metadata['songname']): # figureno will increment from 0 # songno will go through all the available songno's in the Dataset ds #pylab.figure(figureno) sample_file = ds.filter(songname=songname).next()
# %run analysis.py # all the data will then be in memory for you to play with import csv import os import pylab import numpy data_folder = "data" import joystick from joystick import Dataset, Datafile ds = Dataset('data') songno = 105 # Alanis Morrisette colours={'i': 'b', 'l': 'r'} # instrumental = blue, lyrics = red print "Reminder: Lyrics = Red, Instrumental = Blue" #do 4 in one animated plot #for i in [100]: pylab.figure(3) pylab.clf() pylab.subplot(221) pylab.axis([-400,400,-400,400])