aboutsummaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorDavide Morelli <morellid@users.sourceforge.net>2005-12-06 18:09:59 +0000
committerDavide Morelli <morellid@users.sourceforge.net>2005-12-06 18:09:59 +0000
commit1164f265647eebba64937612049bfb472eddf1f0 (patch)
tree3d34b54e32c041945d2a1069ec01e3afb24fd336 /common.h
parentb28ff6d2448ef06f12ddb29976b90189ed489937 (diff)
added simpler functions to manage the rhythms memory
svn path=/trunk/externals/frankenstein/; revision=4154
Diffstat (limited to 'common.h')
-rwxr-xr-xcommon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common.h b/common.h
index 5ae0874..8b2eb24 100755
--- a/common.h
+++ b/common.h
@@ -192,6 +192,8 @@ void find_rhythm_in_memory(t_rhythm_memory_representation *rep_list,
// first of all declare a pointer for the memory
t_rhythm_memory_representation *rhythms_memory;
+ // initialize it
+ rhythm_memory_create(&this_rep);
// then each time you get a rhythm let the memory evaluate it and
// tell you if is a new rhythm or a old one
float root_closeness, sub_closeness;