@@ -252,7 +252,7 @@ function Plonky:setup_params()
252252 self .engine_params [" PolyPerc" ]= {" pp_amp" ," pp_pw" ," pp_cut" ," pp_release" }
253253
254254
255- params :add_group (" PLONKY" ,24 * self .num_voices + 2 )
255+ params :add_group (" PLONKY" ,24 * self .num_voices + 5 )
256256 params :add {type = " number" ,id = " voice" ,name = " voice" ,min = 1 ,max = self .num_voices ,default = 1 ,action = function (v )
257257 self :reload_params (v )
258258 if not self .disable_menu_reload then
@@ -353,6 +353,11 @@ function Plonky:setup_params()
353353 params :add_text (i .. " latch_steps" ,i .. " latch_steps" ," []" )
354354 params :hide (i .. " latch_steps" )
355355 end
356+ params :add {type = " option" ,id = " mandoengine" ,name = " engine" ,options = self .engine_options ,action = function ()
357+ self .updateengine = 4
358+ end }
359+ params :add {type = " option" ,id = " midi_transport" ,name = " midi transport" ,options = self .device_list ,default = 1 }
360+
356361 -- read in the last used engine as the default
357362 if util .file_exists (_path .data .. " plonky/engine" ) then
358363 local f = io.open (_path .data .. " plonky/engine" ," rb" )
@@ -361,11 +366,6 @@ function Plonky:setup_params()
361366 print (content )
362367 params :set (" mandoengine" ,tonumber (content ))
363368 end
364- params :add {type = " option" ,id = " mandoengine" ,name = " engine" ,options = self .engine_options ,action = function ()
365- self .updateengine = 4
366- end }
367- params :add {type = " option" ,id = " midi_transport" ,name = " midi transport" ,options = self .device_list ,default = 1 }
368-
369369
370370 self :reload_params (1 )
371371 self :update_engine ()
0 commit comments