From f428146b3bf8d4b3073b4fa826c250743f20fe7f Mon Sep 17 00:00:00 2001 From: Davide Morelli Date: Thu, 22 Dec 2005 23:21:04 +0000 Subject: fixed a bug in duration2int, now rhythms_memory working svn path=/trunk/externals/frankenstein/; revision=4286 --- common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common.c') diff --git a/common.c b/common.c index c98b92b..9fe2c36 100755 --- a/common.c +++ b/common.c @@ -46,7 +46,7 @@ unsigned short int duration2int(t_duration dur) { for (j=0; j=min_to_be_same_rhythm) + if (root_closeness_found >= (float)min_to_be_same_rhythm) { // is close enough to be considered a rhythm post("DEBUG: rhythm found"); *new_rhythm = 0; *id = id_found; *root_closeness = root_closeness_found; - if (sub_closeness_found>=min_to_be_same_subrhythm) + if (sub_closeness_found >= (float)min_to_be_same_subrhythm) { // this is a known subrhythm post("DEBUG: sub-rhythm found"); -- cgit v1.2.1