Hi list,
is it possible to switch off the connection between a sliders input and it's output? I would like to use a slider that can be moved by the user or positioned by an algorhythm. But in case Pd moves it by itselfe I don't want to get any data out of the outlet.... Or the other way round: is there any way to decide weather the user moved the slider or Pd did by sending data to it's input?
Any ideas? [I could hack the code, of course.. ;-) ]
Olaf
[set 0.435( -> [vsl]
pix.
On Sun, 16 Mar 2003 00:44:14 +0100 Olaf Matthes olaf.matthes@gmx.de wrote:
Hi list,
is it possible to switch off the connection between a sliders input and it's output? I would like to use a slider that can be moved by the user or positioned by an algorhythm. But in case Pd moves it by itselfe I don't want to get any data out of the outlet.... Or the other way round: is there any way to decide weather the user moved the slider or Pd did by sending data to it's input?
Any ideas? [I could hack the code, of course.. ;-) ]
Olaf
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
to elucidate:
if you send a "set <value>" message to a slider (or a number box, for that matter), the value is changed without sending the value out on the output.
so, for instance, if you do:
number box -> [set $1 ( -> vsl -> number box
then changing the first number box will move the slider, whereas only dragging on the slider itself will affect the second number box.
pix.
On Sun, 16 Mar 2003 01:15:29 +0100 pix pix@test.at wrote:
[set 0.435( -> [vsl]
pix.
On Sun, 16 Mar 2003 00:44:14 +0100 Olaf Matthes olaf.matthes@gmx.de wrote:
Hi list,
is it possible to switch off the connection between a sliders input and it's output? I would like to use a slider that can be moved by the user or positioned by an algorhythm. But in case Pd moves it by itselfe I don't want to get any data out of the outlet.... Or the other way round: is there any way to decide weather the user moved the slider or Pd did by sending data to it's input?
Any ideas? [I could hack the code, of course.. ;-) ]
Olaf
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
Oh... Is that a bug or a feature?
At 02:30 AM 16/03/2003 +0100, pix wrote:
to elucidate:
if you send a "set <value>" message to a slider (or a number box, for that matter), the value is changed without sending the value out on the output.
so, for instance, if you do:
number box -> [set $1 ( -> vsl -> number box
then changing the first number box will move the slider, whereas only dragging on the slider itself will affect the second number box.
pix.
. . David McCallum . Music wants to be free . http://mentalfloss.ca/sintheta/ .
it's definitely a feature, and it's (i think) exactly what olaf is looking for.
it was documented officially for the number box somewhere. and i guess since then it's just been implied. lots of objects take set messages.
maybe my example doesn't explain it well, and makes it sound like a bug, but the semantics are quite sane.
pix.
On Sat, 15 Mar 2003 21:49:23 -0500 David McCallum 8dngm@qlink.queensu.ca wrote:
Oh... Is that a bug or a feature?
At 02:30 AM 16/03/2003 +0100, pix wrote:
to elucidate:
if you send a "set <value>" message to a slider (or a number box, for that matter), the value is changed without sending the value out on the output.
so, for instance, if you do:
number box -> [set $1 ( -> vsl -> number box
then changing the first number box will move the slider, whereas only dragging on the slider itself will affect the second number box.
pix.
. . David McCallum . Music wants to be free . http://mentalfloss.ca/sintheta/ .
definitely a feature, if you want it to send the value to its outputs, just send a raw number to the slider.
David McCallum wrote:
Oh... Is that a bug or a feature?
At 02:30 AM 16/03/2003 +0100, pix wrote:
to elucidate:
if you send a "set <value>" message to a slider (or a number box, for that matter), the value is changed without sending the value out on the output.
so, for instance, if you do:
number box -> [set $1 ( -> vsl -> number box
then changing the first number box will move the slider, whereas only dragging on the slider itself will affect the second number box.
pix.
. . David McCallum . Music wants to be free . http://mentalfloss.ca/sintheta/ .
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
how about you run the output of the slider through a [spigot] ... when the software wants to reposition the slider, first have it turn off the sigot, and make sure to turn it back on again once the slider has been moved.
-josh
Olaf Matthes wrote:
Hi list,
is it possible to switch off the connection between a sliders input and it's output? I would like to use a slider that can be moved by the user or positioned by an algorhythm. But in case Pd moves it by itselfe I don't want to get any data out of the outlet.... Or the other way round: is there any way to decide weather the user moved the slider or Pd did by sending data to it's input?
Any ideas? [I could hack the code, of course.. ;-) ]
Olaf
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
Maybe this isn't what you want, but couldn't you just put a spigot
on the outlet of the slider. Whenever the algorithm moves the slider it also closes the spigot, and then opens it when the algorithm's finished moving it.
If you're worried about the send of the slider you could use an
intermediary stage and send to a spigot, and then put that data to another send value and have the spigot work the same way as before...
But I guess you wouldn't be able to override the algorithm manually...
At 12:44 AM 16/03/2003 +0100, Olaf Matthes wrote:
is it possible to switch off the connection between a sliders input and it's output? I would like to use a slider that can be moved by the user or positioned by an algorhythm. But in case Pd moves it by itselfe I don't want to get any data out of the outlet.... Or the other way round: is there any way to decide weather the user moved the slider or Pd did by sending data to it's input?
Any ideas? [I could hack the code, of course.. ;-) ]
. . David McCallum . Music wants to be free . http://mentalfloss.ca/sintheta/ .