-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_bindings.lua
226 lines (187 loc) · 8.13 KB
/
example_bindings.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
--[[
Special keys:
<space>
<ctrl>
<alt>
<mod> (windows key)
--]]
globalBindings = {
['<cr>'] = runAction(Play)
,['<bs>'] = runAction(ToggleRecording)
,['<ctrl>a'] = runAction(ShowActionList)
,u = runAction(Undo)
,U = runAction(Redo)
}
mainBindings = {
['.'] = Core.repeatLastAction
,mg = Marker.Go
,ma = Marker.Add
,md = Marker.Delete
,mn = runAction(NextMarker)
,mN = runAction(PrevMarker)
,gg = runAction(GoProjectBeginning)
,G = runAction(GoProjectEnd)
,['n'] = runAction(NewMidiItem, PrevItem)
,w = noStore(runAction(PrevTrack, SelectItemsInTrack))
,s = noStore(runAction(NextTrack, SelectItemsInTrack))
,['<ctrl>w'] = noStore(runAction(PrevTrackKeepSelection))
,['<ctrl>s'] = noStore(runAction(NextTrackKeepSelection))
,['<alt>w'] = noStore(runAction(PrevFolder))
,['<alt>s'] = noStore(runAction(NextFolder))
,q = noStore(runAction(PrevMeasure))
,e = noStore(runAction(NextMeasure))
,['<alt>q'] = noStore(times(4, runAction(PrevMeasure)))
,['<alt>e'] = noStore(times(4, runAction(NextMeasure)))
,['<alt>a'] = noStore(runAction(BackOneBeat))
,['<alt>d'] = noStore(runAction(ForwardOneBeat))
,['d'] = runAction(NextItem)
,['a'] = runAction(PrevItem)
,['<space>y'] = runAction(CopyItem)
,['<space>p'] = runAction(PasteItem)
,['<space>s'] = runAction(SplitItem, PrevItem, NextItem)
,['<space>d'] = runAction(CopyItem, DeleteItem)
,['<space>x'] = runAction(CutItem)
,['<space>l'] = runAction(SetLoopPointsToItem)
-- ,ig = runAction(GrowItemRight)
-- ,iG = runAction(GrowItemLeft)
-- ,is = runAction(ShrinkItemRight)
-- ,iS = runAction(ShrinkItemLeft)
,iZ = runAction(MoveItemLeftToEditCursor)
,iX = runAction(MoveItemRightToEditCursor)
,iz = runAction(TrimItemLeftToEditCursor)
,ix = runAction(TrimItemRightToEditCursor)
,['\\'] = runAction(DelteActiveTake)
,['['] = noStore(runAction(PrevTake))
,[']'] = noStore(runAction(NextTake))
,['|'] = runAction(CropToActiveTake)
,['L'] = runAction(ToggleLoop)
,['<space>m'] = runAction(ToggleMetronome)
,['<ctrl>m'] = runAction(ToggleViewMixer)
,['<'] = runAction(PrevPreset_FX1)
,['>'] = runAction(NextPreset_FX1)
,['§'] = noStore(runAction(ZoomHorizIn))
,['±'] = noStore(runAction(ZoomHorizOut))
-- ,D = runAction(ZoomVertOut)
-- ,E = runAction(ZoomVertIn)
,['<space>§'] = runAction(ZoomProject)
,['<ctrl>t'] = runAction(IncreaseBPM)
,['<ctrl>T'] = runAction(DecreaseBPM)
,['`'] = runAction(MaximizeTrack)
,['-'] = runAction(SetLoopStart)
,['='] = runAction(SetLoopEnd)
,td = runAction(CopyTrack, RemoveTrack, PrevTrack, NextTrack)
,tn = runAction(AddTrack)
,ty = runAction(CopyTrack)
,tp = runAction(PasteTrack)
,tP = runAction(PrevTrack, PasteTrack)
,tm = runAction(SetTrackMidiAllChannels)
,tz = runAction(CopyTrack, PasteTrack)
,tZ = runAction(CopyTrack, PrevTrack, PasteTrack)
,tl = runAction(IncreaseTrackHeight)
,tL = runAction(DecreaseTrackHeight)
,V = runAction(SelectAllTracks)
,['<space>g'] = runAction(GlueItems)
,['<alt>g'] = runAction(SelectFirstTrack, NextTrack, PrevTrack)
,['<space>t'] = runAction(SelectParentFolder)
,['<space>-'] = runAction(GoToLoopStart)
,['<space>='] = runAction(GoToLoopEnd)
,o = chain(Group.Select, runAction(ScrollToSelectedTrack))
,['<space>o'] = runAction(ScrollToSelectedTrack)
,['<space><space>'] = runAction(ReaConsole_SelectTrack)
-- ,trim = runActionWithCount(SetTrackInput_Mono)
-- ,tris = runActionWithCount(SetTrackInput_Stereo)
,tf = runAction(CycleTrackFolderState)
,['<tab>'] = runAction(ToggleBypasFX)
,l = SetLoop
-- ,['§'] = runAction(ExpandSelectedTrackCollapseOthers)
-- ,['<space>§'] = runAction(CollapseAllTracks)
,r = runAction(ClearAllRecordArm, RecordArmCurrent)
,R = runAction(RecordArmCurrent)
,['<space>r'] = runAction(ClearAllRecordArm)
,['<space>R'] = runAction(SWS_RenameCurrentTrack)
,['<ctrl>e'] = runAction(OpenMidiEditor)
,['<space>q'] = runAction(MoveToStartOfItem)
,['<space>e'] = runAction(MoveToEndOfItem)
,['<ctrl>q'] = runAction(ToggleFloatingWindows)
,m = runAction(ToggleTrackMute)
,M = runAction(UnmuteAllTracks)
,fx = runAction(ViewFxChainCurrentTrack)
,fX = runAction(ClearFxChainCurrentTrack)
,fi = runAction(ViewFxChainInputCurrentTrack)
,fI = runAction(ClearFxChainInputCurrentTrack)
,fm = runAction(ViewFxChainMaster)
,ff = runAction(ClearAllRecordArm, RecordArmCurrent, SM_FloatFirstFxCurrentTrack)
,fs = runAction(SelectFxCurrentTrack_1)
,['<space><cr>'] = runAction(SaveProject)
,['<space>c'] = runAction(ReaConsole)
,['<ctrl>t'] = runAction(ShowTrackManager)
,['<num1>'] = runAction(TrackView.Load_1)
,['<num2>'] = runAction(TrackView.Load_2)
,['<num3>'] = runAction(TrackView.Load_3)
,['<num4>'] = runAction(TrackView.Load_4)
,['<num5>'] = runAction(TrackView.Load_5)
,['<num6>'] = runAction(TrackView.Load_6)
,['<num7>'] = runAction(TrackView.Load_7)
,['<num8>'] = runAction(TrackView.Load_8)
,['<num9>'] = runAction(TrackView.Load_9)
,['<num0>'] = runAction(TrackView.Load_10)
,['<alt><num1>'] = runAction(WindowSet.Load_1)
,['<alt><num2>'] = runAction(WindowSet.Load_2)
,['<alt><num3>'] = runAction(WindowSet.Load_3)
,['<alt><num4>'] = runAction(WindowSet.Load_4)
,['<alt><num5>'] = runAction(WindowSet.Load_5)
,['<alt><num6>'] = runAction(WindowSet.Load_6)
,['<alt><num7>'] = runAction(WindowSet.Load_7)
,['<alt><num8>'] = runAction(WindowSet.Load_8)
,['<alt><num9>'] = runAction(WindowSet.Load_9)
,['<alt><num0>'] = runAction(WindowSet.Load_10)
}
midiBindings = {
['<space>q'] = MidiEditor.runAction(MidiEditor.CloseWindow)
,['§'] = MidiEditor.runAction(MidiEditor.Quantize)
,n = MidiEditor.runAction(MidiEditor.InsertNote)
,['<alt>e'] = MidiEditor.runAction(MidiEditor.SelectNextNote)
,['<alt>q'] = MidiEditor.runAction(MidiEditor.SelectPrevNote)
,['e'] = MidiEditor.runAction(MidiEditor.SelectNextNote_SamePitch)
,['q'] = MidiEditor.runAction(MidiEditor.SelectPrevNote_SamePitch)
,w = MidiEditor.runAction(MidiEditor.PitchCursorUp)
,s = MidiEditor.runAction(MidiEditor.PitchCursorDown)
,['<alt>w'] = MidiEditor.runAction(MidiEditor.PitchCursorUp_Octave)
,['<alt>s'] = MidiEditor.runAction(MidiEditor.PitchCursorDown_Octave)
,gg = MidiEditor.runAction(MidiEditor.GoToStart)
,G = MidiEditor.runAction(MidiEditor.GoToEnd)
,d = MidiEditor.runAction(MidiEditor.EditCursorRight)
,a = MidiEditor.runAction(MidiEditor.EditCursorLeft)
-- ,['<alt>e'] = MidiEditor.runAction(MidiEditor.EditCursorRight_Measure)
-- ,['<alt>q'] = MidiEditor.runAction(MidiEditor.EditCursorLeft_Measure)
,['='] = MidiEditor.runAction(MidiEditor.DoubleGridSize)
,['+'] = MidiEditor.runAction(MidiEditor.HalfGridSize)
,['<alt>a'] = MidiEditor.runAction(MidiEditor.AddNearestNoteToSelection)
,c = MidiEditor.runAction(MidiEditor.ClearNoteSelection)
,['['] = MidiEditor.runAction(MidiEditor.MoveNoteUp_Semitone)
,[']'] = MidiEditor.runAction(MidiEditor.MoveNoteDown_Semitone)
,['{'] = MidiEditor.runAction(MidiEditor.MoveNoteUp_Octave)
,['}'] = MidiEditor.runAction(MidiEditor.MoveNoteDown_Octave)
,v = MidiEditor.runAction(MidiEditor.SelectAllNotesAtPitchCursor)
,['x'] = MidiEditor.runAction(MidiEditor.MoveNoteRight)
,['z'] = MidiEditor.runAction(MidiEditor.MoveNoteLeft)
,['<alt>d'] = MidiEditor.runAction(MidiEditor.DeleteNote)
,b = MidiEditor.runAction(MidiEditor.EditCursorToSelectedEvent)
,['<alt>x'] = MidiEditor.runAction(MidiEditor.ZoomIn_Horiz)
,['<alt>z'] = MidiEditor.runAction(MidiEditor.ZoomOut_Horiz)
,['X'] = MidiEditor.runAction(MidiEditor.ZoomIn_Vert)
,['Z'] = MidiEditor.runAction(MidiEditor.ZoomOut_Vert)
,['<num1>'] = MidiEditor.runAction(MidiEditor.SetNoteLength_128)
,['<num2>'] = MidiEditor.runAction(MidiEditor.SetNoteLength_64)
,['<num3>'] = MidiEditor.runAction(MidiEditor.SetNoteLength_32)
,['<num4>'] = MidiEditor.runAction(MidiEditor.SetNoteLength_16)
,['<num5>'] = MidiEditor.runAction(MidiEditor.SetNoteLength_8)
,['<num6>'] = MidiEditor.runAction(MidiEditor.SetNoteLength_4)
,['<num7>'] = MidiEditor.runAction(MidiEditor.SetNoteLength_2)
,['<num8>'] = MidiEditor.runAction(MidiEditor.SetNoteLength_1)
}
return {
global = globalBindings
,main = mainBindings
,midi = midiBindings
}