Skip to content

Commit

Permalink
implement cross platform executable generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesb93 committed Nov 2, 2023
1 parent 2f793b8 commit 864098a
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 11 deletions.
4 changes: 3 additions & 1 deletion lib/algorithms/ampgate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ local r = reaper

function segment(params)
local exe = reacoma.utils.wrap_quotes(
reacoma.settings.path .. "/fluid-ampgate"
reacoma.utils.cross_platform_executable(
reacoma.settings.path .. "/fluid-ampgate"
)
)

local num_selected_items = r.CountSelectedMediaItems(0)
Expand Down
4 changes: 3 additions & 1 deletion lib/algorithms/ampslice.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ local r = reaper

function segment(params)
local exe = reacoma.utils.wrap_quotes(
reacoma.settings.path .. "/fluid-ampslice"
reacoma.utils.cross_platform_executable(
reacoma.settings.path .. "/fluid-ampslice"
)
)

local num_selected_items = r.CountSelectedMediaItems(0)
Expand Down
4 changes: 3 additions & 1 deletion lib/algorithms/audiotransport.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ local r = reaper

function decompose(params, item_bundle)
local exe = reacoma.utils.wrap_quotes(
reacoma.settings.path .. "/fluid-audiotransport"
reacoma.utils.cross_platform_executable(
reacoma.settings.path .. "/fluid-audiotransport"
)
)

local fftsettings = reacoma.utils.form_fft_string(
Expand Down
4 changes: 3 additions & 1 deletion lib/algorithms/hpss.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ local find_by_name = reacoma.params.find_by_name

function decompose(params)
local exe = reacoma.utils.wrap_quotes(
reacoma.settings.path .. "/fluid-hpss"
reacoma.utils.cross_platform_executable(
reacoma.settings.path .. "/fluid-hpss"
)
)

local num_selected_items = r.CountSelectedMediaItems(0)
Expand Down
4 changes: 3 additions & 1 deletion lib/algorithms/nmf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ local r = reaper

function decompose(params)
local exe = reacoma.utils.wrap_quotes(
reacoma.settings.path .. "/fluid-nmf"
reacoma.utils.cross_platform_executable(
reacoma.settings.path .. "/fluid-nmf"
)
)

local num_selected_items = r.CountSelectedMediaItems(0)
Expand Down
4 changes: 3 additions & 1 deletion lib/algorithms/nmfcross.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ local r = reaper

function decompose(params, item_bundle)
local exe = reacoma.utils.wrap_quotes(
reacoma.settings.path .. "/fluid-nmfcross"
reacoma.utils.cross_platform_executable(
reacoma.settings.path .. "/fluid-nmfcross"
)
)

local fftsettings = reacoma.utils.form_fft_string(
Expand Down
4 changes: 3 additions & 1 deletion lib/algorithms/noveltyslice.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ local r = reaper

function segment(params)
local exe = reacoma.utils.wrap_quotes(
reacoma.settings.path .. "/fluid-noveltyslice"
reacoma.utils.cross_platform_executable(
reacoma.settings.path .. "/fluid-noveltyslice"
)
)

local num_selected_items = r.CountSelectedMediaItems(0)
Expand Down
4 changes: 3 additions & 1 deletion lib/algorithms/onsetslice.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ local r = reaper

function segment(params)
local exe = reacoma.utils.wrap_quotes(
reacoma.settings.path .. "/fluid-onsetslice"
reacoma.utils.cross_platform_executable(
reacoma.settings.path .. "/fluid-onsetslice"
)
)

local num_selected_items = r.CountSelectedMediaItems(0)
Expand Down
4 changes: 3 additions & 1 deletion lib/algorithms/sines.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ local r = reaper

function decompose(params)
local exe = reacoma.utils.wrap_quotes(
reacoma.settings.path .. "/fluid-sines"
reacoma.utils.cross_platform_executable(
reacoma.settings.path .. "/fluid-sines"
)
)

local num_selected_items = r.CountSelectedMediaItems(0)
Expand Down
4 changes: 3 additions & 1 deletion lib/algorithms/transients.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ local r = reaper

function decompose(params)
local exe = reacoma.utils.wrap_quotes(
reacoma.settings.path .. "/fluid-transients"
reacoma.utils.cross_platform_executable(
reacoma.settings.path .. "/fluid-transients"
)
)

local num_selected_items = r.CountSelectedMediaItems(0)
Expand Down
4 changes: 3 additions & 1 deletion lib/algorithms/transientslice.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ local r = reaper

function segment(params)
local exe = reacoma.utils.wrap_quotes(
reacoma.settings.path .. "/fluid-transientslice"
reacoma.utils.cross_platform_executable(
reacoma.settings.path .. "/fluid-transientslice"
)
)

local num_selected_items = r.CountSelectedMediaItems(0)
Expand Down

0 comments on commit 864098a

Please sign in to comment.