2hb Posted December 18, 2017 Report Share Posted December 18, 2017 I'm having trouble getting leds to work properly with pro tools At the moment I have the leds responding when I press solo in pro tools, but the problem is, when I press solo on any channel it will turn on all leds I have assigned. I know that the problem is in the way I'm coding because it is only doing this in pro tools. The code I am using is this, which are the cc equivalent values to sysex zone select/port on: EVENT_LED id= 1 type=cc chn=1 cc=12 range=0:0 EVENT_LED id= 1 type=cc chn=1 cc=44 range=67:67 I can't get them to respond with sysex messages, whereas it does work for buttons. For example, this was not working: EVENT_LED id= 1 type=sysex stream="0xb0 0x0c 0x00 0xb0 0x2c 0x43" I have the buttons configured in a similar way as shown before with cc messages with ranges and they work, so I thought maybe this could work for the leds, but it appears that is wrong What would be the right way to do this? Quote Link to comment Share on other sites More sharing options...
Zam Posted December 18, 2017 Report Share Posted December 18, 2017 (edited) Hello 2hb I guess you try to set all this in HUI mode (which is not sysex !! ) I have an beta/optional NGC/NGR version for a control surface in HUI mode. I'll check it and share the code strategy for this purpose asap, it's tricky... Best Zam Edited December 18, 2017 by Zam Quote Link to comment Share on other sites More sharing options...
Zam Posted December 18, 2017 Report Share Posted December 18, 2017 Ok, here it is. Example for SOLO function, hw_id related to my DI/O layout so you have to adapt... ################################################################################ # SOLO 1-8 ################################################################################ EVENT_BUTTON hw_id=4 id=4 type=SySEx stream="0xb0 0x0f 0x00 0xb0 0x2f 0x43" button_mode=toggle EVENT_BUTTON hw_id=12 id=12 type=SySEx stream="0xb0 0x0f 0x01 0xb0 0x2f 0x43" button_mode=toggle EVENT_BUTTON hw_id=20 id=20 type=SySEx stream="0xb0 0x0f 0x02 0xb0 0x2f 0x43" button_mode=toggle EVENT_BUTTON hw_id=28 id=28 type=SySEx stream="0xb0 0x0f 0x03 0xb0 0x2f 0x43" button_mode=toggle EVENT_BUTTON hw_id=36 id=36 type=SySEx stream="0xb0 0x0f 0x04 0xb0 0x2f 0x43" button_mode=toggle EVENT_BUTTON hw_id=44 id=44 type=SySEx stream="0xb0 0x0f 0x05 0xb0 0x2f 0x43" button_mode=toggle EVENT_BUTTON hw_id=52 id=52 type=SySEx stream="0xb0 0x0f 0x06 0xb0 0x2f 0x43" button_mode=toggle EVENT_BUTTON hw_id=60 id=60 type=SySEx stream="0xb0 0x0f 0x07 0xb0 0x2f 0x43" button_mode=toggle EVENT_RECEIVER hw_id=1040 id=1040 type=cc chn=1 cc=0x0c EVENT_RECEIVER hw_id=1041 id=1041 fwd_id=sender:1040:127 type=cc chn=1 cc=0x2c if_equal=0x43 EVENT_RECEIVER hw_id=1042 id=1042 fwd_id=sender:1040:0 type=cc chn=1 cc=0x2c if_equal=0x03 EVENT_SENDER hw_id=1040 id=1040 fwd_id=led:4 EVENT_LED hw_id=4 id=4 if_equal=receiver:1040:0 EVENT_SENDER hw_id=1040 id=1041 fwd_id=led:12 EVENT_LED hw_id=12 id=12 if_equal=receiver:1040:1 EVENT_SENDER hw_id=1040 id=1042 fwd_id=led:20 EVENT_LED hw_id=20 id=20 if_equal=receiver:1040:2 EVENT_SENDER hw_id=1040 id=1043 fwd_id=led:28 EVENT_LED hw_id=28 id=28 if_equal=receiver:1040:3 EVENT_SENDER hw_id=1040 id=1044 fwd_id=led:36 EVENT_LED hw_id=36 id=36 if_equal=receiver:1040:4 EVENT_SENDER hw_id=1040 id=1045 fwd_id=led:44 EVENT_LED hw_id=44 id=44 if_equal=receiver:1040:5 EVENT_SENDER hw_id=1040 id=1046 fwd_id=led:52 EVENT_LED hw_id=52 id=52 if_equal=receiver:1040:6 EVENT_SENDER hw_id=1040 id=1047 fwd_id=led:60 EVENT_LED hw_id=60 id=60 if_equal=receiver:1040:7 Best Zam Quote Link to comment Share on other sites More sharing options...
Zam Posted December 18, 2017 Report Share Posted December 18, 2017 For button, Sysex trick only one way, MIOS can send it but not receive it. For led, all them triggered by value (on/off with formatting) and activated only if zone value match Best Zam Quote Link to comment Share on other sites More sharing options...
2hb Posted December 19, 2017 Author Report Share Posted December 19, 2017 Thank you!! It is all working now! I guess as a side note, do you think there could be a way to make the mutes not flash when you solo a channel? Quote Link to comment Share on other sites More sharing options...
Zam Posted December 19, 2017 Report Share Posted December 19, 2017 4 hours ago, 2hb said: I guess as a side note, do you think there could be a way to make the mutes not flash when you solo a channel? Yes should be possible, certainly different options, with conditional at NGC, or set_active at NGR. However you have to think it a little further as you may have domino effect with the mute function if you just do a basic logic You have to define situation you don't want the flash without locking the mute LED for simultaneous state you need a mute... Best Zam Quote Link to comment Share on other sites More sharing options...
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.