Flexible load of layers

A question for misohoza
your layer selection script that does exactly.
Do you mutate the layers minus the selected one or are you doing the same thing as the MIDI layer mute parameter?
The parameter I am referring to is that of Photo 1.
it seems that this 2 option would cut the midi shot and the voice would not be reproduced and the performance would improve.

layers = this.parent:findLayers()

function getLayerNames()
  layerNames = {}
  for i, layer in ipairs(layers) do
    layerNames[i] = layer.name
  end
end

getLayerNames()

defineParameter("LayerSelect", nil, 1, layerNames)


function onNote(event)
  playNote(event.note, event.velocity, -1, layers[LayerSelect])
end