I took a stab at it.
The main item here is the [set $1( message.  That allows you to update the display/state of the slider without outputting a value.

The [trigger a a] isn't needed for the patch to run correctly, but it makes it easier to see the connection that feeds back up the chain.

-Jonathan
On Friday, May 9, 2014 1:33 AM, plutek infinity <plutek@infinity.net> wrote:
greetings!

i'm sure this is a simple problem, but i can't seem to come up with the
solution...

i'm trying to control one numerical value in a few ways:

1. have a bang to set an initial value
2. have a slider for mouse control
3. use keyboard keys to increment and decrement

the attached patch all works, except i ALSO want the slider position to
pick up the current value, as changed by any of the other methods.

the problem is, of course, that if i connect the expr result back up to
the slider input, i get a loop with "stack overflow" errors.

i'd be most grateful for any pointers you can offer... thanks much!

cheers!
.pltk.


_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list