From 3498047b47f82a4010acce9c3804ddd6aaadf827 Mon Sep 17 00:00:00 2001 From: mostlysimlar Date: Wed, 27 May 2020 12:50:20 -0700 Subject: [PATCH 1/3] Make recording more generic and reduce key binding bloat --- definitions/README.md | 8 +-- definitions/actions.lua | 54 +++++++++++--------- definitions/config.lua | 2 - definitions/global.lua | 106 +++++++++++++++++++--------------------- definitions/main.lua | 18 +++---- definitions/midi.lua | 12 ++--- 6 files changed, 99 insertions(+), 101 deletions(-) delete mode 100644 definitions/config.lua diff --git a/definitions/README.md b/definitions/README.md index 18739cdf..74ec5948 100644 --- a/definitions/README.md +++ b/definitions/README.md @@ -31,7 +31,7 @@ action type section. timeline_operator = { ["c"] = "Change", - ["t"] = "LoopAndPlay", + ["t"] = "PlayAndLoop", ["d"] = "CutItems", ["y"] = "CopyItems", }, @@ -43,7 +43,7 @@ Actions may also be put into folders. To create a folder, follow this format: [""] = "ShowActionList", ["h"] = "ShowReaperKeysHelp", ["r"] = {"+regions", { - ["d"] = "DeleteRegion", + ["d"] = "RemoveRegion", }}, }}, -- be sure to close the folder @@ -446,7 +446,7 @@ the actions used to trigger it. So in this case, if one types `tl` -Reaper keys will find the entries "LoopAndPlay" and "NextBeat" in it's search in the definitions. +Reaper keys will find the entries "PlayAndLoop" and "NextBeat" in it's search in the definitions. -- in definitoins/global.lua the timeline_operator = { @@ -459,7 +459,7 @@ Reaper keys will find the entries "LoopAndPlay" and "NextBeat" in it's search in And find the value of the action in actions.lua -- in definitions/actions.lua - LoopAndPlay = {"SetLoopSelectionToTimeSelection", "LoopStart", "TransportPlay", setTimeSelection=true}, + PlayAndLoop = {"SetLoopSelectionToTimeSelection", "LoopStart", "TransportPlay", setTimeSelection=true}, NextBeat = 40841, and execute the function with diff --git a/definitions/actions.lua b/definitions/actions.lua index 187c504c..9bd34e9f 100644 --- a/definitions/actions.lua +++ b/definitions/actions.lua @@ -11,7 +11,7 @@ return { ActivateNextMidiItem = {40833, midiCommand=true}, ActivatePrevMidiItem = {40834, midiCommand=true}, AddTrackVirtualInstrument = 40701, - AllTrackItems = {"SaveItemSelectionAll", "SelectItemsOnTrack", "SelectedItems", "RestoreItemSelection"}, + AllTrackItems = {"SaveItemSelection", "SelectItemsOnTrack", "SelectedItems", "RestoreItemSelection"}, AllTracks = 40296, ArmAllEnvelopes = "_S&M_ARMALLENVS", ArmSelectedTracks = "_XENAKIOS_SELTRAX_RECARMED", @@ -44,7 +44,7 @@ return { CopyTrack = 40210, CropToActiveTake = 40131, CutEnvelopePoints = 40325, - CutItems = {"SelectItems", "CutSelectedItems"}, + CutItems = {"SaveItemSelection", "SelectItemsAndSplit", "CutSelectedItems", "RestoreItemSelection"}, CutNotes = {"SelectNotes", "CutSelectedEvents"}, CutSelectedEvents = {40734, midiCommand=true}, CutSelectedItems = 40699, @@ -59,7 +59,7 @@ return { DeleteEnvelope = 40333, DeleteItem = 40006, DeleteNote = {40002, midiCommand=true}, - DeleteRegion = 40615, + DeleteTimeline = 40201, EnterTrackAbove = {"InsertTrackAbove", "ColorTrackWithTrackBelow", "RenameTrack"}, EnterTrackBelow = {"InsertTrackBelow", "ColorTrackWithTrackAbove", "RenameTrack"}, EventSelectionEnd = {40639, midiCommand=true}, @@ -91,7 +91,7 @@ return { FxToggleShow8 = "_S&M_TOGLFLOATFX8", FxToggleShow = "_S&M_WNTGL5", GlueItemIgnoringTimeSelection = 40362, - GlueItems = {"SelectItems", "GlueSelectedItemsInTimeSelection"}, + GlueItems = {"SaveItemSelection", "SelectItems", "GlueSelectedItemsInTimeSelection", "RestoreItemSelection"}, GlueSelectedItemsInTimeSelection = 41588, GoToEnd = {40037, midiCommand=true}, GoToLastItemAndRecord = {"LastItemEnd", "RecordNormal"}, @@ -105,6 +105,7 @@ return { InnerFolder = {"FolderParent", "SelectOnlyFoldersChildren"}, InsertAutomationItem = 42082, InsertDefaultSizeNote = {40051, midiCommand=true}, + InsertMarker = "_S&M_INS_MARKER_EDIT", InsertMidiItem = 40214, InsertNote = {"InsertDefaultSizeNote", "FitNotes"}, InsertOrExtendMidiItem = 42069, @@ -127,8 +128,7 @@ return { LeftByGrid = {40047, midiCommand=true}, LeftByMeasure = {40683, midiCommand=true}, LeftPix = 40104, - LoopAndPlay = {"SetLoopSelectionToTimeSelection", "SaveEditCursorPosition", "LoopStart", "TransportPlay", "RestoreEditCursorPosition", setTimeSelection=true}, - LoopAndRecordInput= {"SetTrackRecInput", "SetLoopSelectionToTimeSelection", "RecordTimeSelectionNormal", setTimeSelection=true}, + PlayAndLoop = {"SetLoopSelectionToTimeSelection", "SaveEditCursorPosition", "LoopStart", "TransportPlay", "RestoreEditCursorPosition", setTimeSelection=true}, LoopEnd = 40633, LoopSelection = "SetTimeSelectionToLoopSelection", LoopStart = 40632, @@ -145,7 +145,8 @@ return { MidiZoomLoopSelection = {40726, midiCommand=true}, MidiZoomOutHoriz = {1011, midiCommand=true}, MidiZoomOutVert = {40112, midiCommand=true}, - MidiZoomTimeSelection = {"SaveLoopSelectionSlot5", "SetLoopSelectionToTimeSelection", "MidiZoomLoopSelection", "RestoreLoopSelectionSlot5"}, + MidiZoomTimeSelection = {"SaveLoopSelection", "SetLoopSelectionToTimeSelection", "MidiZoomLoopSelection", "RestoreLoopSelection"}, + MinimizeTracks = "_SWS_MINTRACKS", MixerShowHideChildrenOfSelectedTrack = 41665, Mouse = 40514, MouseAndSnap = 40513, @@ -185,7 +186,7 @@ return { NextNoteSamePitchEnd = {"SelectNextNoteSamePitch", "EventSelectionEnd"}, NextNoteSamePitchStart = {"SelectNextNoteSamePitch", "EventSelectionStart"}, NextNoteStart = {"SelectNextNote", "EventSelectionStart"}, - NextRegion = "_SWS_SELNEXTREG", + NextRegion = {"SaveLoopSelection", "SetLoopRegionToNextRegion", "SetTimeSelectionToLoopSelection", "RestoreLoopSelection"}, NextTab = 40861, NextTake = 40125, NextTrack = 40285, @@ -226,6 +227,7 @@ return { PrevNoteSamePitchEnd = {"SelectPrevNoteSamePitch", "EventSelectionEnd"}, PrevNoteSamePitchStart = {"SelectPrevNoteSamePitch", "EventSelectionStart"}, PrevNoteStart = {"SelectPrevNote", "EventSelectionStart"}, + PrevRegion = {"SaveLoopSelection", "SetLoopRegionToPrevRegion", "SetTimeSelectionToLoopSelection", "RestoreLoopSelection"}, PrevRegion = "_SWS_SELPREVREG", PrevTab = 40862, PrevTake = 40126, @@ -233,18 +235,16 @@ return { PrevTransientInItem = {"SaveItemSelection", "SelectItemsUnderEditCursor", "MoveEditCursorToPrevTransientInSelectedItems", "RestoreItemSelection"}, ProjectEnd = util.moveToProjectEnd, ProjectStart = util.moveToProjectStart, - Project = util.selectInnerProject, + ProjectTimeline = util.selectInnerProjectTimeline, Quantize = {40009, midiCommand=true}, - RecordByAdding = {"SetTrackRecMidiTouchReplace", "RecordTimeSelectionNormal", setTimeSelection=true}, - RecordByChanging = {"SetTrackRecMidiReplace", "RecordTimeSelectionConditional", setTimeSelection=true}, RecordConditional = {"TransportStop", "ToggleRecordConditional"}, RecordMacro = "RecordMacro", RecordNormal = {"TransportStop", "ToggleRecordNormal"}, - Record = {"RecordTimeSelectionNormal", setTimeSelection=true}, - RecordTimeSelectionConditional = {"SaveEditCursorPosition", "TimeSelectionStart", "RecordConditional", "RestoreEditCursorPosition"}, - RecordTimeSelectionNormal = {"SaveEditCursorPosition", "TimeSelectionStart", "RecordNormal", "RestoreEditCursorPosition"}, + Record = {"SaveEditCursorPosition", "TimeSelectionStart", "RecordConditional", "RestoreEditCursorPosition", setTimeSelection=true}, Redo = 40030, RegionSelectItems = 40717, + RemoveMarker = 40613, + RemoveRegion = 40615, RemoveTimeSelection = 40635, RemoveTrack = 40005, RenameTrack = 40696, @@ -257,13 +257,13 @@ return { ResetAllControlSurfaceDevices = 42348, ResetAllMidiDevices = 41175, ResetControlDevices = {"ResetAllMidiDevices", "ResetAllControlSurfaceDevices"}, - Reset = {"Stop", "SetModeNormal", "SetRecordModeNormal"}, + Reset = {"Stop", "SetModeNormal", "UnselectAll"}, ResetTrackToNormal = {"UnarmSelectedTracks", "UnarmAllEnvelopes", "SetAutomationModeTrimRead"}, RestoreEditCursorPosition = "_BR_RESTORE_CURSOR_POS_SLOT_16", RestoreItemSelection = "_SWS_RESTALLSELITEMS1", RestoreLastItemSelection = "_SWS_RESTLASTSEL", - RestoreLoopSelectionSlot5 = "_SWS_RESTLOOP5", - RestoreTimeSelectionSlot5 = "_SWS_RESTTIME5", + RestoreLoopSelection = "_SWS_RESTLOOP5", + RestoreTimeSelection = "_SWS_RESTTIME5", RestoreTrackSelection = "_SWS_TOGSAVESEL", Right10Pix = "_XENAKIOS_MOVECUR10PIX_RIGHT", Right40Pix = {"Right10Pix", repetitions=4}, @@ -272,11 +272,10 @@ return { RightPix = 40105, RightPixel = 40105, SaveEditCursorPosition = "_BR_SAVE_CURSOR_POS_SLOT_16", - SaveItemSelectionAll = "_SWS_SAVEALLSELITEMS1", SaveItemSelection = "_SWS_SAVEALLSELITEMS1", - SaveLoopSelectionSlot5 = "_SWS_SAVELOOP5", + SaveLoopSelection = "_SWS_SAVELOOP5", SaveProject = 40026, - SaveTimeSelectionSlot5 = "_SWS_SAVETIME5", + SaveTimeSelection = "_SWS_SAVETIME5", SaveTrackSelection = "_SWS_SAVESEL", ScrollToPlayPosition = 40150, ScrollToSelectedTracks = 40913, @@ -291,14 +290,16 @@ return { SelectFolderParent = "_SWS_SELPARENTS", SelectFoldersChildren = "_SWS_SELCHILDREN2", Selection = "NoOp", + SelectItemsAndSplit = {"OnlySelectItemsCrossingTimeAndTrackSelection", "SplitAtTimeSelection"}, SelectItemsCrossingTimeAndTrackSelection = 40718, SelectItemsInGroups = 40034, - SelectItems = {"OnlySelectItemsCrossingTimeAndTrackSelection", "SplitAtTimeSelection"}, SelectItemsOnTrack = 40421, + SelectItems = "SelectItemsCrossingTimeAndTrackSelection", SelectItemsUnderEditCursor = "_XENAKIOS_SELITEMSUNDEDCURSELTX", SelectLastOfSelectedTracks = "_XENAKIOS_SELLASTOFSELTRAX", SelectNextNote = {40413, midiCommand=true}, SelectNextNoteSamePitch = {40428, midiCommand=true}, + SelectNoteClosestToEditCursor = {40426, midiCommand=true}, SelectNotes = "SelectNotesStartingInTimeSelection", SelectNotesStartingInTimeSelection = {40877, midiCommand=true}, SelectOnlyFoldersChildren = "_SWS_SELCHILDREN", @@ -330,6 +331,7 @@ return { SetItemFadeBoundaries = {"SelectItemsCrossingTimeAndTrackSelection", "SetSelectedItemFadeBoundaries"}, SetLoopEnd = 40223, SetLoopRegionToNextRegion = "_SWS_SELNEXTREG", + SetLoopRegionToPrevRegion = "_SWS_SELPREVREG", SetLoopSelectionToTimeSelection = 40622, SetLoopStart = 40222, SetModeNormal = lib.setModeNormal, @@ -348,6 +350,8 @@ return { SetTrackRecMidiReplace = 40504, SetTrackRecMidiTouchReplace = 40852, SetTrackRecMonitorOnly = 40498, + ShiftTimeSelectionLeft = 40037, + ShiftTimeSelectionRight = 40038, ShowActionList = 40605, ShowEnvelopeModulationLastTouchedFx = 41143, ShowReaperKeysHelp = "ShowReaperKeysHelp", @@ -423,7 +427,7 @@ return { UnfreezeTrack = 41644, UnmuteAllTracks = 40339, UnselectAllEvents = {40214, midiCommand=true}, - UnselectAll = {"UnselectTracks", "UnselectItems"}, + UnselectAll = {"UnselectTracks", "UnselectItems", "UnselectEnvelopePoints", "UnselectAllEvents"}, UnselectEnvelopePoints = 40331, UnselectItems = 40289, UnselectTracks = 40297, @@ -432,11 +436,15 @@ return { VerticalScrollStart = "_XENAKIOS_TVPAGEHOME", ViewFxChainInputCurrentTrack = 40844, ViewFxChainMaster = 40846, + ZoomAllItems = {"SaveItemSelection", "SelectAllItems", "ZoomItemSelection", "RestoreItemSelection"}, + ZoomAllTracks = {"SaveTrackSelection", "SelectAllTracks", "ZoomTrackSelection", "RestoreTrackSelection"}, ZoomInHoriz = 1012, ZoomInVert = 40111, + ZoomItemSelection = "_SWS_HZOOMITEMS", ZoomOutHoriz = 1011, ZoomOutVert = 40112, - ZoomProject = 40295, + ZoomProjectTimeline = 40295, + ZoomProject = {"ZoomAllTracks", "ZoomAllItems"}, ZoomRedo = "_SWS_REDOZOOM", ZoomTimeAndTrackSelection = {"ZoomTrackSelection", "ZoomTimeSelection"}, ZoomTimeSelection = 40031, diff --git a/definitions/config.lua b/definitions/config.lua deleted file mode 100644 index 97aeaddb..00000000 --- a/definitions/config.lua +++ /dev/null @@ -1,2 +0,0 @@ -return { -} diff --git a/definitions/global.lua b/definitions/global.lua index d6a52517..c608909a 100644 --- a/definitions/global.lua +++ b/definitions/global.lua @@ -32,70 +32,87 @@ return { [""] = "Next4Measures", }, timeline_operator = { - [""] = "Record", - ["r"] = "LoopAndRecordInput", - ["c"] = "RecordByChanging", - ["a"] = "RecordByAdding", - ["t"] = "LoopAndPlay", - ["z"] = "ZoomTimeSelection", + ["r"] = "Record", + ["c"] = "Record", + ["t"] = "PlayAndLoop", }, timeline_selector = { ["v"] = "TimeSelection", ["!"] = "LoopSelection", + ["n"] = "NextRegion", + ["N"] = "PrevRegion", + ["p"] = "PrevRegion", ["i"] = {"+inner", { [""] = "AutomationItem", - ["r"] = "MarkerRegion", ["l"] = "AllTrackItems", - ["p"] = "Project", + ["p"] = "ProjectTimeline", ["w"] = "Item", ["W"] = "BigItem", }}, - ["n"] = "NextRegion", - ["N"] = "PrevRegion", }, visual_timeline_command = { ["v"] = "SetModeNormal", ["o"] = "SwitchTimelineSelectionSide", }, command = { - ["R"] = "ToggleRecordNormal", + [""] = "Redo", + ["u"] = "Undo", + ["R"] = "ToggleRecord", + ["C"] = "ToggleRecordByChanging", ["T"] = "TransportPlay", ["F"] = "TransportPause", - ["!"] = "ToggleLoop", - ["C"] = "ToggleRecordByChanging", - ["A"] = "ToggleRecordByAdding", - ["v"] = "SetModeVisualTimeline", + ["zt"] = "ScrollToPlayPosition", [""] = "ZoomRedo", [""] = "ZoomUndo", [""] = "MoveRedo", [""] = "MoveUndo", + [">"] = "ShiftTimeSelectionRight", + ["v"] = "SetModeVisualTimeline", + ["<"] = "ShiftTimeSelectionLeft", [""] = "ToggleViewMixer", [""] = "Reset", - [""] = "Redo", [""] = "StartStop", - ["u"] = "Undo", [""] = "MoveToMouseAndPlay", [""] = "PlayFromMouse", - [""] = "StartStop", - [""] = "MidiLearnLastTouchedFX", - [""] = "ShowEnvelopeModulationLastTouchedFx", + [""] = "MidiLearnLastTouchedFX", + [""] = "ShowEnvelopeModulationLastTouchedFx", [""] = "FocusMain", - [""] = "FxToggleShow", - [""] = "FxClose", + [""] = "FxToggleShow", + [""] = "FxClose", [""] = "FxShowNextSel", [""] = "FxShowPrevSel", + ["dr"] = "RemoveRegion", + ["mi"] = "MarkerInsert", + ["di"] = "RemoveMarker", [""] = { "+leader commands", { [""] = "ShowActionList", ["h"] = "ShowReaperKeysHelp", - ["r"] = {"+regions", { - ["i"] = "InsertRegion", - ["d"] = "DeleteRegion", + ["v"] = { "+time/loop selection", { + ["l"] = "ToggleLoop", + ["f"] = "ToggleLoopSelectionFollowsTimeSelection", }}, - ["m"]= { "+markers", { - ["n"] = "NextMarker", - ["N"] = "PrevMarker", + ["m"] = { "+midi", { + ["x"] = "CloseWindow", + [","] = {"+options", { + ["q"] = "Quantize", + ["s"] = "ToggleMidiSnap", + }}, + }}, + ["r"] = { "+recording", { + ["o"] = "SetTrackRecMidiOutput", + ["d"] = "SetTrackRecMidiOverdub", + ["t"] = "SetTrackRecMidiTouchReplace", + ["r"] = "SetTrackRecMidiReplace", + ["m"] = "SetTrackRecMonitorOnly", + ["i"] = "SetTrackRecInput", + ["a"] = "SetTrackRecInput", + [","] = {"+options", { + ["p"] = "ToggleRecordingPreroll", + ["z"] = "ToggleRecordingAutoScroll", + ["n"] = "SetRecordModeNormal", + }}, }}, - ["i"] = { "+items", { + ["s"] = { "+item selection", { ["ci"] = "CycleItemFadeInShape", ["co"] = "CycleItemFadeOutShape", ["j"] = "NextTake", @@ -108,23 +125,17 @@ return { ["g"] = "GroupItems", }}, ["t"] = { "+track", { - [""] = "ResetTrackToNormal", + ["n"] = "ResetTrackToNormal", ["R"] = "RenderTrack", ["i"] = "AddTrackVirtualInstrument", - ["c"] = "RenameTrack", + ["r"] = "RenameTrack", + ["z"] = "MinimizeTracks", ["M"] = "CycleRecordMonitor", + ["f"] = "CycleFolderState", ["x"] = {"+routing", { ["i"] = "TrackSetInputToMatchFirstSelected", ["s"] = "ShowTrackRouting", }}, - ["r"] = { "+recording", { - ["o"] = "SetTrackRecMidiOutput", - ["d"] = "SetTrackRecMidiOverdub", - ["t"] = "SetTrackRecMidiTouchReplace", - ["r"] = "SetTrackRecMidiReplace", - ["m"] = "SetTrackRecMonitorOnly", - ["i"] = "SetTrackRecInput", - }}, ["F"] = { "+freeze", { ["f"] = "FreezeTrack", ["u"] = "UnfreezeTrack", @@ -174,11 +185,7 @@ return { ["y"] = "CopyFxChain", ["p"] = "PasteFxChain", }}, - ["s"] = {"+toggle show", { - ["n"] = "FxShowNextSel", - ["N"] = "FxShowPrevSel", - ["c"] = "FxClose", - ["s"] = "FxToggleShow", + ["s"] = {"+show", { ["1"] = "FxToggleShow1", ["2"] = "FxToggleShow2", ["3"] = "FxToggleShow3", @@ -190,13 +197,7 @@ return { }}, }}, [","] = {"+options", { - ["!"] = "ToggleLoopSelectionFollowsTimeSelection", ["s"] = "ToggleSnap", - ["r"] = {"+recording", { - ["p"] = "ToggleRecordingPreroll", - ["n"] = "SetRecordModeNormal", - ["z"] = "ToggleRecordingAutoScroll", - }}, ["c"] = "CycleRippleEditMode", ["m"] = "ToggleMetronome", ["t"] = "ToggleStopAtEndOfTimeSelectionIfNoRepeat", @@ -204,11 +205,6 @@ return { ["zt"] = "TogglePlaybackAutoScroll", ["e"] = "ToggleEnvelopePointsMoveWithItems", }}, - ["m"] = {"+midi", { - ["s"] = "ToggleMidiSnap", - ["q"] = "Quantize", - ["z"] = "MidiZoomContent", - }}, ["g"] = { "+global", { ["s"] = {"+show", { ["x"] = "ShowRoutingMatrix", diff --git a/definitions/main.lua b/definitions/main.lua index 19286487..2733b7d2 100644 --- a/definitions/main.lua +++ b/definitions/main.lua @@ -44,17 +44,18 @@ return { }, timeline_operator = { [""] = "InsertAutomationItem", - ["s"] = "SelectItems", + ["s"] = "SelectItemsAndSplit", + [""] = "SelectItems", + [""] = "SelectEnvelopePoints", ["d"] = "CutItems", ["y"] = "CopyItems", - [""] = "SelectEnvelopePoints", [""] = "CutEnvelopePoints", [""] = "CopyEnvelopePoints", + [""] = "DeleteTimeline", ["g"] = "GlueItems", ["%"] = "HealSplits", ["#"] = "SetItemFadeBoundaries", - [">"] = "GrowItemRight", - ["<"] = "GrowItemLeft", + ["z"] = "ZoomTimeSelection", [";"] = {"+fitting", { ["f"] = "FitByLoopingNoShift", ["l"] = "FitByLooping", @@ -83,16 +84,14 @@ return { ["$"] = "LastItemEnd", }, command = { + ["S"] = "SelectItemsUnderEditCursor", [""] = "CycleFolderCollapsedState", - [""] = "CycleFolderState", - [""] = "UnselectEnvelopePoints", - [""] = "PrevTake", - [""] = "PrevTake", + ["zp"] = "ZoomProject", ["D"] = "CutSelectedItems", ["Y"] = "CopySelectedItems", ["V"] = "SetModeVisualTrack", + ["Z"] = "CloseProject", [""] = "NextEnvelope", - ["Z"] = "ZoomTimeAndTrackSelection", [""] = "PrevEnvelope", [""] = "ZoomInHoriz", [""] = "ZoomOutHoriz", @@ -106,7 +105,6 @@ return { ["p"] = "Paste", ["P"] = "PasteAbove", ["yy"] = "CopyTrack", - ["zt"] = "ScrollToPlayPosition", ["zz"] = "ScrollToSelectedTracks", }, } diff --git a/definitions/midi.lua b/definitions/midi.lua index 1b7e2226..bc08c724 100644 --- a/definitions/midi.lua +++ b/definitions/midi.lua @@ -5,8 +5,8 @@ return { timeline_operator = { ["d"] = "CutNotes", ["y"] = "CopyNotes", - ["i"] = "FitNotes", - ["n"] = "InsertNote", + [";"] = "FitNotes", + ["i"] = "InsertNote", ["g"] = "JoinNotes", ["s"] = "SelectNotes", ["z"] = "MidiZoomTimeSelection", @@ -23,22 +23,20 @@ return { ["-"] = "MidiZoomOutVert", [""] = "MidiZoomInHoriz", [""] = "MidiZoomOutHoriz", - ["-"] = "MidiZoomOutVert", + ["Z"] = "CloseWindow", ["p"] = "MidiPaste", - [""] = "CloseWindow", - ["S"] = "ClearNoteSelection", - ["G"] = "JoinNotes", + ["S"] = "SelectNoteClosestToEditCursor", ["Y"] = "CopySelectedEvents", ["D"] = "CutSelectedEvents", ["k"] = "PitchUp", ["j"] = "PitchDown", ["K"] = "PitchUpOctave", + ["zp"] = "MidiZoomContent", ["J"] = "PitchDownOctave", [""] = "PitchUpOctave", [""] = "PitchDownOctave", [""] = "PitchUp7", [""] = "PitchDown7", - ["o"] = "InsertNote", ["V"] = "SelectAllNotesAtPitch", [""] = "MoveNoteUpSemitone", [""] = "MoveNoteDownSemitone", From 336a5cae15bd6a2128d1707052c7641db82923b4 Mon Sep 17 00:00:00 2001 From: mostlysimlar Date: Wed, 27 May 2020 12:51:27 -0700 Subject: [PATCH 2/3] sort actions --- definitions/actions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/definitions/actions.lua b/definitions/actions.lua index 9bd34e9f..6cc2f423 100644 --- a/definitions/actions.lua +++ b/definitions/actions.lua @@ -128,7 +128,6 @@ return { LeftByGrid = {40047, midiCommand=true}, LeftByMeasure = {40683, midiCommand=true}, LeftPix = 40104, - PlayAndLoop = {"SetLoopSelectionToTimeSelection", "SaveEditCursorPosition", "LoopStart", "TransportPlay", "RestoreEditCursorPosition", setTimeSelection=true}, LoopEnd = 40633, LoopSelection = "SetTimeSelectionToLoopSelection", LoopStart = 40632, @@ -207,6 +206,7 @@ return { PitchUp = {40049, midiCommand=true}, PitchUp7 = {"PitchUp", repetitions=7}, PitchUpOctave = {40187, midiCommand=true}, + PlayAndLoop = {"SetLoopSelectionToTimeSelection", "SaveEditCursorPosition", "LoopStart", "TransportPlay", "RestoreEditCursorPosition", setTimeSelection=true}, PlayFromMouse = "_BR_PLAY_MOUSECURSOR", PlayMacro = "PlayMacro", PlayPosition = 40434, From cb9b4543aede4ea310a49a849cefe7203723f942 Mon Sep 17 00:00:00 2001 From: mostlysimlar Date: Wed, 27 May 2020 13:05:23 -0700 Subject: [PATCH 3/3] update function name in reaper util --- internal/utils/reaper_util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/utils/reaper_util.lua b/internal/utils/reaper_util.lua index 97ac3949..87394a7e 100644 --- a/internal/utils/reaper_util.lua +++ b/internal/utils/reaper_util.lua @@ -103,7 +103,7 @@ function reaper_util.lastTrack() end -function reaper_util.selectInnerProject() +function reaper_util.selectInnerProjectTimeline() local project_end = getProjectEnd() reaper.GetSet_LoopTimeRange(true, false, 0, project_end, false) end