Mercurial > hg > syncopation-dataset
comparison Syncopation models/PRS.py @ 19:9030967a05f8
Refactored parameter_setter, basic_functions. Halfway fixing parameter argument in LHL model.
author | csong <csong@eecs.qmul.ac.uk> |
---|---|
date | Fri, 03 Apr 2015 22:57:27 +0100 |
parents | 4acddc008048 |
children | b959c2acb927 |
comparison
equal
deleted
inserted
replaced
18:43fa04812800 | 19:9030967a05f8 |
---|---|
31 normalised = float(total)/(len(subSequences)-1) | 31 normalised = float(total)/(len(subSequences)-1) |
32 | 32 |
33 return normalised | 33 return normalised |
34 | 34 |
35 #def get_syncopation(seq,subdivision_seq, postbar_seq, rhythm_category): | 35 #def get_syncopation(seq,subdivision_seq, postbar_seq, rhythm_category): |
36 def get_syncopation(bar, weightSequence = None, LMax = None): | 36 def get_syncopation(bar, parameters = None): |
37 ''' | 37 ''' |
38 The get_syncopation function calculates the overall syncopation value for a bar of sequence. | 38 The get_syncopation function calculates the overall syncopation value for a bar of sequence. |
39 ''' | 39 ''' |
40 syncopation = None | 40 syncopation = None |
41 | 41 |