Skip to content

Commit

Permalink
fix layers offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesb93 committed Jun 13, 2021
1 parent c2587ec commit 9a32ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/layers.lua
Expand Up @@ -67,7 +67,7 @@ layers.get_data = function (item_index, data)

-- This line caps the analysis at one loop
if (item_len + take_ofs) > (src_len * (1 / playrate)) then
item_len = (src_len * (1 / playrate))
item_len = ((src_len - take_ofs) * (1 / playrate))
end

local take_ofs_samples = reacoma.utils.stosamps(take_ofs, sr)
Expand Down

0 comments on commit 9a32ad0

Please sign in to comment.