It's been done before, but not merged into pd vanilla. This thread from 2006: http://lists.puredata.info/pipermail/pd-list/2006-11/043785.html
and the lrshift~.c modified to let lrshift~ use a float method in the attachment: http://lists.puredata.info/pipermail/pd-list/attachments/20061106/975a8e7b/a...
the method:
static void lrshift_tilde_float(t_lrshift_tilde *x, t_floatarg f) { x->x_n = f; }
and the command added to the setup method:
class_addfloat(lrshift_tilde_class, (t_method)lrshift_tilde_float);
It couldn't be much simpler. You might also choose to have it be a method using the symbol "set". Also, it could be good to do some value-checking and decide on a rounding scheme.
On Fri, Nov 21, 2014 at 2:21 PM, Alexandre Torres Porres porres@gmail.com wrote:
I assume it'd be quite easy to add the method...
miller? :)
no other option/object, right? [delay~] wouldn't do it
2014-11-21 17:58 GMT-02:00 Charles Z Henry czhenry@gmail.com:
I ran into this same issue this week as well. Maybe we should just add the method?
The only complication is what to do if sample-wise timing is necessary. As long as you can ignore it, it's easy.
On Fri, Nov 21, 2014 at 1:27 PM, Alexandre Torres Porres porres@gmail.com wrote:
Hi, I'm looking for an object that works like [lrshift~] but can be setable via messages or signal, any hints?
thanks
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list