tago Posted August 28, 2019 Report Posted August 28, 2019 Hi, i'm trying to add some custom code to the NG app. I want to set/get a parameter called kb_transpose. It seems that this parameter is part of MBNG_EVENT_CONTROLLER_KB event. 1.) Do i have to dispatch MBNG_EVENT_CONTROLLER_KB when i want to change the value of kb_transpose? 2.) How would i get the current value of kb_transpose? As you can see i've trouble understanding how i can change parameters via code without using ngc/ngr scripts. I've no idea where parameters are stored and how i can access them. Is there a suitable tutorial for this? Your help is greatly appreciated Quote
tago Posted August 28, 2019 Author Report Posted August 28, 2019 (edited) Closer explanation: I'm building a midi keyboard controller and would like to have two switches with respective indicator LEDs as octave up/down controls. The switches and LEDs are connected to J5a. Edited August 28, 2019 by tago Quote
tago Posted August 28, 2019 Author Report Posted August 28, 2019 The 006_rtos_tasks tutorial should help me to understand where to put my custom code, right? Quote
tago Posted September 12, 2019 Author Report Posted September 12, 2019 Hi. i'd appreciate some help understanding how the NG app works. I want to transpose (octave up/down) a keyboard, but don't understand where the respective variable is stored and how i can change its value. In MBNG_KB_NotifyToggle (mbng_kb.c) line 173 i found this: s8 kb_transpose = (s8)item.custom_flags.KB.kb_transpose; This appears to be the place where the transpose value is added to the actual note pressed. Is this correct? How can i change kb_transpose myself? Thank you very much Quote
tago Posted September 12, 2019 Author Report Posted September 12, 2019 It looks like kb_transpose is stored in mbng_event as Quote mbng_event_item_t Where are the "event items" generated? Quote
TK. Posted September 13, 2019 Report Posted September 13, 2019 I think that this question is obsolete: Best Regards, Thorsten. Quote
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.