Skip to content

Update BuyOne_Lock FX and FX chains (guide inside).lua #967

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@
* Licence: WTFPL
* Forum Thread:
* Demo:
* Version: 1.1
* Version: 1.2
* REAPER: at least v5.962
* Extensions:
* Changelog:
+ v1.0 Initial release
+ v1.1 Added proper takes support
* Changelog: Minor update of relational operator
]]

--[[
Expand Down Expand Up @@ -115,7 +113,7 @@ local function GetObjChunk(retval, obj)
-- Try standard function -----
local t = retval == 1 and {r.GetTrackStateChunk(obj, '', false)} or {r.GetItemStateChunk(obj, '', false)} -- isundo = false
local ret, obj_chunk = table.unpack(t)
if ret and obj_chunk and #obj_chunk > 4194303 and not r.APIExists('SNM_CreateFastString') then return 'err_mess'
if ret and obj_chunk and #obj_chunk >= 4194303 and not r.APIExists('SNM_CreateFastString') then return 'err_mess'
elseif ret and obj_chunk and #obj_chunk < 4194303 then return ret, obj_chunk -- 4194303 bytes = (4096 kb * 1024 bytes) - 1 byte
end
-- If chunk_size >= max_size, use wdl fast string --
Expand Down