Pad selectors(or "radio" selectors)

Post any examples or modules that you want to share here
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Pad selectors(or "radio" selectors)

Post by billv »

Walter Sommerfeld wrote:Can u change it 4 me so i can (de-)select multiple pads while dragging ?

That's where it began actually Walter, the radio selector version was just a quick detour... :)
I was trying to build a "Multi-purpose Grid Template" ...anyway...
Control....
1. left mouse click/drag = Draw
2. rightmouse click/drag = Delete
3. Right double click = Delete all
Outputs...
1. Selection
2. Selection array
3. Alt value
4. Alt value array
5. Boolean Array

Notes:
Mouse capture is standard and not accurate... having trouble writing the accurate mouse in...
Preset is working, but note I've used the Preset String Prim. Don't really trust it....not sure...
It claims a max of 256 chr, but I'm still getting results with more than 256 chr.

Hope its useful...Thanks for feedback Walter...Cheers
Grid_BV_RowsandColums.fsm
(126.2 KiB) Downloaded 1019 times
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Pad selectors(or "radio" selectors)

Post by tulamide »

billv wrote:Preset is working, but note I've used the Preset String Prim. Don't really trust it....not sure...
It claims a max of 256 chr, but I'm still getting results with more than 256 chr.

That's once again a restriction of the VST 2.4 standard (255 bytes plus null byte = 256 byte string). Byte = char in plain ASCII. So it might work with more chars, but those hosts exactly supporting VST2.4 won't. Just make sure you use 255 chars at most to stay compatible with the standard.
"There lies the dog buried" (German saying translated literally)
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Pad selectors(or "radio" selectors)

Post by billv »

Thanks tulamide. Preset String Prim was a bad choice.
Not suitable...will go back to VST Parameter Array Prim
and try to fix bug that made me change to Preset String Prim.
User avatar
Walter Sommerfeld
Posts: 250
Joined: Wed Jul 14, 2010 6:00 pm
Location: HH - Made in Germany
Contact:

Re: Pad selectors(or "radio" selectors)

Post by Walter Sommerfeld »

nearly perfect billv...

I need to deselect also via LDown (Touch-Screen) - is this possible 4U???

Thanks again
Walter

P.S.: Please exclude the edge area from Mouse area - if doable!
This way diagonal mouse moves (with greater edges around the pads) are possible wo activating all pads around... ;)
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Pad selectors(or "radio" selectors)

Post by billv »

Walter Sommerfeld wrote:I need to deselect also via LDown (Touch-Screen) - is this possible 4U???

Yeh maybe.....I can "see" a way forward on this....but will take a fair bit of re-writing..
Got some days off soon.....have patience Walter...I'm a bit slow....
Walter Sommerfeld wrote:This way diagonal mouse moves (with greater edges around the pads) are possible wo activating all pads around...

Saw that issue with diagonal moves...had no idea how to fix....
Thanks for the tip Walter... I've seen the other guys use "inner" and "outer" technique...
Not real confident here but will take a look at that too.
User avatar
kortezzzz
Posts: 763
Joined: Tue Mar 19, 2013 4:21 pm

Re: Pad selectors(or "radio" selectors)

Post by kortezzzz »

Amazing stuff, billv. It's a pearl. :)

If you could remove the limitation of fixed grid size and put a scroller (like in trogs super-text module), would be great, so then we can finally abandon the nasty drop list prim for reading text files from folders and making them selectable straight from the GUI. Trog's one is quite good and cleaver module, but sometimes freaks out, makes difficult to locate the text in the right position and not always reads the incoming array (especially string array) from the preset. Yours is much reliable.
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Pad selectors(or "radio" selectors)

Post by billv »

kortezzzz wrote:Trog's one is quite good and cleaver module, but sometimes freaks out,

Bummer you got issues with that. I built a program earlier in the year( was lost in crash)
that used Trog's Radio extensively, and it worked great. It's a great piece of work, but
real hard for noobs to modify code cause you got to work around Trog's monster brain... :lol:
(that's the only reason I had to build my own...
I couldn't work out how to get rid of the spacings in-between each graphic.. :D )
kortezzzz wrote:remove the limitation of fixed grid size and put a scroller

Yeh ..I saw this too a while back....defiantly want a version like that as well..
On the list somewhere.. looks like a fun mod too...
PS
Nice job on the graphics for gurus..that site is really looking good..will be massive in a few years..

Walter Sommerfeld wrote:I need to deselect also via LDown (Touch-Screen) - is this possible 4U???

This is done now . I'm getting a slight bug though...clicking really fast on/off is buggy.
Clicking normal speed on/off is fine....I'll up it when it's faultless...or near as i can get...
This new behavior kind of works well in practice and makes sense Walter.

EDIT:
@kortezzzz...
If you can isolate the issue with Trog's radio, stick it in example fsm and up it to General section,
I'm sure the gurus can probably sort it out if Trog's busy/not around...
User avatar
Walter Sommerfeld
Posts: 250
Joined: Wed Jul 14, 2010 6:00 pm
Location: HH - Made in Germany
Contact:

Re: Pad selectors(or "radio" selectors)

Post by Walter Sommerfeld »

I need to deselect also via LDown (Touch-Screen) - is this possible 4U???

This is done now .
This new behavior kind of works well in practice and makes sense Walter.


...awesome news

I'm getting a slight bug though...clicking really fast on/off is buggy.
Clicking normal speed on/off is fine....I'll up it when it's faultless...or near as i can get...

Yeah - this mouse behaviour is a little mess - i know it 2 well inside my own projects :(

btw: if u even make a gradient possible in the back 4 each pad - this would be nice 2!

keep on doing!
Walter
User avatar
kortezzzz
Posts: 763
Joined: Tue Mar 19, 2013 4:21 pm

Re: Pad selectors(or "radio" selectors)

Post by kortezzzz »

I couldn't work out how to get rid of the spacings in-between each graphic..


Yep! :lol: I also tried to fix the spaces for almost a damn hour before ended up with a reasonable compromise.
And the preset thing almost made me loose my mind before I found out that the string array input can't be
fed straight from text prim. But cheers to trog for the pioneering ;)

On the list somewhere

Great news 8-)

Nice job on the graphics for gurus..that site is really looking good..will be massive in a few years..


Thanks. Was glad to have a chance to contribute my modest contribution to the community.
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Pad selectors(or "radio" selectors)

Post by billv »

Walter Sommerfeld wrote:this mouse behaviour is a little mess

Worked out the issue last night. Problem is this Walter.
EG: Switch is on...left click and release mouse... switch turns off..perfect..
But if you move the mouse after click and before release, the mouse capture
is activated and will quickly turn the switch back on..
In other words, LMouse Down delete works....but only if you dont move the mouse
and activate the mouse capture...
End result is it feels like a bug to the user....I can't see a way around this ATM...
Walter Sommerfeld wrote: if u even make a gradient possible in the back 4 each pad - this would be nice 2!

Color/Gradient options should't be hard....will take a look at that too...
Post Reply