1
1
--[[
2
- @Modified by: Cencyte
2
+ @Modified by: Cencyte
3
3
@Original Author(s): Zaibuyidao, Lokasenna
4
4
@Date Created: 11-17-23
5
5
@Description: Selects Note Under Mouse Cursor
@@ -214,9 +214,6 @@ function main(div, take)
214
214
end )
215
215
switch = true
216
216
elseif div >= 1 and switch == true then
217
- -- events = clone(events)
218
- -- print("events cloned")
219
- -- After
220
217
end
221
218
222
219
local skipEvents = {}
310
307
elseif key == " y" then
311
308
return mouseMsg [key ].y
312
309
end
313
- end , -- Will have to use this differently, and assign another table to the return value.
310
+ end ,
314
311
__newIndex = function (mouseMsg , key , value )
315
312
if key == " intercept" then
316
313
reaper .JS_WindowMessage_Intercept (Hwnd_At_Cursor , value , true )
@@ -352,7 +349,6 @@ for take, _ in pairs(getAllTakes()) do
352
349
local time2 = mouseMsg [' 0x0202' ].time
353
350
if p_time2 then print (" p_time2 is: " .. p_time2 ) end
354
351
if mouseMsg [' 0x0202' ].OK and time2 ~= 0.0 and time2 ~= p_time2 and reaper .GetExtState (" CC Script" , " Pressed" ) then
355
- -- print("1x RELEASE ACTION HERE")
356
352
p_time2 = time2
357
353
reaper .SetExtState (" CC Script" , " Released" , " true" , true )
358
354
reaper .SetExtState (" CC Script" , " Pressed" , " false" , true )
@@ -371,15 +367,7 @@ for take, _ in pairs(getAllTakes()) do
371
367
local del_div = div - (div_prev or 0 )
372
368
local int_y = dely // cursor_Int
373
369
next_Int = ((div + 1 ) * cursor_Int )
374
- --[[
375
- print("dy_prev is: " .. (dy_prev or 0))
376
- print("dely is: " .. dely)
377
- print("dy is " .. dy)
378
- print("div is " .. div)
379
- print("next_Int is " .. next_Int)
380
- ]]
381
370
main (div , take )
382
- -- if div == 1 then print("[FIRST]") else print("[SPLIT]") end
383
371
end
384
372
div_prev = div
385
373
dy_prev = dy
407
395
local time = mouseMsg [' 0x0201' ].time
408
396
if mouseMsg [' 0x0201' ].OK and time ~= p_time then
409
397
if reaper .GetExtState (" CC Script" , " Pressed" ) == " " then
410
- -- print("1x PRESS ACTION HERE")
411
398
reaper .SetExtState (" CC Script" , " Pressed" , " true" , true )
412
399
p_time = time
413
400
end
0 commit comments