Jump to content
Sign in to follow this  
jstnj

Behringer X-Touch Mini LED's

Recommended Posts

(A:AP_PANEL_HEADING_HOLD,·Number)·1·==·if{·1·(>MIDI:6:NoteOn:6:8)·}·els{·0·(>MIDI:6:NoteOn:6:8)·}

I am troubleshooting getting xtouch LEDs to work with the G1000nXi in msfs and having some trouble. Hoping someone can point out what I'm doing wrong.

 

I think I am using the wrong variable type, what I want to get is the state of the setting from the sim and reflect that in the LED, but after reading the documentation I'm still a little lost. I tried copying from a working template I found for a different aircraft (using L: vars) and then converted them to the read variables I have for the streamdeck profile...but haven't had any luck.

Any assistance is appreciated.


This is my MIDI Device list

 

I also tried this with no luck (different variable but trying all LEDs):

(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:8)·}·els{·0·(>MIDI:6:NoteOn:6:8)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:9)·}·els{·0·(>MIDI:6:NoteOn:6:9)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:10)·}·els{·0·(>MIDI:6:NoteOn:6:10)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:11)·}·els{·0·(>MIDI:6:NoteOn:6:11)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:12)·}·els{·0·(>MIDI:6:NoteOn:6:12)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:13)·}·els{·0·(>MIDI:6:NoteOn:6:13)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:14)·}·els{·0·(>MIDI:6:NoteOn:6:14)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:15)·}·els{·0·(>MIDI:6:NoteOn:6:15)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:16)·}·els{·0·(>MIDI:6:NoteOn:6:16)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:17)·}·els{·0·(>MIDI:6:NoteOn:6:17)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:18)·}·els{·0·(>MIDI:6:NoteOn:6:18)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:19)·}·els{·0·(>MIDI:6:NoteOn:6:19)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:20)·}·els{·0·(>MIDI:6:NoteOn:6:20)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:21)·}·els{·0·(>MIDI:6:NoteOn:6:21)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:22)·}·els{·0·(>MIDI:6:NoteOn:6:22)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:23)·}·els{·0·(>MIDI:6:NoteOn:6:23)·}


Clearly I'm doing something wrong.

 

edit: nevermind...I accidentally replaced "NoteOn:11:" with "NoteOn:6:" which was the wrong address...fixed

Edited by jstnj

Share this post


Link to post
Share on other sites
2 hours ago, MaDDogz said:

Did the forum add all those dots to that code?

The dots are a visual cue in  the RPN Editor of AAO. If you copy&paste from the editor window, you copy them too. Copy&pasting it back will work, since the editor can handle them. Pasting the code anywhere else (other app, StreamDeck, Scriptfiles etc) will fail.

But my advice would be to always copy the compiled code from the lower textbox - dots are removed when you do that.

Edited by Lorby_SI
  • Like 1

LORBY-SI

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...