Toggle bypassing fade times

LXConsole support and feedback
freadZdead
Posts: 211
Joined: Sat Jun 01, 2013 8:23 am
Location: Adelaide, Australia

Toggle bypassing fade times

Post 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 :).
Cheers,

Freddy
admin
Site Admin
Posts: 1643
Joined: Mon Nov 05, 2007 1:26 am
Contact:

Post 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.
freadZdead
Posts: 211
Joined: Sat Jun 01, 2013 8:23 am
Location: Adelaide, Australia

Post 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
Cheers,

Freddy
freadZdead
Posts: 211
Joined: Sat Jun 01, 2013 8:23 am
Location: Adelaide, Australia

Post 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).
Cheers,

Freddy
freadZdead
Posts: 211
Joined: Sat Jun 01, 2013 8:23 am
Location: Adelaide, Australia

Post 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!
Cheers,

Freddy
admin
Site Admin
Posts: 1643
Joined: Mon Nov 05, 2007 1:26 am
Contact:

Post by admin »

Have you tried the latest build 3.5.5 (7710A)?
admin
Site Admin
Posts: 1643
Joined: Mon Nov 05, 2007 1:26 am
Contact:

Post by admin »

Build 7717A allows you to toggle Quick Mode from the command line with "time: !"
freadZdead
Posts: 211
Joined: Sat Jun 01, 2013 8:23 am
Location: Adelaide, Australia

Post 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
Cheers,

Freddy
admin
Site Admin
Posts: 1643
Joined: Mon Nov 05, 2007 1:26 am
Contact:

Post 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.
freadZdead
Posts: 211
Joined: Sat Jun 01, 2013 8:23 am
Location: Adelaide, Australia

Post by freadZdead »

Fantastic, thanks!
Cheers,

Freddy
freadZdead
Posts: 211
Joined: Sat Jun 01, 2013 8:23 am
Location: Adelaide, Australia

Post 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?
Cheers,

Freddy
admin
Site Admin
Posts: 1643
Joined: Mon Nov 05, 2007 1:26 am
Contact:

Post 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.
freadZdead
Posts: 211
Joined: Sat Jun 01, 2013 8:23 am
Location: Adelaide, Australia

Post by freadZdead »

Perfect, thank you!
Cheers,

Freddy
freadZdead
Posts: 211
Joined: Sat Jun 01, 2013 8:23 am
Location: Adelaide, Australia

Post 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?
Cheers,

Freddy
admin
Site Admin
Posts: 1643
Joined: Mon Nov 05, 2007 1:26 am
Contact:

Post by admin »

Try 3.5.5 7720A
Post Reply