Skip to content

Commit

Permalink
Change plugin/replace hotkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
t5mat committed Aug 8, 2022
1 parent 01dce0c commit a5e3909
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 48 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ With all that, using these is almost as fast as triggering regular key commands.

Keep in mind that right-clicking a track in the MixConsole/lower zone MixConsole does not select it.

- `w` = show/hide editor (VST/sampler)
- `Tab` = show/hide editor (VST/sampler)
- `d/Delete/Backspace` = delete selected tracks
- `Ctrl+a` = select all tracks
- `Ctrl+d` = duplicate selected tracks
Expand Down Expand Up @@ -196,10 +196,10 @@ Keep in mind that right-clicking a track in the MixConsole/lower zone MixConsole

Some of these don't work in the Inspector.

- `Space` = open/focus plugin window (will not close if was already open) *does not work if mouse is under the bypass/arrow buttons*
- `Shift+Space` = close plugin window *does not work if mouse is under the bypass/arrow buttons*
- `Tab` = open/focus plugin window (will not close if was already open) *does not work if mouse is under the bypass/arrow buttons*
- `Shift+Tab` = close plugin window *does not work if mouse is under the bypass/arrow buttons*
- `d/Delete/Backspace` = delete insert
- `Tab` = replace insert
- `w` = replace insert
- `e` = toggle insert bypass
- `Shift+e` = toggle insert activated
- `f` = set as last pre-fader slot
Expand All @@ -212,7 +212,7 @@ Some of these don't work in the Inspector.
Some of these don't work in the Inspector.

- `d/Delete/Backspace` = clear send
- `Tab` = replace send
- `w` = replace send
- `Ctrl+c` = copy send
- `Ctrl+v` = paste send
- `e` = toggle send activated
Expand All @@ -222,8 +222,8 @@ Some of these don't work in the Inspector.

#### Inserts rack context menu

- `Space` = open/focus all plugin windows
- `Shift+Space` = close all plugin windows
- `Tab` = open/focus all plugin windows
- `Shift+Tab` = close all plugin windows
- `e` = toggle inserts bypass
- `Ctrl+o` = load FX chain preset
- `Ctrl+s` = save as FX chain preset
Expand Down Expand Up @@ -260,7 +260,7 @@ These pair well with disabling `Preferences -> Editing -> Tools -> Show Toolbox
- *(MIDI events/parts)* `Shift+q` = reset quantize
- *(MIDI events/parts)* `v` = legato
- *(MIDI parts)* `Ctrl+s` = export first selected part as MIDI loop (includes track settings)
- *(key editor)* `w` = open/close note expression editor
- *(key editor)* `Tab` = open/close note expression editor

### File Dialogs

Expand Down
91 changes: 51 additions & 40 deletions night.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -1111,22 +1111,6 @@ $Space::
return
}

if (Context & ContextNonEmptyInsertSlot) {
CloseCurrentMenu()
SendEvent % "{Space up}{Alt down}{Click}{Alt up}"
if (WaitWindowNotActive("ahk_id " Hwnd, 5, 150)) {
return
}
SendEvent % "{Enter}"
return
}

if (Context & ContextInsertsRack) {
CloseCurrentMenu()
SendEvent % "{Up}{Right}+!{Enter}"
return
}

if ((Context & ContextEditor) && (Context & ContextSelected)) {
CloseCurrentMenu()
SendEvent % MacroKeys["Transport - Locate Selection"]
Expand Down Expand Up @@ -1183,22 +1167,6 @@ $+Space::
return
}

if (Context & ContextNonEmptyInsertSlot) {
CloseCurrentMenu()
SendEvent % "{Space up}{Alt down}{Click}{Alt up}"
if (!WaitWindowNotActive("ahk_id " Hwnd, 5, 150)) {
return
}
SendEvent % MacroKeys["File - Close"]
return
}

if (Context & ContextInsertsRack) {
CloseCurrentMenu()
SendEvent % "{Up}{Right}+{Enter}"
return
}

if ((Context & ContextEditor) && (Context & ContextSelected)) {
CloseCurrentMenu()
SendEvent % MacroKeys["Transport - Locators to Selection"]
Expand Down Expand Up @@ -1284,15 +1252,58 @@ $Tab::

Context := FindAppMenuContext(Menu)

if (Context & ContextInsertSlot) {
if (Context & ContextTrack) {
CloseCurrentMenu()
SendEvent % "!{Enter}"
SendEvent % MacroKeys["Edit - Edit VST Instrument"]
return
}

if (Context & ContextSendSlot) {
if (Context & ContextNonEmptyInsertSlot) {
CloseCurrentMenu()
SendEvent % "!{Enter}"
SendEvent % "{Tab up}{Alt down}{Click}{Alt up}"
if (WaitWindowNotActive("ahk_id " Hwnd, 5, 150)) {
return
}
SendEvent % "{Enter}"
return
}

if (Context & ContextInsertsRack) {
CloseCurrentMenu()
SendEvent % "{Up}{Right}+!{Enter}"
return
}

if ((Context & ContextEditor) && (Context & ContextKeyEditor)) {
CloseCurrentMenu()
SendEvent % MacroKeys["Note Expression - Open/Close Editor"]
return
}

SendEvent % "{Blind}{Tab}"
}

$+Tab::
HandleAppMenuShiftTab() {
if (!HandleMenuHotkey("IsActiveAppMenu", A_ThisFunc)) {
return
}

Context := FindAppMenuContext(Menu)

if (Context & ContextNonEmptyInsertSlot) {
CloseCurrentMenu()
SendEvent % "{Tab up}{Alt down}{Click}{Alt up}"
if (!WaitWindowNotActive("ahk_id " Hwnd, 5, 150)) {
return
}
SendEvent % MacroKeys["File - Close"]
return
}

if (Context & ContextInsertsRack) {
CloseCurrentMenu()
SendEvent % "{Up}{Right}+{Enter}"
return
}

Expand Down Expand Up @@ -1918,15 +1929,15 @@ $w::

Context := FindAppMenuContext(Menu)

if (Context & ContextTrack) {
if (Context & ContextInsertSlot) {
CloseCurrentMenu()
SendEvent % MacroKeys["Edit - Edit VST Instrument"]
SendEvent % "!{Enter}"
return
}

if ((Context & ContextEditor) && (Context & ContextKeyEditor)) {
if (Context & ContextSendSlot) {
CloseCurrentMenu()
SendEvent % MacroKeys["Note Expression - Open/Close Editor"]
SendEvent % "!{Enter}"
return
}

Expand Down

0 comments on commit a5e3909

Please sign in to comment.