From 1baf1d957e195290cfd59089767ca63a547a9917 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 7 Apr 2004 14:32:29 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r1560, which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/mjlib/; revision=1561 --- monorythm.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 monorythm.h (limited to 'monorythm.h') diff --git a/monorythm.h b/monorythm.h new file mode 100644 index 0000000..4a0f503 --- /dev/null +++ b/monorythm.h @@ -0,0 +1,33 @@ + +typedef struct _monorhythm +{ + t_object x_obj; + t_clock *x_clock; + t_float *x_pattern; + int x_idx; + int x_size; + t_float x_time; + t_float x_beattime; + int t_running; + int t_exclusive; + t_outlet *x_bang; + t_outlet *x_sync; + t_outlet *x_accent; +} t_monorhythm; + +static void monorhythm_tick(t_monorhythm *x); +static void monorhythm_start(t_monorhythm *x); +static void monorhythm_stop(t_monorhythm *x); +static void monorhythm_free(t_monorhythm *x); +static void *monorhythm_new(t_symbol *s, int argc, t_atom *argv); +static void monorhythm_pattern_seq( t_monorhythm *x, t_symbol *s, int ac, t_atom *av ); +static void monorhythm_time_float( t_monorhythm *x1, t_float f ); +static void monorhythm_calculate_beat_interval( t_monorhythm *x ); +static void monorhythm_set_time( t_monorhythm *x, t_float f ); +static void monorhythm_restart(t_monorhythm *x); +static void monorhythm_do_beat( t_monorhythm* x ); +static void monorhythm_set_exclusive(t_monorhythm *x); +static void monorhythm_set_nonexclusive(t_monorhythm *x); + + + -- cgit v1.2.1