comparison Syncopation models/KTH.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
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 ## Problems! Note indices, post bar 6 ## Problems! Note indices, post bar
7 7
8 from basic_functions import get_min_timeSpan, get_note_indices, repeat 8 from BasicFuncs import get_min_timeSpan, get_note_indices, repeat
9 9
10 # To find the nearest power of 2 equal to or less than the given number 10 # To find the nearest power of 2 equal to or less than the given number
11 def roundDownPower2(number): 11 def roundDownPower2(number):
12 i = 0 12 i = 0
13 if number > 0: 13 if number > 0: