comparison Syncopation models/KTH.py @ 32:273450d5980a

tested parameter setting.
author csong <csong@eecs.qmul.ac.uk>
date Sun, 12 Apr 2015 23:23:32 +0100
parents df1e7c378ee0
children
comparison
equal deleted inserted replaced
30:d9ac6e0d1daf 32:273450d5980a
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_note_indices, repeat, note_sequence_to_min_timespan, velocity_sequence_to_min_timespan 7 from basic_functions import get_note_indices, repeat, velocity_sequence_to_min_timespan
8 8
9 # To find the nearest power of 2 equal to or less than the given number 9 # To find the nearest power of 2 equal to or less than the given number
10 def round_down_power_2(number): 10 def round_down_power_2(number):
11 i = 0 11 i = 0
12 if number > 0: 12 if number > 0: