Jump to content

MAKE: Symbol not previously defined (CS_MENU_GetMenuID_GNC)


Recommended Posts

Posted

i've make my own menu GNC, just in BassLine Menu, at the end, after SAV. (just 1 for test, soon will be 3 or 6 toggled by 1 button) it work fine, and i've change the "jump to menu" encoder movement to my own menu page ..ok.

now i'm trying layering this page but during make it say:

Symbol not previously defined (CS_MENU_GetMenuID_GNC).

cs_menu_button.inc

CS_MENU_BUTTON_Layer
	;; do nothing if button has been depressed
	btfsc	MIOS_PARAMETER2, 0
	return

	call	CS_MENU_GetMenuID_GNC		; goto GNC menu page
	goto	CS_MENU_BUTTON_Hlp_MenuChange

	movlw	0x00				; put 0 (layer number) in the WREG
	movwf	CS_MENU_LAYER			; write it into the variable
	return
It do not recognize my menu that is in cs_menu_tables.inc
cs_menu_table.inc

CS_MENU_TABLES_IDS
	;;      lead           bassline       drum           multi
	db	CS_MENU_ROOT,  CS_MENU_B_GNC, CS_MENU_ROOT,  CS_MENU_ROOT

CS_MENU_TABLES_B
	;;              pointer to table      par. button pressed      exec button pressed   page name          var            max  print
	CS_MENU_T_ENTRY	CS_MENU_TABLE_B_GNC,  CS_MENU_Page_Parameters, CS_MENU_EXEC_GoToRoot,   "GNC", 0,                     0x00, PRINT_NOP

CS_MENU_B_GNC	EQU	0x0d

CS_MENU_TABLE_B_ROOT
	;;              Register (00=dummy)        |<->|   max    print ix          exec ix          parameter transfer
	CS_MENU_ENTRY	CS_MENU_B_GNC,             "GNC",  0x000, PRINT_NOP,        EXEC_MENU,       R2PP2R_NOP

; ==========================================================================
;  The BassLine Ganchan Menu (ACh LR, Seq °/*, Seq 1-8, Cut, Res)
; ==========================================================================
CS_MENU_TABLE_B_GNC
	db	(CS_MENU_TABLE_B_GNC_End-CS_MENU_TABLE_B_GNC)/CS_MENU_ENTRY_LEN, 0x00

	;;              Register (00=dummy)         |<->|  max    print ix          exec ix          parameter transfer
	CS_MENU_ENTRY	CS_MENU_SELECTED_SID_LR,    "ACh", 0x002, PRINT_VAR_LR,     EXEC_TOGPAR,     R2PP2R_VAR_SIDLR
	CS_MENU_ENTRY	SID_Ix_B_Vx_FLAGS2,         "On ", 0x001, PRINT_M_Vx_WTO,   EXEC_TOGPAR,     R2PP2R_B_Vx_MODE
	CS_MENU_ENTRY	SID_Ix_B_Vx_SEQ_NUM,        "Seq", 0x008, PRINT_SEQ_NUM,    EXEC_SELPAR,     R2PP2R_Vx
	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_TABLE_B_GNC_End

what i've leave out? uhm..

Posted

the CS_MENU_GetMenuID_GNC function needs to be defined first. This should be done in cs_menu.inc in the section titled

;; --------------------------------------------------------------------------
;;  This function returns the CS_MENU_x_xxx ID depending on selected engine
;; --------------------------------------------------------------------------[/code]

which is around line 2056.

Posted

yes! perfect it work!.. thankyou.

this is because i don't know nothing about programming.. i know stupid question.

;; --------------------------------------------------------------------------
;;  This function returns the CS_MENU_x_xxx ID depending on selected engine
;; --------------------------------------------------------------------------
CS_MENU_GetMenuID_OSC
	movlw	0*4
	rgoto	CS_MENU_GetMenuID_Cont
CS_MENU_GetMenuID_FIL
	movlw	1*4
	rgoto	CS_MENU_GetMenuID_Cont
CS_MENU_GetMenuID_LFO
	movlw	2*4
	rgoto	CS_MENU_GetMenuID_Cont
CS_MENU_GetMenuID_ENV
	movlw	3*4
	rgoto	CS_MENU_GetMenuID_Cont
CS_MENU_GetMenuID_MOD
	movlw	4*4
	rgoto	CS_MENU_GetMenuID_Cont
CS_MENU_GetMenuID_KNB
	movlw	5*4
	rgoto	CS_MENU_GetMenuID_Cont
CS_MENU_GetMenuID_SAV
	movlw	6*4
	rgoto	CS_MENU_GetMenuID_Cont
CS_MENU_GetMenuID_GNC
	movlw	7*4
	;;	rgoto	CS_MENU_GetMenuID_Cont

nILS, in your tutorial layering the ui this step it's not present. i think it would be useful for people like me, that cook better than programming. ;) tnx

Posted

nILS, in your tutorial layering the ui this step it's not present. i think it would be useful for people like me, that cook better than programming.

Yeah, I left it out to see if people would notice  ;)  It's in there now - thanks!
Posted
Yeah, I left it out to see if people would notice  ;)  It's in there now - thanks!

ahahah, i think i'm the only one that have noticed because i'm the only one that need a wiki :p

good, now i must toggle the button for switching my pages..

Posted

ahahah, i think i'm the only one that have noticed because i'm the only one that need a wiki :p

More likely you're the only one game to try it yet :)

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