Re: [PD] Possible to unselect radio buttons?

2008-12-19 Thread Steffen Leve Poulsen


fixed the fire and made some explanation on how to use this concept
attached bang-matrix.pd

vh/slp

Phil Stone skrev:

Steffen,

Auto-generated matrix and everything!  By the way, [fire64] wouldn't 
instantiate, but it apparently had done its work before you saved the 
abstraction, so the matrix worked fine.


Very, very cool.


Phil

Steffen Leve Poulsen wrote:

Hi Phil

here's one attached bang-matrix.pd

mvh/steffen leve poulsen


On Thu, Dec 18, 2008 at 1:06 PM, Phil Stone pkst...@ucdavis.edu 
wrote:
 

Is there any way to make there be *no* selection displayed in a radio
button control?

If not, this would be a very useful feature in that it would allow
multiple banks of radio buttons to be tied together programatically.
I.e., imagine a set of four hradio controls, stacked on top of each
other.  Any selection in any of the four becomes the current 
selection,

but also turns off all other banks' selection indicators.

Whereas a single 64-position radio control would be awkward to deal 
with
graphically, 8 rows of 8-pos. hradio controls would be nice and 
compact.



Phil Stone
www.pkstonemusic.com








#N canvas 4 269 668 365 10;
#X obj 109 108 bng 13 50 10 0 \$0-0-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 109 108 cnv 1 13 13 \$0-dummy \$0-0-square empty 20 12 0 14
-260818 -262144 0;
#X obj 124 108 bng 13 50 10 0 \$0-1-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 124 108 cnv 1 13 13 \$0-dummy \$0-1-square empty 20 12 0 14
-261681 -262144 0;
#X obj 139 108 bng 13 50 10 0 \$0-2-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 139 108 cnv 1 13 13 \$0-dummy \$0-2-square empty 20 12 0 14
-261681 -262144 0;
#X obj 154 108 bng 13 50 10 0 \$0-3-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 154 108 cnv 1 13 13 \$0-dummy \$0-3-square empty 20 12 0 14
-261682 -66577 0;
#X obj 169 108 bng 13 50 10 0 \$0-4-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 169 108 cnv 1 13 13 \$0-dummy \$0-4-square empty 20 12 0 14
-261681 -262144 0;
#X obj 184 108 bng 13 50 10 0 \$0-5-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 184 108 cnv 1 13 13 \$0-dummy \$0-5-square empty 20 12 0 14
-261682 -66577 0;
#X obj 199 108 bng 13 50 10 0 \$0-6-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 199 108 cnv 1 13 13 \$0-dummy \$0-6-square empty 20 12 0 14
-261682 -66577 0;
#X obj 214 108 bng 13 50 10 0 \$0-7-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 214 108 cnv 1 13 13 \$0-dummy \$0-7-square empty 20 12 0 14
-261681 -262144 0;
#X obj 109 123 bng 13 50 10 0 \$0-8-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 109 123 cnv 1 13 13 \$0-dummy \$0-8-square empty 20 12 0 14
-261682 -66577 0;
#X obj 124 123 bng 13 50 10 0 \$0-9-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 124 123 cnv 1 13 13 \$0-dummy \$0-9-square empty 20 12 0 14
-261682 -66577 0;
#X obj 139 123 bng 13 50 10 0 \$0-10-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 139 123 cnv 1 13 13 \$0-dummy \$0-10-square empty 20 12 0 14
-261682 -66577 0;
#X obj 154 123 bng 13 50 10 0 \$0-11-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 154 123 cnv 1 13 13 \$0-dummy \$0-11-square empty 20 12 0 14
-261682 -66577 0;
#X obj 169 123 bng 13 50 10 0 \$0-12-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 169 123 cnv 1 13 13 \$0-dummy \$0-12-square empty 20 12 0 14
-261682 -66577 0;
#X obj 184 123 bng 13 50 10 0 \$0-13-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 184 123 cnv 1 13 13 \$0-dummy \$0-13-square empty 20 12 0 14
-261682 -66577 0;
#X obj 199 123 bng 13 50 10 0 \$0-14-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 199 123 cnv 1 13 13 \$0-dummy \$0-14-square empty 20 12 0 14
-261682 -66577 0;
#X obj 214 123 bng 13 50 10 0 \$0-15-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 214 123 cnv 1 13 13 \$0-dummy \$0-15-square empty 20 12 0 14
-261682 -66577 0;
#X obj 109 138 bng 13 50 10 0 \$0-16-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 109 138 cnv 1 13 13 \$0-dummy \$0-16-square empty 20 12 0 14
-261682 -66577 0;
#X obj 124 138 bng 13 50 10 0 \$0-17-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 124 138 cnv 1 13 13 \$0-dummy \$0-17-square empty 20 12 0 14
-261682 -66577 0;
#X obj 139 138 bng 13 50 10 0 \$0-18-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 139 138 cnv 1 13 13 \$0-dummy \$0-18-square empty 20 12 0 14
-261682 -66577 0;
#X obj 154 138 bng 13 50 10 0 \$0-19-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 154 138 cnv 1 13 13 \$0-dummy \$0-19-square empty 20 12 0 14
-261681 -262144 0;
#X obj 169 138 bng 13 50 10 0 \$0-20-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 169 138 cnv 1 13 13 \$0-dummy \$0-20-square empty 20 12 0 14
-261682 -66577 0;
#X obj 184 138 bng 13 50 10 0 \$0-21-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 184 138 cnv 1 13 13 \$0-dummy \$0-21-square empty 20 12 0 14
-261682 -66577 0;
#X obj 199 138 bng 13 50 10 0 \$0-22-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 199 138 cnv 1 13 13 \$0-dummy \$0-22-square 

