Skip to content

Commit

Permalink
Merge pull request #7 from esaruoho/patch-1
Browse files Browse the repository at this point in the history
Loop Mode styles must be referred to as renoise.Sample.LOOP_MODE_something
  • Loading branch information
matt-allan authored Jan 24, 2025
2 parents 064ab76 + 1886451 commit c3caa90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tool.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ function tool:insert_sample(instrument, zone, sample, samples_path)

if zone.loop_flags.loop_on then
if zone.play_mode == exs.PLAY_MODE_REVERSE then
rns_sample.loop_mode = rns_sample.LOOP_MODE_REVERSE
rns_sample.loop_mode = renoise.Sample.LOOP_MODE_REVERSE
elseif zone.play_mode == exs.PLAY_MODE_ALTERNATE then
rns_sample.loop_mode = rns_sample.LOOP_MODE_PING_PONG
rns_sample.loop_mode = renoise.Sample.LOOP_MODE_PING_PONG
else
rns_sample.loop_mode = rns_sample.LOOP_MODE_FORWARD
rns_sample.loop_mode = renoise.Sample.LOOP_MODE_FORWARD
end
end

Expand Down Expand Up @@ -181,4 +181,4 @@ function tool:find_samples(filepath, exs_file)
return self.app:prompt_for_path("Samples folder for " .. basename .. ":")
end

return tool
return tool

0 comments on commit c3caa90

Please sign in to comment.