Skip to content

Commit

Permalink
update to new noveltyslice API
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesb93 committed Apr 3, 2022
1 parent 0ceb494 commit fa3bca0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fluid-noveltyslice.lua
Expand Up @@ -13,15 +13,15 @@ if num_selected_items > 0 then

local processor = reacoma.params.archetype.noveltyslice
reacoma.params.check_params(processor)
local param_names = "feature,threshold,kernelsize,filtersize,fftsettings,minslicelength"
local param_names = "algorithm,threshold,kernelsize,filtersize,fftsettings,minslicelength"
local param_values = reacoma.params.parse_params(param_names, processor)

local confirm, user_inputs = reaper.GetUserInputs("Noveltyslice Parameters", 6, param_names, param_values)
if confirm then
reacoma.params.store_params(processor, param_names, user_inputs)

local params = reacoma.utils.split_comma(user_inputs)
local feature = params[1]
local algorithm = params[1]
local threshold = params[2]
local kernelsize = params[3]
local filtersize = params[4]
Expand All @@ -39,7 +39,7 @@ if num_selected_items > 0 then
" -maxfftsize " .. reacoma.utils.get_max_fft_size(fftsettings) ..
" -maxkernelsize " .. kernelsize ..
" -maxfiltersize " .. filtersize ..
" -feature " .. feature ..
" -algorithm " .. algorithm ..
" -kernelsize " .. kernelsize ..
" -threshold " .. threshold ..
" -filtersize " .. filtersize ..
Expand All @@ -48,6 +48,7 @@ if num_selected_items > 0 then
" -numframes " .. data.item_len_samples[i] ..
" -startframe " .. data.take_ofs_samples[i]
table.insert(data.cmd, cmd)
reaper.ShowConsoleMsg(cmd)
end

for i=1, num_selected_items do
Expand Down

0 comments on commit fa3bca0

Please sign in to comment.