jrp Posted April 3, 2014 Report Share Posted April 3, 2014 (edited) Hello, I wanted to get rid of the fact that the display will scroll left and right while editing the envelope on the cs. After doing the rearrengement in the CS_Menue_Tables.inc the lcd is now starting with Depth, Attack, Decay, Sustain, Release. But now the 5 Encoders of the envelope section control wrong parameters. Seems like they are linked to a menu position rather than a dedicated function. Is there a fix i could do? Maybe another topic: Is there any chance to make the screen return to the last menu after an encoder has been turned? When i am editing a wavetable and turn a knob on the cs the display will jump to the associated menu and stay there. Good feature. It just would be nice if one could just jump to the last menu somehow Edited April 4, 2014 by jrp Quote Link to comment Share on other sites More sharing options...
jrp Posted April 4, 2014 Author Report Share Posted April 4, 2014 i got it all by myself :) thanks to the perfectly organiced code i was able to discover that the env encoders are linked to a menu position in the file cs_menu_enc_table.inc I changed the cursor and page offset. ;; Env "Env" Layer ;; menu offset cursor pos ;; CSENC_ENTRY CS_MENU_L_ENV, 0x01, 0x01 ; Depth ;; CSENC_ENTRY CS_MENU_L_ENV, 0x02, 0x03 ; Attack ;; CSENC_ENTRY CS_MENU_L_ENV, 0x06, 0x08 ; Decay ;; CSENC_ENTRY CS_MENU_L_ENV, 0x09, 0x09 ; Sustain ;; CSENC_ENTRY CS_MENU_L_ENV, 0x09, 0x0a ; Release CSENC_ENTRY CS_MENU_L_ENV, 0x00, 0x00 ; Depth CSENC_ENTRY CS_MENU_L_ENV, 0x00, 0x01 ; Attack CSENC_ENTRY CS_MENU_L_ENV, 0x00, 0x02 ; Decay CSENC_ENTRY CS_MENU_L_ENV, 0x00, 0x03 ; Sustain CSENC_ENTRY CS_MENU_L_ENV, 0x00, 0x04 ; Release After that, all was fine, but now my Env select button wasn´t working anymore. Aha - it must be pointing to position 0 of the menu where the parameter used to be.... In menu_buttons.inc i found the right lines of code CS_MENU_BUTTON_Env_Sel_L ;; increment ENV setting movlw 0x05 ; cursor pos movwf MIOS_PARAMETER1 movlw 0x00 ; page offset movwf MIOS_PARAMETER2 call CS_MENU_GetMenuID_ENV ; menu page goto CS_MENU_ButtonInc ;; movlw 0x00 ; cursor pos ;; movlw 0x00 ; page offset ;; movwf MIOS_PARAMETER2 ;; call CS_MENU_GetMenuID_ENV ; menu page ;; goto CS_MENU_ButtonInc ;; ;; now it´s fine! I´ll try to get into this some more. i could find it useful to select the envelope page with the env select button - then controll the envelope with the ecoders in assign mode (now fitting depth,a,d,s,r) -and then maybe redirecting the encoders on the env layer to do something alltogether different like controlling the depth of 5 lfos or analog outs, etc. 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.