Mercurial > hg > syncopation-dataset
comparison Syncopation models/SG.py @ 2:031e2ccb1fb6
Added rhythm parser and parameter setter
author | Chunyang Song <csong@eecs.qmul.ac.uk> |
---|---|
date | Fri, 20 Mar 2015 18:28:08 +0000 |
parents | b2da092dc2e0 |
children | b959c2acb927 |
comparison
equal
deleted
inserted
replaced
1:b2da092dc2e0 | 2:031e2ccb1fb6 |
---|---|
2 Author: Chunyang Song | 2 Author: Chunyang Song |
3 Institution: Centre for Digital Music, Queen Mary University of London | 3 Institution: Centre for Digital Music, Queen Mary University of London |
4 | 4 |
5 ''' | 5 ''' |
6 | 6 |
7 from basic_functions import get_H, get_min_timeSpan | 7 from BasicFuncs import get_H, get_min_timeSpan |
8 | 8 |
9 def get_syncopation(seq, subdivision_seq, weight_seq, L_max, rhythm_category): | 9 def get_syncopation(seq, subdivision_seq, weight_seq, L_max, rhythm_category): |
10 syncopation = None | 10 syncopation = None |
11 if rhythm_category == 'poly': | 11 if rhythm_category == 'poly': |
12 print 'Error: SG model cannot deal with polyrhythms.' | 12 print 'Error: SG model cannot deal with polyrhythms.' |