aboutsummaryrefslogtreecommitdiff
path: root/rhythms_memory.c
diff options
context:
space:
mode:
authorDavide Morelli <morellid@users.sourceforge.net>2005-12-28 14:03:54 +0000
committerDavide Morelli <morellid@users.sourceforge.net>2005-12-28 14:03:54 +0000
commitb72b71973f3efa49a48e4cd458fd68978a6373f8 (patch)
tree830a0dc25cfee6d26ea04f3e98cd7cf2d6e48b10 /rhythms_memory.c
parentc60dd588397da20d2867c8e48a32be6fcd8dfada (diff)
created the dummy variation function
svn path=/trunk/externals/frankenstein/; revision=4307
Diffstat (limited to 'rhythms_memory.c')
-rwxr-xr-xrhythms_memory.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/rhythms_memory.c b/rhythms_memory.c
index f750c19..3b295e8 100755
--- a/rhythms_memory.c
+++ b/rhythms_memory.c
@@ -1,6 +1,9 @@
/*
rhythms_memory
-by Davide Morelli www.davidemorelli.it 2005
+
+Authors:
+Davide Morelli http://www.davidemorelli.it
+David Plans Casal http://www.studios.uea.ac.uk/people/staff/casal
uses graphs to store rhythms
@@ -322,6 +325,24 @@ static void add_rhythm(t_rhythms_memory *x, t_symbol *s, int argc, t_atom *argv)
post("TODO");
}
+// creates a variation of a given rhythm (in memory)
+// with a given degree of closeness
+static void variation(t_rhythms_memory *x, t_symbol *s, int argc, t_atom *argv)
+{
+ // TODO
+ post("TODO");
+
+ // get the rhythm
+
+ // using the transitions table create a new one
+
+ // add it to the memory?
+
+ // output to the list outlet?
+
+ // set it as the next played rhythm
+}
+
static void rhythms_memory_bang(t_rhythms_memory *x) {
// generate a random value
@@ -400,6 +421,9 @@ void rhythms_memory_setup(void)
// adds a rhythm passing it as a list of floats
class_addmethod(rhythms_memory_class, (t_method)add_rhythm, gensym("rhythm_in"),
A_GIMME, 0);
+ // builds a variation of a given rhythm
+ class_addmethod(rhythms_memory_class, (t_method)variation, gensym("variation"),
+ A_GIMME, 0);
}