Page 1 of 2

Toggle bypassing fade times

Posted: Sun Aug 11, 2013 1:24 am
by freadZdead
aaand one more - is there a way to toggle bypassing fade times? I find that in plotting situations, this can be mighty helpful (I remember it from one of those ancient LX Control Boards that are run with a television monitor - a latching switch that enabled or disabled the use of fade times)...

Of course, an access to this via OSC would be cool as well :).

Posted: Sun Aug 11, 2013 1:59 am
by admin
Holding down the option key and clicking either the Go or Back button in the Live window will bypass the fade times and jump to the cue.

You can enable this continuously using the View->Quick Mode command.

Posted: Sun Aug 11, 2013 2:45 am
by freadZdead
Thanks so much, with this little AppleScript, I can use OSCulator now to toggle, even if LXConsole is not in the foreground (i.e. when working in QLab):

Code: Select all

set origAppl to (path to frontmost application) as text
tell application "LXConsole" to activate
tell application "System Events"
	tell process "LXConsole"
		keystroke "k" using {command down, option down}
	end tell
end tell
tell application origAppl to activate

Posted: Mon Jun 09, 2014 1:52 pm
by freadZdead
Could it be that in the current latest build, the shortcut Command Option K does not successfully toggle Quick mode anymore when the Cue window is in focus? It seems the menu item is still there, and you can see a brief flicker of blue when the shortcut activates the underlying menu item, but the menu item does not get checked/unchecked anymore.

Can this work application wide, and not just in the Live Controls window?

In fact, ideally, it would be great to have some command line keyword to activate and deactivate QuickMode - that way, it is not just a "dumb" remote toggle switch (without knowing what it is set to at the time), but instead one could purposefully activate or deactivate (instead of just toggling).

Posted: Tue Jun 17, 2014 12:49 pm
by freadZdead
Sorry, with the recent crashes this might have been overlooked, and since I am heading into a complex tech session on the weekend, I thought I'd check in on this one... would it be possible to have the Command Option K work from anywhere in the LXConsole application, or ideally even from the command line (so that I can successfully toggle it via remote, i.e. MIDI or AppleScript)?

That would be ace :D!

Posted: Tue Jun 17, 2014 3:44 pm
by admin
Have you tried the latest build 3.5.5 (7710A)?

Posted: Tue Jun 17, 2014 10:05 pm
by admin
Build 7717A allows you to toggle Quick Mode from the command line with "time: !"

Posted: Wed Jun 18, 2014 1:01 pm
by freadZdead
First of all, the key code works again, thanks for that! With the new command line toggle - does that mean that the same command switches it on or off? or are there two separate commands, one for switching Quick Mode ON, and one for switching it OFF? This would be a great improvement, as currently I have to GUI-script my way through the menu-jungle to check whether or not the item is "checked" or not :).

Having said that, I have solved it with that work-around, so if it is too hard to implement, I can work with this solution.

The following below is triggering the toggle command ONLY when Quick Mode is NOT yet active (5th last row) :D:

Code: Select all

set origAppl to (path to frontmost application) as text

tell application "LXConsole" to activate

tell application "System Events"
	tell process "LXConsole"
		tell menu bar 1
			tell menu bar item "Cue"
				tell menu "Cue"
					tell menu item "Live"
						tell menu "Live"
							tell menu item "Quick Mode"
								set qM_enabled to value of attribute "AXEnabled"
							end tell
						end tell
					end tell
				end tell
			end tell
		end tell
	end tell
	if not qM_enabled then
		keystroke "l" using {option down, command down}
		delay 0.1
	end if
	tell process "LXConsole"
		tell menu bar 1
			tell menu bar item "Cue"
				tell menu "Cue"
					tell menu item "Live"
						tell menu "Live"
							tell menu item "Quick Mode"
								set qM_selectedText to value of attribute "AXMenuItemMarkChar"
								try
									if qM_selectedText is missing value then
										set qM_selected to false
									else
										set qM_selected to true
									end if
								on error
									set qM_selected to false
								end try
							end tell
						end tell
					end tell
				end tell
			end tell
		end tell
	end tell
	if not qM_selected then
		keystroke "k" using {command down, option down}
	end if
end tell
tell application origAppl to activate

Posted: Wed Jun 18, 2014 2:08 pm
by admin
Build 7718A allows you to use the command line to turn Quick Mode on or off rather than toggle. "time: !", <t><!>, will turn Quick Mode on. "time: f", <t><f> will turn Quick Mode off.

On the TouchOSC remote, this corresponds to <time><!>=Quick Mode ON and <time><full> = Quick Mode OFF.

Posted: Wed Jun 18, 2014 11:10 pm
by freadZdead
Fantastic, thanks!

Posted: Wed Jun 18, 2014 11:34 pm
by freadZdead
I seem to be unable to trigger this via MIDI by simply writing it into the MIDI setup for a note trigger. Was I wrong in assuming that all command line texts can be triggered by writing them into a midi trigger?

Posted: Thu Jun 19, 2014 1:57 pm
by admin
The Quick Mode command line shortcut was added based on the sequence of key presses so that it would work with OSC. It is now fixed in 7719A so that the literal command string "time: !" or "time: f" can be sent by MIDI or AppleScript.

Posted: Thu Jun 19, 2014 7:47 pm
by freadZdead
Perfect, thank you!

Posted: Fri Jun 20, 2014 3:43 pm
by freadZdead
Sorry to nag, but there might be a small bug in this new implementation - when the command is executed via MIDI, it also sets the fade times of the current cue to 0 (as in, writes it into the cue).

Solvable?

Posted: Fri Jun 20, 2014 6:57 pm
by admin
Try 3.5.5 7720A