Files
/
Amely Suncroll Auto Aim Midi 2.0 (toggle).lua
Latest commit
47 lines (34 loc) · 1.57 KB
/
Amely Suncroll Auto Aim Midi 2.0 (toggle).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
--[[
ReaScript Name: Auto Aim Midi (toggle)
Instructions: Just open it with Actions - New action - Load ReaScript
Author: Amely Suncroll
REAPER: 6+ (maybe less)
Extensions: none
Version: 2.0
About: An exact copy of the Auto Aim Item 2.0 script, but applied to items.
The kit consists of two components - the "main" and the so-called "switch", or "toggle".
When you run the "main", it starts running in the background, while the "toggle" at this time
changes the edit cursor binding of the selected note to its beginning or end.
Once you're done with your work, simply turn off the main part of the script from the background.
I recommend use "toggle" script as a mouse modifier to easy to use:
Options - Preferences - Mouse Modifiers - MIDI Note - Double Click - Default Action - Action list
Donations:
https://www.paypal.com/paypalme/suncroll
Support:
https://t.me/yxo_composer_support
amelysuncroll@gmail.com
Other links:
https://github.com/AmelySuncroll
https://www.youtube.com/@yxo_composer
]]--
local main_script_identifier = "_MyScriptToggle"
local mode_identifier = main_script_identifier .. "_Mode"
function ToggleCursorBindingMode()
local currentMode = reaper.GetExtState(main_script_identifier, mode_identifier)
if currentMode == "End" then
reaper.SetExtState(main_script_identifier, mode_identifier, "Start", false)
else
reaper.SetExtState(main_script_identifier, mode_identifier, "End", false)
end
end
ToggleCursorBindingMode()