comparison Syncopation models/synpy/parameter_setter.py @ 50:e71028851131

updating latex and bug fixes to main py files
author christopherh <christopher.harte@eecs.qmul.ac.uk>
date Mon, 27 Apr 2015 09:51:15 +0100
parents 6e9154fc58df
children
comparison
equal deleted inserted replaced
49:af3f32cebf8c 50:e71028851131
8 8
9 9
10 # {'key': time-signature} : 10 # {'key': time-signature} :
11 # {'value': [subdivision-sequence, theoretical beat-level represented by index in the subdivision-sequence list]} 11 # {'value': [subdivision-sequence, theoretical beat-level represented by index in the subdivision-sequence list]}
12 timeSignatureBase = { 12 timeSignatureBase = {
13 '2/2': [[1,2,2,2,2,2],1], 13 '2/2': [[1,2,2,2,2,2,2,2,2,2,2,2,2,2],1],
14 '3/2': [[1,3,2,2,2,2],1], 14 '3/2': [[1,3,2,2,2,2,2,2,2,2,2,2,2,2],1],
15 '4/2': [[1,2,2,2,2,2],1], 15 '4/2': [[1,2,2,2,2,2,2,2,2,2,2,2,2,2],1],
16 '2/4': [[1,2,2,2,2,2],1], 16 '2/4': [[1,2,2,2,2,2,2,2,2,2,2,2,2,2],1],
17 '3/4': [[1,3,2,2,2,2],1], 17 '3/4': [[1,3,2,2,2,2,2,2,2,2,2,2,2,2],1],
18 '4/4': [[1,2,2,2,2,2],2], 18 '4/4': [[1,2,2,2,2,2,2,2,2,2,2,2,2,2],2],
19 '5/4': [[1,5,2,2,2,2],1], 19 '5/4': [[1,5,2,2,2,2,2,2,2,2,2,2,2,2],1],
20 '7/4': [[1,7,2,2,2,2],1], 20 '7/4': [[1,7,2,2,2,2,2,2,2,2,2,2,2,2],1],
21 '3/8': [[1,3,2,2,2,2],1], 21 '3/8': [[1,3,2,2,2,2,2,2,2,2,2,2,2,2],1],
22 '5/8': [[1,5,2,2,2,2],1], 22 '5/8': [[1,5,2,2,2,2,2,2,2,2,2,2,2,2],1],
23 '6/8': [[1,2,3,2,2,2],1], 23 '6/8': [[1,2,3,2,2,2,2,2,2,2,2,2,2,2],1],
24 '9/8': [[1,3,3,2,2,2],1], 24 '9/8': [[1,3,3,2,2,2,2,2,2,2,2,2,2,2],1],
25 '12/8':[[1,2,2,3,2,2],2], 25 '12/8':[[1,2,2,3,2,2,2,2,2,2,2,2,2,2],2],
26 } 26 }
27 27
28 28
29 def add_time_signature(timeSignature, subdivisionSequence, beatLevel): 29 def add_time_signature(timeSignature, subdivisionSequence, beatLevel):
30 if is_time_signature_valid(timeSignature,subdivisionSequence,beatLevel): 30 if is_time_signature_valid(timeSignature,subdivisionSequence,beatLevel):