Page 1 of 1
Toggle button problem. Need some guidance.
Posted: Sun Dec 06, 2015 2:10 am
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.
Re: Toggle button problem. Need some guidance.
Posted: Sun Dec 06, 2015 12:46 pm
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).
Re: Toggle button problem. Need some guidance.
Posted: Sun Dec 06, 2015 3:47 pm
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?
Re: Toggle button problem. Need some guidance.
Posted: Sun Dec 06, 2015 4:12 pm
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
Re: Toggle button problem. Need some guidance.
Posted: Sun Dec 06, 2015 4:32 pm
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.