Toggle button problem. Need some guidance.

Post any examples or modules that you want to share here
Post Reply
Halon
Posts: 321
Joined: Sat Nov 28, 2015 4:42 pm
Location: Norway

Toggle button problem. Need some guidance.

Post by Halon »

Hi. So have been working on this Chorus for a while now, but im struggling with some of the buttons. So ive made four buttons for naming and saving presets, aswell as changing presets. And I also replaced an on / off switch with a new one, all from Knobman. Now the problem is this: the 'Prev' , 'Next' and the 'Power' buttons
Doesn't work as they should. When I press these buttons they dissapear until you press them again. Anyone got a clue what Might be wrong? Im leaving the schematic here for those who might have the solution. And if so, would you attach a comment on how you did it inside the schematic for future reference?

And yeah I know, its just the basic Stock Chorus, with some minor tweaks. I need to start somewhere right? :)

Cheers.
Attachments
AChorus.fsm
(56.43 KiB) Downloaded 1206 times
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Toggle button problem. Need some guidance.

Post by tulamide »

For the toggle switch the issue is your bitmap. The individual frames (here 2, the "on" and "off" states) have to be layed out horizontally (from left to right), but you have them layed out vertically. Also, you have to use the correct pixel value for cell size. If the width of 1 frame is 100 pixels (which it is here), you can't use 125 pixels (which you did).
"There lies the dog buried" (German saying translated literally)
Halon
Posts: 321
Joined: Sat Nov 28, 2015 4:42 pm
Location: Norway

Re: Toggle button problem. Need some guidance.

Post by Halon »

tulamide wrote:For the toggle switch the issue is your bitmap. The individual frames (here 2, the "on" and "off" states) have to be layed out horizontally (from left to right), but you have them layed out vertically. Also, you have to use the correct pixel value for cell size. If the width of 1 frame is 100 pixels (which it is here), you can't use 125 pixels (which you did).


Thanks. How do I lay them out horizontally?
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: Toggle button problem. Need some guidance.

Post by Spogg »

Alternatively you can edit the Ruby code!

I did this partly for my own education and it works.

I've added notes in the Ruby edit box to tell you what I did.

Here's just the rocker switch modified so you could use this as a starting point maybe...

Cheers

Spogg
Attachments
Rocker switch with vertical image strip.fsm
(13.47 KiB) Downloaded 1121 times
Halon
Posts: 321
Joined: Sat Nov 28, 2015 4:42 pm
Location: Norway

Re: Toggle button problem. Need some guidance.

Post by Halon »

Spogg wrote:Alternatively you can edit the Ruby code!

I did this partly for my own education and it works.

I've added notes in the Ruby edit box to tell you what I did.

Here's just the rocker switch modified so you could use this as a starting point maybe...

Cheers

Spogg


Thanks Spogg! Appreciate it. :)

Oh, I figured out how to change it from Vertically to horizontally, @tulamide.
Post Reply