Skip to content

Commit e90ff46

Browse files
committed
First Commit
1 parent 60d2d32 commit e90ff46

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

zaibuyidao_cencyte_Split Note (fast).lua

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--[[
2-
@Modified by: Cencyte
2+
@Modified by: Cencyte
33
@Original Author(s): Zaibuyidao, Lokasenna
44
@Date Created: 11-17-23
55
@Description: Selects Note Under Mouse Cursor
@@ -214,9 +214,6 @@ function main(div, take)
214214
end)
215215
switch = true
216216
elseif div >= 1 and switch == true then
217-
--events = clone(events)
218-
--print("events cloned")
219-
--After
220217
end
221218

222219
local skipEvents = {}
@@ -310,7 +307,7 @@ end
310307
elseif key == "y" then
311308
return mouseMsg[key].y
312309
end
313-
end, --Will have to use this differently, and assign another table to the return value.
310+
end,
314311
__newIndex = function(mouseMsg, key, value)
315312
if key == "intercept" then
316313
reaper.JS_WindowMessage_Intercept(Hwnd_At_Cursor, value, true)
@@ -352,7 +349,6 @@ for take, _ in pairs(getAllTakes()) do
352349
local time2 = mouseMsg['0x0202'].time
353350
if p_time2 then print("p_time2 is: " .. p_time2) end
354351
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")
356352
p_time2 = time2
357353
reaper.SetExtState("CC Script", "Released", "true", true)
358354
reaper.SetExtState("CC Script", "Pressed", "false", true)
@@ -371,15 +367,7 @@ for take, _ in pairs(getAllTakes()) do
371367
local del_div = div - (div_prev or 0)
372368
local int_y = dely // cursor_Int
373369
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-
]]
381370
main(div, take)
382-
-- if div == 1 then print("[FIRST]") else print("[SPLIT]") end
383371
end
384372
div_prev = div
385373
dy_prev = dy
@@ -407,7 +395,6 @@ end
407395
local time = mouseMsg['0x0201'].time
408396
if mouseMsg['0x0201'].OK and time ~= p_time then
409397
if reaper.GetExtState("CC Script", "Pressed") == "" then
410-
--print("1x PRESS ACTION HERE")
411398
reaper.SetExtState("CC Script", "Pressed", "true", true)
412399
p_time = time
413400
end

0 commit comments

Comments
 (0)