How can i set/get parameters?

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

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.

The 006_rtos_tasks tutorial should help me to understand where to put my custom code, right?

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

It looks like kb_transpose is stored in mbng_event as

Quote

mbng_event_item_t

Where are the “event items” generated?

I think that this question is obsolete: 

< base_url >/topic/21174-please-help-me-to-understand-how-the-ng-app-works-internally/?do=embed&embedComment=184813&embedDo=findComment#comment-184813

Best Regards, Thorsten.