aboutsummaryrefslogtreecommitdiff
path: root/chords_memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'chords_memory.c')
-rwxr-xr-xchords_memory.c2
1 files changed, 1 insertions, 1 deletions
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]) );
}