i’m too dump to understand how the NG apps works internally.
I want to change the keyboard transpose parameter within the NG app, but can’t figure out how to do it.
There seems to be an event system where the kb_transpose parameter is used, but i’ve no idea where its value comes from and how i can change that value.
It looks like this parameter can be changed via .ngr script (set_kb_transpose) though. But that doesn’t help me i suppose.
I want to trigger transpose changes via hardware switches connected to J5a/b core ports. As i understand it, it is not possible to assign these switches in ngr/ngc scripts. Or is this still possible?
As i use tact switches: will this also work for tact switches or toggle switches only? Does the ain_fsr.gc example take care of the tact switch issue using " filter delay of 20 mS " ?
Sorry, i’m a little overwhelmed by all of this.
Edit: i also need to enable/disable two status LEDs connected to J5a/b.
But regardless of this, it will result into the problem that the MBNG application will overwrite IO configurations from different places - and even if we find quick&dirty hacks which avoid such overwrites, you would have to re-do the changes whenever a new firmware version is released.
Therefore I recommend to go the common way and to use the existing app like it was intended.
Alternatively I could consider to natively support J5 as digital IO in a proper way (which will require changes at many places that I’ve to work out by myself…)
That’s true. I omitted that part in my example. But i already got the two LEDs working following the 008_j5_outputs tutorial. But this was only to test if its working at all.
If there is no better solution i suppose i have to use two different strategies at the same time. One for the switches using NGR scripts and another for the LEDs using custom code. The LED handler would only read (get) kb_transpose, not alter it. But yeah, sounds like some dirty hack in the end.
If you could add digital IO support that would be very nice. I assume others would like that addition too.
Yes, for me it will be straightforward - I’m just a bit worried that than more options I’m adding, than more complicated for others to understand the configuration…
Tomorrow I’m planning a change for CV handling anyhow, if nothing else happens, I will add J5 IOs as well
It would be very nice of you if you would add these new options. I mean, it can’t get any more complicated
Will i be able to change kb_transpose and enable/disable indicator LEDs reflecting the current value of kb_transpose if you are ready? It looks like If-else statements are supported in NGR.
Since i already have configurations for DIO Matrix (keyboard) and AINSER8 modules (these modules are currently not connected to the core), could it be that there are conflicts related to emu_din_sr/emu_dout_sr? When i press the buttons connected to J5A note on/off events are triggered.
Edit: uncommenting EVENT_KB stops those random note triggers.. really strange