Jump to content

How can i set/get parameters?


tago
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • 3 weeks later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...