I’m trying to add a page to the men structure. That page is supposed to have 5 entries. Filter Cutoff, Filter Resonance, NOP, LFO Rate, LFO Depth. Therefore I created this table:
; ==========================================================================
; The combined FIL/LFO menu
; ==========================================================================
CS_MENU_TABLE_L_FL
db (CS_MENU_TABLE_L_FL_End-CS_MENU_TABLE_L_FL)/CS_MENU_ENTRY_LEN, 0x00
;; Register (00=dummy) |<->| max print ix exec ix parameter transfer
CS_MENU_ENTRY SID_Ix_L_Fx_CUTOFF_L, "Cut", 0xfff, PRINT_Fx_CUTOFF, EXEC_SELPAR, R2PP2R_Fx_CUTOFF
CS_MENU_ENTRY SID_Ix_L_Fx_RESONANCE, "Res", 0x0ff, PRINT_Fx_RESON, EXEC_SELPAR, R2PP2R_Fx_RESON
CS_MENU_ENTRY 0x00, " | ", 0x000, PRINT_NOP, EXEC_NOP, R2PP2R_NOP
CS_MENU_ENTRY SID_Ix_LFOx_RATE, "Rte", 0x0ff, PRINT_LFOx_RATE, EXEC_SELPAR, R2PP2R_NOP
CS_MENU_ENTRY SID_Ix_LFOx_DEPTH, "Dep", 0x0ff, PRINT_LFOx_PMDEC8,EXEC_SELPAR, R2PP2R_LFOx
CS_MENU_TABLE_L_FL_End[/code]
Added the entry to the CS_MENU_TABLES_L:
[code]CS\_MENU\_TABLES\_L
;; pointer to table par. button pressed exec button pressed page nam var max print function
;; ...
CS\_MENU\_T\_ENTRY CS\_MENU\_TABLE\_L\_FL, CS\_MENU\_Page\_Parameters, CS\_MENU\_EXEC\_GoToRoot, "F/L", 0, 0x00, PRINT\_NOP
;; ...
Gave it an ID:
CS_MENU_L_FL EQU 0x0f
Added it to the ID list:
CS_MENU_TABLES_IDS
;; lead bassline drum multi
;; ...
db CS_MENU_L_FL, CS_MENU_ROOT, CS_MENU_ROOT, CS_MENU_ROOT[/code]
So far so good. It shows up in the main menu. I can't really select it though and it completely screws up all the other menus (menu buttons select the item to their left...).
Any ideas?