Hi all, I would like to add extra inputs (other than the audio input) like a float input.
If there are any tutorials you can show me, I would be happy to read them, if not could you help me below? I'm doing this on a windows machine, if that makes a difference.
What I THINK you have to do, is add something to the struct
float x_distortion;
...add another method in the setup method
class_addmethod(pedal_class, (t_method)pedal_ft1, gensym("ft1"), A_FLOAT, 0);
...create a new method that corresponds with pedal_ft1
static void pedal_ft1(t_pedal *x, t_float f) { x->x_distortion = f; }
...and then initialize it in the _new method
When I make those changes, it compiles but no other input appears! I am only getting this info off of looking at osc~.c
Please help, this is for a final project for a class I'm in.