Re: [PD] recursive controls problem

2014-05-10 Thread plutek infinity

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:

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 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




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


Re: [PD] recursive controls problem

2014-05-10 Thread Max
-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)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlNuSF0ACgkQ3EB7kzgMM6L0hQCfYt9tlzRSdPx+nFL4SAOOET2c
NGEAn2zVA53Ndb3MKjjlooXMPnLF2Th5
=/J26
-END PGP SIGNATURE-

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


Re: [PD] recursive controls problem

2014-05-10 Thread plutek infinity

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)



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


Re: [PD] recursive controls problem

2014-05-10 Thread plutek infinity
...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.



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


Re: [PD] recursive controls problem

2014-05-09 Thread Jonathan Wilkes
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 plu...@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

multi-control_test_rev.pd
Description: Binary data
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] recursive controls problem

2014-05-09 Thread Frank Barknecht
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. 

Ciao
-- 
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:
 
 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.
 

 #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


-- 
 Frank Barknecht _ __footils.org__

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


Re: [PD] recursive controls problem

2014-05-09 Thread Lorenzo Sutton

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:

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.


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


Re: [PD] recursive controls problem

2014-05-09 Thread i go bananas
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 lorenzofsut...@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:

 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.


 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

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


Re: [PD] recursive controls problem

2014-05-09 Thread Lorenzo Sutton

On 09/05/2014 07:24, plutek infinity wrote:
[...]

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 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.

#N canvas 275 188 871 498 10;
#X obj 35 29 hsl 128 20 -10 10 0 0 aa aa empty -2 -8 0 10 -1 -4034
-4034 11366 1;
#X obj 191 36 nbx 5 14 -10 10 0 0 aa aa empty 0 -8 0 14 -1 -4032 -4032
7.9 256;
#X obj 240 408 + 0.05;
#X obj 43 410 float 0.9;
#X obj 43 144 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X msg 43 164 0.9;
#X obj 60 196 s aa;
#X obj 32 63 s to_float;
#X obj 103 196 r to_float;
#X obj 344 66 key;
#X obj 344 100 sel 113 97;
#X floatatom 388 84 5 0 0 0 - - -, f 5;
#X msg 344 128 1;
#X msg 377 128 -1;
#X obj 372 238 *;
#X obj 336 188 f 0.05;
#X floatatom 413 268 5 0 0 0 - - -, f 5;
#X obj 390 188 change;
#X obj 347 267 t b b f;
#X obj 344 159 t b b f;
#X text 6 5 open properties to see send/recieve trick...;
#X text 19 86 needed to explicitly set the value \; when mous is used
;
#X obj 43 464 s aa;
#X obj 44 432 clip -10 10;
#X text 136 436 In case you want this range (see also GUI objects'
properits...);
#X text 313 338 - this bang (going into the [+ 0.05]) is needed for
correct change of 'direction' (try without...);
#X connect 0 0 7 0;
#X connect 1 0 7 0;
#X connect 2 0 3 1;
#X connect 3 0 23 0;
#X connect 4 0 5 0;
#X connect 5 0 6 0;
#X connect 5 0 3 0;
#X connect 8 0 3 0;
#X connect 9 0 10 0;
#X connect 9 0 11 0;
#X connect 10 0 12 0;
#X connect 10 1 13 0;
#X connect 12 0 19 0;
#X connect 13 0 19 0;
#X connect 14 0 16 0;
#X connect 14 0 18 0;
#X connect 15 0 14 0;
#X connect 17 0 14 1;
#X connect 18 0 3 0;
#X connect 18 1 2 0;
#X connect 18 2 2 1;
#X connect 19 1 15 0;
#X connect 19 2 17 0;
#X connect 23 0 22 0;
#X connect 23 0 2 0;

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