Skip to content

Commit

Permalink
allow float message input
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-wes committed May 21, 2024
1 parent e53109a commit 31eb64a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion simplex~.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ typedef struct _simplex_tilde {
t_sample **derivative_vector;
t_float *derivatives;
t_float octave_factors[MAX_OCTAVES];
t_sample f;
int compute_derivatives;
int normalize;
int octaves;
Expand Down Expand Up @@ -704,13 +705,14 @@ void simplex_tilde_setup(void) {
#else
g_signal_setmultiout = (signal_setmultiout_fn)dlsym(dlopen(NULL, RTLD_NOW), "signal_setmultiout");
#endif

simplex_tilde_class = class_new(
gensym("simplex~"),
(t_newmethod)simplex_tilde_new,
(t_method)simplex_tilde_free,
sizeof(t_simplex_tilde), CLASS_MULTICHANNEL, A_GIMME, 0);

class_addmethod(simplex_tilde_class, nullfn, gensym("signal"), 0);
CLASS_MAINSIGNALIN(simplex_tilde_class, t_simplex_tilde, f);
class_addmethod(simplex_tilde_class, (t_method)simplex_tilde_dsp, gensym("dsp"), 0);
class_addmethod(simplex_tilde_class, (t_method)simplex_tilde_seed, gensym("seed"), A_GIMME, 0);
class_addmethod(simplex_tilde_class, (t_method)simplex_tilde_normalize, gensym("normalize"), A_GIMME, 0);
Expand Down

0 comments on commit 31eb64a

Please sign in to comment.