Mercurial > hg > syncopation-dataset
diff Syncopation models/PRS.py @ 38:cc38b3047ed9
updated syncopation.y to allow output of sync for a bar list
also fixed some problems in models and other modules
author | christopherh <christopher.harte@eecs.qmul.ac.uk> |
---|---|
date | Mon, 13 Apr 2015 23:06:49 +0100 |
parents | df1e7c378ee0 |
children |
line wrap: on
line diff
--- a/Syncopation models/PRS.py Mon Apr 13 22:36:51 2015 +0100 +++ b/Syncopation models/PRS.py Mon Apr 13 23:06:49 2015 +0100 @@ -25,12 +25,12 @@ # This function calculates the syncopation value (cost) for the sequence with the postbar_seq for a certain level. def syncopation_perlevel(subSequences): - print 'subSequences', subSequences + #print 'subSequences', subSequences total = 0 for l in range(len(subSequences)-1): - print 'cost', get_cost(subSequences[l], subSequences[l+1]) + #print 'cost', get_cost(subSequences[l], subSequences[l+1]) total = total + get_cost(subSequences[l], subSequences[l+1]) - print 'total this level', total + #print 'total this level', total normalised = float(total)/(len(subSequences)-1) return normalised