Jump to content

Recommended Posts

Posted

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?

Posted

It's strange that it shows up in the main menu without an entry in CS_MENU_TABLE_L_ROOT - or did you forget to mention this?

Maybe the ID values are not matching with the order in CS_MENU_TABLES_L anymore?

Best Regards, Thorsten.

Posted

It's strange that it shows up in the main menu without an entry in CS_MENU_TABLE_L_ROOT - or did you forget to mention this?

No, it was not in there yet  :-\

I added it to the list and that fixed the problem.

	CS_MENU_T_ENTRY	CS_MENU_TABLE_L_FL,   CS_MENU_Page_Parameters, CS_MENU_EXEC_GoToRoot,   "F/L", 0,                     0x00, PRINT_NOP

Thanks, TK!

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...