lg
New Member
Posts: 17
|
Post by lg on Nov 30, 2021 2:53:28 GMT -5
neither nor...
|
|
|
Post by schlapbe on Nov 30, 2021 4:15:43 GMT -5
well, then your X-Control is not setup right and therefor it can't work is not triggered because it is not getting the correct midi data. to be a 100% sure make it this line: mode_4_button = note, 10, 48, 0, 127, msg "XMODE 4“Check what midi data you send(keyboard or controller, which one do you use for this X-ControlScript?) and recieve (in ableton) you can either use a max4live device Midimonitor(e.g. maxforlive.com/library/device/2842/midi-monitor) or a standalone monitor: hexler.net/protokolboth are available for free and both platforms. If a X-Control does not work, that is always the first step for me. msg "something" always works and most of the time, at least in my case, that is the problem. btw. also an indicator is the very little light in the upper right corner, which indicates incoming midi data. If a X-Control is set correctly the midi data won't make it to this point. If you press the desired button, and a light flickers up, you know the x-control is not set right.
|
|
lg
New Member
Posts: 17
|
Post by lg on Nov 30, 2021 5:05:50 GMT -5
Thanks a lot, schlapbe!!
I'll try that these days. It's a very good process for me to understand that field better!!
(But I'm not sure that it will solve my original problem... as my last post was a test with a different controller... and yes, maybe failed in the midi configuration (global oder in clyphx..)...
Anyway, thank's for the tips, I'll check that with the test and the original setting and will let you know.
Best
|
|
lg
New Member
Posts: 17
|
Post by lg on Dec 2, 2021 5:52:42 GMT -5
Hi together and schlapbe, again, thx for your help! I think, I'm a step further but the problem is not solved... I made a lot of testing with msg... my midi pref's and data were correct (b1 shows "> macrotestmode1" ... see below) (I even reinstalled ClyphXPro.. and followed this: forum.nativekontrol.com/post/21021)Ohhhh, I hope it's not something very stupid that I missed..) To keep this message not to long, I hope i can summarise it with this: The buttons work but x-mode doesn't work as the x-control does not work if I change the order of commands: > this does not show anything in status bar, when mode1-button is pressed: mode_1_button = NOTE, 10, 48, 0, 127, xmode 1, msg xmodetestmode1>>but the following x-control shows "> xmodetestmode1, xmode 1" when mode10-button is pressed: mode_1_button = NOTE, 10, 48, 0, 127, msg xmodetestmode1, xmode 1Well I'm not sure but this means, that xmode isn't recognised, as a disfunctional command is before the functioning, doesn't it? Here's the rest fyi:mode_1_button = NOTE, 10, 48, 0, 127, msg xmodetestmode1, xmode 1 >shows in status bar mode_2_button = NOTE, 10, 50, 0, 127, msg xmodetestmode2, xmode 2 >shows in status bar, but does not activate xmode 2 mode_3_button = NOTE, 10, 52, 0, 127, xmode 12, msg xmodetestmode3 >doesn't work (doesn't show and doesn't activate xmode 3) b1 = NOTE, 1, 75, 0, 127, $b1$
$b1_mode_1$ = msg macrotestmode1 >works $b1_mode_2$ = msg macrotestmode2 >doesn't work $b1_mode_3$ = msg macrotestmode3 >doesn't work $b1$ = $b1_mode_1$
|
|
|
Post by schlapbe on Dec 2, 2021 7:51:01 GMT -5
That could be an easy solution. you should use ; as a separator for more than one action.
mode_1_button = NOTE, 10, 48, 0, 127, msg xmodetestmode1, xmode 1 should be mode_1_button = NOTE, 10, 48, 0, 127, msg xmodetestmode1; xmode 1;
|
|
lg
New Member
Posts: 17
|
Post by lg on Dec 2, 2021 8:29:10 GMT -5
OH YES. d**n. Ok... I'll go back to my original problem.
EDIT: Solved. I cannot completely recapitulate the process, maybe it was just a problem of same midi data on x-controls and midi - as I shifted a lot of commands from midi to x-controls.. ..but I learnt so much!
Again, thanks a lot, Schlapbe!!
L
|
|
|
Post by schlapbe on Dec 2, 2021 20:07:29 GMT -5
My pleasure.
|
|
|
Post by terrarium on Dec 18, 2021 23:14:57 GMT -5
Hi Folks - if you need to have a second variable altered by these modes changes see below. You need to make a new mode command, here i've set up "zmode" to make independant changes to $a1$. zmode 1 will make no alteration to xmode state or $b1$.
@schalpbe see if this is of interest to you.
class XModeAction(UserActionsBase): def create_actions(self): """ Create the action. We define it as a global action since it's not specific to a track, device or clip. """ self.add_global_action('xmode', self._handle_xmode) self.add_global_action('zmode', self._handle_zmode)
def _handle_zmode(self, _, args):
fnc = self.canonical_parent.clyphx_pro_component.trigger_action_list
index = int(args)
for i in xrange(1, NUM_X_CONTROLS):
fnc('$a%s$=$a%s_mode_%s$' % (i, i, index))
def _handle_xmode(self, _, args):
fnc = self.canonical_parent.clyphx_pro_component.trigger_action_list
index = int(args)
for i in xrange(1, NUM_X_CONTROLS):
fnc('$b%s$=$b%s_mode_%s$' % (i, i, index))
|
|
|
Post by terrarium on Jan 6, 2022 23:23:35 GMT -5
ChainsawArt - one thing i've found really perplexing about his example here is he insists that the x-control be named the same as the macro. Is that the only way xmode will work was it just for ease of demonstration?
|
|
|
Post by ChainsawArt on Jan 7, 2022 14:24:33 GMT -5
terrariumThe naming scheme importance is necessary only for the macro names. As far as I can tell, the X-Control being named the same as the macro is just to keep things organized and easy to follow in the demonstration. Best practice.
|
|
|
Post by terrarium on Jan 11, 2022 1:50:53 GMT -5
phew, thanks, I been buggin'.
|
|
|
Post by dequote on Feb 13, 2023 19:44:57 GMT -5
That wouldn't work since ClyphX Pro doesn't handle assigning a macro to a macro to a macro. You'd need to specify the actual action list (not a macro) for $b1_mode_1$ and $b2_mode_1$. I made a simple (and perhaps hacky) user action, "DQ", which runs strings as actions: forum.nativekontrol.com/thread/4529/strings-actions-reassign-xcontrols-xmodesAmong others, it can reassign x-controls via macros or in action lists (like BIND does for bindings), or call macros within other macros. It's an alternative to SHIFT/XMODE. Example of using DQ to switch mode/submode. Macros.txt: # Mixing submode (pan/solo) $MODE_MIXING_SUBMODE$ = BIND KNOB1 1/PAN; BIND KNOB2 2/PAN; BIND KNOB3 3/PAN; dq "$B1$ = 1/SOLO";dq "$B2$ = 2/SOLO";dq "$B3$ = 3/SOLO"
# Mixing mode (vol/arm) $MODE_MIXING$ = BIND KNOB1 1/VOL; BIND KNOB2 2/VOL; BIND KNOB3 3/VOL; dq "$B1$ = 1/ARM"; dq "$B2$ = 2/ARM"; dq "$B3$ = 3/ARM"; dq "$B4$ = $MODE_MIXING_SUBMODE$"; dq "$B4_OFF$ = $MODE_MIXING$"
# Default mode (track control) $MODE_DEFAULT$ = BIND KNOB1 SEL/VOL; BIND KNOB2 SEL/PAN; BIND KNOB3 SEL/SEND A; dq "$B1$ = SEL/MUTE"; dq "$B2$ = SEL/SOLO"; dq "$B3$ = </SEL"; dq "$B4$ = >/SEL"; dq "$B4_OFF$ = NONE"; dq "$B5$ = $MODE_MIXING$"; dq "$B5_OFF$ = $MODE_DEFAULT$"
|
|
|
Post by cliffhanger on Feb 13, 2023 21:02:26 GMT -5
dequote Thanks for your work on this , I am struggling at this moment to get XMODES to work : Question 1 TO ANYBODY ? Is the XMODES user action file in the Tips section of this forum still working for live 11 or is there meant to be an updated version ? question 2 dequote , as a rookie , if I were to try to use your code ,what am i meant to do with the UserAction section of the code ? paste into an existing txt file , create a new one , if so, how ? i am not a coder . Thanks
|
|
|
Post by dequote on Feb 13, 2023 22:02:05 GMT -5
question 2 dequote , as a rookie , if I were to try to use your code ,what am i meant to do with the UserAction section of the code ? paste into an existing txt file , create a new one , if so, how ? i am not a coder . Thanks Either save the code to a file named "MyUserActions.py" in user_actions (Windows: /Ableton/User Library/Remote scripts/ClyphX_Pro/clyphx_pro/user_actions), or copy the line "self.add_global_action" and "def dq" to an existing user action file. I posted more instructions in the thread: forum.nativekontrol.com/thread/4529/strings-actions-reassign-xcontrols-xmodes
|
|
|
Post by schlapbe on Feb 21, 2023 7:13:22 GMT -5
dequote Thanks for your work on this , I am struggling at this moment to get XMODES to work : Question 1 TO ANYBODY ? Is the XMODES user action file in the Tips section of this forum still working for live 11 or is there meant to be an updated version ? question 2 dequote , as a rookie , if I were to try to use your code ,what am i meant to do with the UserAction section of the code ? paste into an existing txt file , create a new one , if so, how ? i am not a coder . Thanks Hi cliffhanger, yes the file from the first page still works! It is a fairly simple script.... reliable. I use it heavily in combination with G-Controls and bindings without any issues!
|
|