Re: [PD] Possible to unselect radio buttons?

2008-12-18 Thread Luke Iannini
Hi Phil!
I've hacked this in before by using a bunch of [moses] objects and
sending [color 1 1 1( etc. messages to the radio objects that are
supposedly not selected (which makes the radio indicator the same
color as the background so it looks like there's nothing there).

I'd be happy to dig up a patch if you want to see a demo
(but of course some way to do this built in to the IEMgui would be
much faster : ) )

Cheers
Luke

On Thu, Dec 18, 2008 at 1:06 PM, Phil Stone pkst...@ucdavis.edu wrote:
 Is there any way to make there be *no* selection displayed in a radio
 button control?

 If not, this would be a very useful feature in that it would allow
 multiple banks of radio buttons to be tied together programatically.
 I.e., imagine a set of four hradio controls, stacked on top of each
 other.  Any selection in any of the four becomes the current selection,
 but also turns off all other banks' selection indicators.

 Whereas a single 64-position radio control would be awkward to deal with
 graphically, 8 rows of 8-pos. hradio controls would be nice and compact.


 Phil Stone
 www.pkstonemusic.com

 ___
 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] Possible to unselect radio buttons?

2008-12-18 Thread Luke Iannini
And sorry if that didn't quite get across the whole story - the idea
is if you have two hradios of length 8 each, you add [+ 8] to the
second hradio to now have a range of 0-15 between the two, and then
use the [moses]s to figure out which of the two hradios a value is
coming from and loop back some [color( messages to them to set their
appearance appropriately.  With a little more effort you can mostly
emulate the interface of a single IEM [hradio], accepting [set(
messages and numbers to update the GUI as well as pass through, etc.

Best
Luke

On Thu, Dec 18, 2008 at 1:30 PM, Luke Iannini lukex...@gmail.com wrote:
 Hi Phil!
 I've hacked this in before by using a bunch of [moses] objects and
 sending [color 1 1 1( etc. messages to the radio objects that are
 supposedly not selected (which makes the radio indicator the same
 color as the background so it looks like there's nothing there).

 I'd be happy to dig up a patch if you want to see a demo
 (but of course some way to do this built in to the IEMgui would be
 much faster : ) )

 Cheers
 Luke

 On Thu, Dec 18, 2008 at 1:06 PM, Phil Stone pkst...@ucdavis.edu wrote:
 Is there any way to make there be *no* selection displayed in a radio
 button control?

 If not, this would be a very useful feature in that it would allow
 multiple banks of radio buttons to be tied together programatically.
 I.e., imagine a set of four hradio controls, stacked on top of each
 other.  Any selection in any of the four becomes the current selection,
 but also turns off all other banks' selection indicators.

 Whereas a single 64-position radio control would be awkward to deal with
 graphically, 8 rows of 8-pos. hradio controls would be nice and compact.


 Phil Stone
 www.pkstonemusic.com

 ___
 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] Possible to unselect radio buttons?

2008-12-18 Thread Phil Stone
That's a pretty brilliant hack, Luke.  Thanks for the idea. 


Phil


Luke Iannini wrote:
 Hi Phil!
 I've hacked this in before by using a bunch of [moses] objects and
 sending [color 1 1 1( etc. messages to the radio objects that are
 supposedly not selected (which makes the radio indicator the same
 color as the background so it looks like there's nothing there).

 I'd be happy to dig up a patch if you want to see a demo
 (but of course some way to do this built in to the IEMgui would be
 much faster : ) )

 Cheers
 Luke

 On Thu, Dec 18, 2008 at 1:06 PM, Phil Stone pkst...@ucdavis.edu wrote:
   
 Is there any way to make there be *no* selection displayed in a radio
 button control?

 If not, this would be a very useful feature in that it would allow
 multiple banks of radio buttons to be tied together programatically.
 I.e., imagine a set of four hradio controls, stacked on top of each
 other.  Any selection in any of the four becomes the current selection,
 but also turns off all other banks' selection indicators.

 Whereas a single 64-position radio control would be awkward to deal with
 graphically, 8 rows of 8-pos. hradio controls would be nice and compact.


 Phil Stone
 www.pkstonemusic.com

 ___
 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] Possible to unselect radio buttons?

2008-12-18 Thread Steffen Leve Poulsen

Hi Phil

here's one attached bang-matrix.pd

mvh/steffen leve poulsen

Phil Stone skrev:
That's a pretty brilliant hack, Luke.  Thanks for the idea. 



Phil


Luke Iannini wrote:

Hi Phil!
I've hacked this in before by using a bunch of [moses] objects and
sending [color 1 1 1( etc. messages to the radio objects that are
supposedly not selected (which makes the radio indicator the same
color as the background so it looks like there's nothing there).

I'd be happy to dig up a patch if you want to see a demo
(but of course some way to do this built in to the IEMgui would be
much faster : ) )

Cheers
Luke

On Thu, Dec 18, 2008 at 1:06 PM, Phil Stone pkst...@ucdavis.edu wrote:
  

Is there any way to make there be *no* selection displayed in a radio
button control?

If not, this would be a very useful feature in that it would allow
multiple banks of radio buttons to be tied together programatically.
I.e., imagine a set of four hradio controls, stacked on top of each
other.  Any selection in any of the four becomes the current selection,
but also turns off all other banks' selection indicators.

Whereas a single 64-position radio control would be awkward to deal with
graphically, 8 rows of 8-pos. hradio controls would be nice and compact.


Phil Stone
www.pkstonemusic.com



#N canvas 4 269 668 365 10;
#N canvas 0 0 994 477 make 0;
#X msg 70 222 obj \$1 \$2 bng 13 50 10 0 \$0-\$3-bang \$0-dummy empty
17 7 0 10 -262144 -1 -1 \, obj \$1 \$2 cnv 1 13 13 \$0-dummy \$0-\$3-square
empty 20 12 0 14 -261682 -66577 0;
#X obj 70 287 s pd-bang-matrix.pd;
#X obj 70 185 pack f f f;
#X obj 58 32 fire 64 64;
#X obj 66 71 t f f f;
#X obj 80 138 * 15;
#X obj 40 138 * 15;
#X obj 72 4 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 80 114 div 8;
#X obj 40 114 mod 8;
#X obj 563 289 s pd-receive-bang;
#X obj 519 92 fire 64 64;
#X obj 576 131 t f f f;
#X obj 519 64 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 565 220 pack f f f;
#X obj 622 173 * 2;
#X obj 590 175 * 2;
#X obj 623 195 + 2;
#X obj 590 196 + 1;
#X msg 563 248 obj 0 0 r \$0-\$1-bang \, obj 0 0 \$1 \, connect \$2
0 \$3 0 \, connect \$3 0 0 0;
#X connect 0 0 1 0;
#X connect 2 0 0 0;
#X connect 3 1 4 0;
#X connect 4 0 9 0;
#X connect 4 1 8 0;
#X connect 4 2 2 2;
#X connect 5 0 2 1;
#X connect 6 0 2 0;
#X connect 7 0 3 0;
#X connect 8 0 5 0;
#X connect 9 0 6 0;
#X connect 11 1 12 0;
#X connect 12 0 14 0;
#X connect 12 1 16 0;
#X connect 12 2 15 0;
#X connect 13 0 11 0;
#X connect 14 0 19 0;
#X connect 15 0 17 0;
#X connect 16 0 18 0;
#X connect 17 0 14 2;
#X connect 18 0 14 1;
#X connect 19 0 10 0;
#X restore 9 15 pd make;
#X obj 109 108 bng 13 50 10 0 \$0-0-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 109 108 cnv 1 13 13 \$0-dummy \$0-0-square empty 20 12 0 14
-260818 -262144 0;
#X obj 124 108 bng 13 50 10 0 \$0-1-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 124 108 cnv 1 13 13 \$0-dummy \$0-1-square empty 20 12 0 14
-261681 -262144 0;
#X obj 139 108 bng 13 50 10 0 \$0-2-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 139 108 cnv 1 13 13 \$0-dummy \$0-2-square empty 20 12 0 14
-261681 -262144 0;
#X obj 154 108 bng 13 50 10 0 \$0-3-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 154 108 cnv 1 13 13 \$0-dummy \$0-3-square empty 20 12 0 14
-261682 -66577 0;
#X obj 169 108 bng 13 50 10 0 \$0-4-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 169 108 cnv 1 13 13 \$0-dummy \$0-4-square empty 20 12 0 14
-261681 -262144 0;
#X obj 184 108 bng 13 50 10 0 \$0-5-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 184 108 cnv 1 13 13 \$0-dummy \$0-5-square empty 20 12 0 14
-261682 -66577 0;
#X obj 199 108 bng 13 50 10 0 \$0-6-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 199 108 cnv 1 13 13 \$0-dummy \$0-6-square empty 20 12 0 14
-261682 -66577 0;
#X obj 214 108 bng 13 50 10 0 \$0-7-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 214 108 cnv 1 13 13 \$0-dummy \$0-7-square empty 20 12 0 14
-261681 -262144 0;
#X obj 109 123 bng 13 50 10 0 \$0-8-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 109 123 cnv 1 13 13 \$0-dummy \$0-8-square empty 20 12 0 14
-261682 -66577 0;
#X obj 124 123 bng 13 50 10 0 \$0-9-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 124 123 cnv 1 13 13 \$0-dummy \$0-9-square empty 20 12 0 14
-261682 -66577 0;
#X obj 139 123 bng 13 50 10 0 \$0-10-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 139 123 cnv 1 13 13 \$0-dummy \$0-10-square empty 20 12 0 14
-261682 -66577 0;
#X obj 154 123 bng 13 50 10 0 \$0-11-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 154 123 cnv 1 13 13 \$0-dummy \$0-11-square empty 20 12 0 14
-261682 -66577 0;
#X obj 169 123 bng 13 50 10 0 \$0-12-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 169 123 cnv 1 13 13 \$0-dummy \$0-12-square empty 20 12 0 14
-261682 -66577 0;
#X obj 184 123 bng 13 50 10 0 \$0-13-bang \$0-dummy empty 17 7 0 10
-262144 -1 -1;
#X obj 184 123 cnv 1 13 13 \$0-dummy \$0-13-square empty 20 12 0 14
-261682 -66577 0;
#X obj 

Re: [PD] Possible to unselect radio buttons?

2008-12-18 Thread Phil Stone
Steffen,

Auto-generated matrix and everything!  By the way, [fire64] wouldn't 
instantiate, but it apparently had done its work before you saved the 
abstraction, so the matrix worked fine.

Very, very cool.


Phil

Steffen Leve Poulsen wrote:
 Hi Phil

 here's one attached bang-matrix.pd

 mvh/steffen leve poulsen

 Phil Stone skrev:
 That's a pretty brilliant hack, Luke.  Thanks for the idea.

 Phil


 Luke Iannini wrote:
 Hi Phil!
 I've hacked this in before by using a bunch of [moses] objects and
 sending [color 1 1 1( etc. messages to the radio objects that are
 supposedly not selected (which makes the radio indicator the same
 color as the background so it looks like there's nothing there).

 I'd be happy to dig up a patch if you want to see a demo
 (but of course some way to do this built in to the IEMgui would be
 much faster : ) )

 Cheers
 Luke

 On Thu, Dec 18, 2008 at 1:06 PM, Phil Stone pkst...@ucdavis.edu 
 wrote:
  
 Is there any way to make there be *no* selection displayed in a radio
 button control?

 If not, this would be a very useful feature in that it would allow
 multiple banks of radio buttons to be tied together programatically.
 I.e., imagine a set of four hradio controls, stacked on top of each
 other.  Any selection in any of the four becomes the current 
 selection,
 but also turns off all other banks' selection indicators.

 Whereas a single 64-position radio control would be awkward to deal 
 with
 graphically, 8 rows of 8-pos. hradio controls would be nice and 
 compact.


 Phil Stone
 www.pkstonemusic.com




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


Re: [PD] Possible to unselect radio buttons?

2008-12-18 Thread Frank Barknecht
Hallo,
Phil Stone hat gesagt: // Phil Stone wrote:

 Is there any way to make there be *no* selection displayed in a radio 
 button control?

What I did in rrad.pattseq.pd in SVN was to hide the first box in a
radio button behind a [cnv] object. That way you could still click there
to deactivate this button. Only the numbers 1...n-1 are used in the
sequencer so for a 16 step seq I use a 17 step radio button.

Ciao
-- 
Frank

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