summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNikolaus Gullotta <nik@harrisonconsoles.com>2019-01-04 11:14:23 -0600
committerNikolaus Gullotta <nik@harrisonconsoles.com>2019-01-04 11:14:23 -0600
commitb05cabe700479d17f0f64d560045211139a88a31 (patch)
tree819fa65eadfa1e9f03fe0d770e5ca9155d27d976 /scripts
parentff0ee75a565ade3c7290d37272681af30893e76c (diff)
type is a protected word.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mixer_settings_store.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/mixer_settings_store.lua b/scripts/mixer_settings_store.lua
index c8e329ae5b..699b92105f 100644
--- a/scripts/mixer_settings_store.lua
+++ b/scripts/mixer_settings_store.lua
@@ -230,15 +230,16 @@ function factory () return function ()
local order_nmbr = 0
local tmp_order_str, tmp_cache_str = "", ""
for p in order:iter() do
+ local ptype
if not(p:to_insert():isnil()) then
- type = p:to_insert():plugin(0):get_info().type
+ ptype = p:to_insert():plugin(0):get_info().type
else
- type = 99
+ ptype = 99
end
local pid = p:to_stateful():id():to_s()
if not(string.find(p:display_name(), "latcomp")) then
tmp_order_str = tmp_order_str .. string.format(proc_order_string, order_nmbr, pid)
- tmp_cache_str = tmp_cache_str .. string.format(proc_cache_string, pid, p:display_name(), type)
+ tmp_cache_str = tmp_cache_str .. string.format(proc_cache_string, pid, p:display_name(), ptype)
end
order_nmbr = order_nmbr + 1
end
@@ -271,7 +272,7 @@ function factory () return function ()
local active = proc:active()
local id = proc:to_stateful():id():to_s()
local plug = proc:to_insert ():plugin (0)
- local type = proc:to_insert():plugin(0):get_info().type
+ local ptype = proc:to_insert():plugin(0):get_info().type
local n = 0 -- count control-ports
for j = 0, plug:parameter_count () - 1 do -- iterate over all plugin parameters
if plug:parameter_is_control (j) then
@@ -295,7 +296,7 @@ function factory () return function ()
local proc_str = string.format(
processor_string,
id,
- type,
+ ptype,
proc:display_name(),
r:name(),
r:to_stateful():id():to_s(),