From 9034a1707bdeb06ddb1ab9cf77ed2df0ed694310 Mon Sep 17 00:00:00 2001 From: Davide Morelli Date: Sun, 22 Jan 2006 15:19:26 +0000 Subject: fixed novelty indicator svn path=/trunk/externals/frankenstein/; revision=4462 --- chords_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chords_memory.c') diff --git a/chords_memory.c b/chords_memory.c index e9e95ae..01a5bf5 100755 --- a/chords_memory.c +++ b/chords_memory.c @@ -795,7 +795,7 @@ float chords_memory_add(t_chords_memory *x, chord_t chord1, chord_t chord2) if (DEBUG) post("x->maxweight[%i] = %i",x->fundamental_mode, x->maxweight[x->fundamental_mode]); } - return (float) (((float) x->maxweight[x->fundamental_mode]) / ((float) x->arcs[x->fundamental_mode][chord1int][chord2int]) ); + return (float) (((float) x->arcs[x->fundamental_mode][chord1int][chord2int]) / ((float) x->maxweight[x->fundamental_mode]) ); } -- cgit v1.2.1