sineSurfer Posted January 7, 2008 Report Share Posted January 7, 2008 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.0so, CS_MENU_MS_NotifyBankChange has the wanted behavior already? need to know before committing to a certain panel layout :-[ Quote Link to comment Share on other sites More sharing options...
nILS Posted January 7, 2008 Report Share Posted January 7, 2008 Yes, this is possible. Quote Link to comment Share on other sites More sharing options...
sineSurfer Posted January 9, 2008 Author Report Share Posted January 9, 2008 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 Quote Link to comment Share on other sites More sharing options...
nILS Posted January 9, 2008 Report Share Posted January 9, 2008 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. Quote Link to comment Share on other sites More sharing options...
sineSurfer Posted January 9, 2008 Author Report Share Posted January 9, 2008 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 Quote Link to comment Share on other sites More sharing options...
TK. Posted January 9, 2008 Report Share Posted January 9, 2008 I wonder if anything changed from that 2005 thread :Dno, 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 Quote Link to comment Share on other sites More sharing options...
sineSurfer Posted January 10, 2008 Author Report Share Posted January 10, 2008 ...MBSID V2 is just a fake to sell more MBHP modules... I knew it! ;Dthanks TK!let's suppose i'll use the SID3 button:CS_MENU_BUTTON_SID3 movlw 0x00 movwf SID_BANK goto CS_MENU_MS_NotifyBankChangethis 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 Quote Link to comment Share on other sites More sharing options...
nILS Posted January 10, 2008 Report Share Posted January 10, 2008 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 Quote Link to comment Share on other sites More sharing options...
sineSurfer Posted January 10, 2008 Author Report Share Posted January 10, 2008 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 Quote Link to comment Share on other sites More sharing options...
nILS Posted January 10, 2008 Report Share Posted January 10, 2008 Um, well that doesn't change anything about what I've written... Quote Link to comment Share on other sites More sharing options...
dj3nk Posted January 11, 2008 Report Share Posted January 11, 2008 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 circleHope that helped.greetz Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.