Jump to content

Recommended Posts

Posted

The title says it all ;D, has anyone done this?

Ideally:1 press of the button gets next bank stick selected, when the current bank is the last one , selection goes back to the beginning.

thanks!

edited:and then I found a possible answer: http://www.midibox.org/forum/index.php?topic=3925.0

so, CS_MENU_MS_NotifyBankChange has the wanted behavior already? need to know before committing to a certain panel layout :-[

Posted

hehe, thanks!, kind of waited a little more complex answer, ok let's elaborate then:

so, to have this button can I define it? where?, or should I just take an existing button and have it call this NotifyBankChange, any lead can help ;D

Posted

Most of the answer is already given in the thread you posted ;-)

You want to add the additional buttons in cs_menu_io_tables.inc and program the functionality in cs_menu_buttons.inc.

Posted

been digging on both v1.7 and v2 files... some stuff is placed on different archives but now I know what to look for ;D.

I wonder if anything changed from that 2005 thread :D

Posted

I wonder if anything changed from that 2005 thread :D

no, MBSID V2 is just a fake to sell more MBHP modules - nothing but the version number has changed. ;-)

Best Regards, Thorsten.

P.S.: IO functions are now defined in setup_*.asm

Posted
...MBSID V2 is just a fake to sell more MBHP modules...

I knew it! ;D

thanks TK!

let's suppose i'll use the SID3 button:

CS_MENU_BUTTON_SID3

movlw 0x00

movwf SID_BANK

goto CS_MENU_MS_NotifyBankChange

this line "movlw 0x00" selects bankstick A0, right? and "movlw 0x01" would select bankstick A1?

so, if this is correct, it would not work as I wish, just one button to select next available bankstick on each press and back to first if we already have selected the last one ???

sorry if this is somehow obvious, but I have not the slightest idea about how to hack my way to this mod, just a big desire to have it ;D

Posted

You need to store the actually selected bankstick number somewhere.

If the up button is pressed check if the number equals [numberOfBanksticks]. If so set it to 0 else add 1 to it. Call NotifyBankChange.

If the down button is pressed check if the selected one is 0. If so set it to [numberOfBanksticks-1] else subtract 1 from it. Call NotifyBankChange.

Done.

:D

Posted

almost there with the logic fossi, but I want 1 button, not 2 ;D, I guess is time to go to the programming section on the forum.

btw. why 1 button only you may ask, easy: to save panel space

Posted

I agree

....

If the up button is pressed check if the number equals [numberOfBanksticks]. If so set it to 0 else add 1 to it.

.....

means: When you are in the last bank the "next bank" will be the same (=same number), because its the last bank already. If this happens ... goto bank 0. It's like a circle

Hope that helped.

greetz

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...