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:
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.
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:
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
Hi,
you could use a "set $1"-message to only set the slider's display value without letting it propagate the new value to its outlet.
Frank
On Fri, May 09, 2014 at 01:24:34AM -0400, plutek infinity 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:
- have a bang to set an initial value
- have a slider for mouse control
- 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.
#N canvas 0 29 958 1049 10; #X obj 54 95 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X msg 55 117 0.9; #X obj 251 122 key; #X obj 251 144 select 113; #X obj 125 330 expr $f1+$f2; #X msg 251 167 0.05; #X floatatom 125 352 5 0 0 0 - - -, f 5; #X obj 89 69 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144 -1 -1 1000 1; #X obj 211 183 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 150 297 float; #X obj 369 116 key; #X obj 333 178 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 369 138 select 97; #X msg 369 161 -0.05; #X msg 184 134 0; #X connect 0 0 1 0; #X connect 0 0 14 0; #X connect 1 0 9 0; #X connect 2 0 3 0; #X connect 3 0 5 0; #X connect 4 0 6 0; #X connect 4 0 9 1; #X connect 5 0 4 1; #X connect 5 0 8 0; #X connect 7 0 9 0; #X connect 7 0 14 0; #X connect 8 0 9 0; #X connect 9 0 4 0; #X connect 10 0 12 0; #X connect 11 0 9 0; #X connect 12 0 13 0; #X connect 13 0 11 0; #X connect 13 0 4 1; #X connect 14 0 4 1;
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi,
On 09/05/2014 07:24, plutek infinity 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:
- have a bang to set an initial value
- have a slider for mouse control
- 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.
Does the send / receive "trick" to sync e.g. a numberbox and a slider still work? It seems to crash Pd on windows.
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
you can also use [change] in the chain to make sure messages are not resent when they are the same
On Fri, May 9, 2014 at 6:12 PM, Lorenzo Sutton lorenzofsutton@gmail.comwrote:
Hi,
On 09/05/2014 07:24, plutek infinity 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:
- have a bang to set an initial value
- have a slider for mouse control
- 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.
Does the send / receive "trick" to sync e.g. a numberbox and a slider still work? It seems to crash Pd on windows.
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
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
On 09/05/2014 07:24, plutek infinity wrote: [...]
i'm trying to control one numerical value in a few ways:
- have a bang to set an initial value
- have a slider for mouse control
- use keyboard keys to increment and decrement
[...]
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.
See attached.
This indeed uses the IEM gui'trick' where if you set all sends and receive to the same name in the properties they will be in sync.
Please disregard my previous message about crashing.. (I was erroneously using a vanilla numberbox instead of the Number2 (IEM gui) one).
Lorenzo.
thanks to all for your responses... very helpful!
i've implemented a solution based on lorenzo's suggestion, and it works just fine! one further question:
since my slider is in a gui panel for the patch, with all the other code buried in subpatches, is there a way to get the slider's "send to float" out of view (other than just sticking it under the slider!)?
thanks again... cheers! .pltk.
On 2014-05-09 07:22, Lorenzo Sutton wrote:
On 09/05/2014 07:24, plutek infinity wrote: [...]
i'm trying to control one numerical value in a few ways:
- have a bang to set an initial value
- have a slider for mouse control
- use keyboard keys to increment and decrement
[...]
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.
See attached.
This indeed uses the IEM gui'trick' where if you set all sends and receive to the same name in the properties they will be in sync.
Please disregard my previous message about crashing.. (I was erroneously using a vanilla numberbox instead of the Number2 (IEM gui) one).
Lorenzo.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2014? 05? 10? 23:56, plutek infinity wrote:
since my slider is in a gui panel for the patch, with all the other code buried in subpatches, is there a way to get the slider's "send to float" out of view (other than just sticking it under the slider!)?
by turning it into an abstraction using Graph on parent (GOP)
thanks, max!
right, so it looks like this needs to be the summer of pd tutorials!
:)
cheers! .pltk.
On 2014-05-10 11:40, Max wrote:
On 2014? 05? 10? 23:56, plutek infinity wrote:
since my slider is in a gui panel for the patch, with all the other code buried in subpatches, is there a way to get the slider's "send to float" out of view (other than just sticking it under the slider!)?
by turning it into an abstraction using Graph on parent (GOP)
...which makes me wonder: besides all the various tutorials, is there a comprehensive online course about pd that one can work through?
cheers! .pltk.
On 2014-05-10 11:58, plutek infinity wrote:
thanks, max!
right, so it looks like this needs to be the summer of pd tutorials!
:)cheers! .pltk.