Update of /cvsroot/pure-data/externals/frankenstein In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12129
Modified Files: common.c common.h rhythms_memory.c Log Message: created the dummy variation function
Index: rhythms_memory.c =================================================================== RCS file: /cvsroot/pure-data/externals/frankenstein/rhythms_memory.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** rhythms_memory.c 28 Dec 2005 11:47:19 -0000 1.9 --- rhythms_memory.c 28 Dec 2005 14:03:54 -0000 1.10 *************** *** 1,5 **** /* rhythms_memory ! by Davide Morelli www.davidemorelli.it 2005
uses graphs to store rhythms --- 1,8 ---- /* rhythms_memory ! ! Authors: ! Davide Morelli http://www.davidemorelli.it ! David Plans Casal http://www.studios.uea.ac.uk/people/staff/casal
uses graphs to store rhythms *************** *** 323,326 **** --- 326,347 ---- }
+ // 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) {
*************** *** 401,404 **** --- 422,428 ---- 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); }
Index: common.h =================================================================== RCS file: /cvsroot/pure-data/externals/frankenstein/common.h,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** common.h 28 Dec 2005 11:47:19 -0000 1.15 --- common.h 28 Dec 2005 14:03:54 -0000 1.16 *************** *** 1,2 **** --- 1,13 ---- + /* + + header file for common functions used by the externals of the "frank framework". + + the frank framework is a set of pd externals implementing AI agents for improvisation. + + Authors: + Davide Morelli http://www.davidemorelli.it + David Plans Casal http://www.studios.uea.ac.uk/people/staff/casal + + */
// here i put common data structures and functions
Index: common.c =================================================================== RCS file: /cvsroot/pure-data/externals/frankenstein/common.c,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** common.c 28 Dec 2005 11:47:19 -0000 1.18 --- common.c 28 Dec 2005 14:03:54 -0000 1.19 *************** *** 1,3 **** --- 1,11 ---- + /* + + implementation of common functions used by the externals of the frank framework + + Authors: + Davide Morelli http://www.davidemorelli.it + David Plans Casal http://www.studios.uea.ac.uk/people/staff/casal
+ */ #include "common.h"