Skip to content

Commit

Permalink
brush up track pan and volume
Browse files Browse the repository at this point in the history
  • Loading branch information
gwatcha committed May 29, 2020
1 parent 89549a3 commit ea52edd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions definitions/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,13 @@ return {
NoOp = 65535,
NudgeTrackPanLeft = 40283,
NudgeTrackPanRight = 40284,
NudgeTrackPanLeft10Times = {"NudgeTrackPanLeft", repetitions=10},
NudgeTrackPanRight10Times = {"NudgeTrackPanRight", repetitions=10},
NudgeTrackPanRight = 40284,
NudgeTrackVolumeDownBy1 = {"NudgeTrackVolumeDown", repetitions=20},
NudgeTrackVolumeDownBy1Tenth = {"NudgeTrackVolumeDown", repetitions=2},
NudgeTrackVolumeUp = 40115,
NudgeTrackVolumeUpBy1Tenth = {"NudgeTrackVolumeUp", repetitions=2},
NudgeTrackVolumeUpBy1 = {"NudgeTrackVolumeUp", repetitions=20},
OnlySelectItemsCrossingTimeAndTrackSelection = {"UnselectItems", "SelectItemsCrossingTimeAndTrackSelection"},
OpenMidiEditor = 40153,
Expand Down
2 changes: 2 additions & 0 deletions definitions/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ return {
["V"] = "SetModeNormal",
["<M-h>"] = "NudgeTrackPanLeft",
["<M-l>"] = "NudgeTrackPanRight",
["<M-H>"] = "NudgeTrackPanLeft10Times",
["<M-L>"] = "NudgeTrackPanRight10Times",
["<M-j>"] = "NudgeTrackVolumeDownBy1Tenth",
["<M-k>"] = "NudgeTrackVolumeUpBy1Tenth",
["<M-J>"] = "NudgeTrackVolumeDownBy1",
Expand Down
1 change: 1 addition & 0 deletions internal/state_machine/state_machine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ function input(key_press)
new_state = state_machine_constants['reset_state']
message = format.userInfo(new_state, err)
else
log.info("New key sequence: " .. new_state['key_sequence'])
local command = buildCommand(new_state)
if command then
log.trace("Command built: " .. format.block(command))
Expand Down

0 comments on commit ea52edd

Please sign in to comment.