Dragonfly room reverb causing xruns (lua script to fix that)

I remember i was not the only one having problems with multiple dragonfly room reverb plugins causing xruns in this forum. The solution for me was switching all dragonfly plugins off and on again manually.

As seen in this topic: Help with changing a Lua script (reset dragonfly room reverb)

I finally managed to make with a script that works. I just wanted to share it.

ardour {
  ["type"] = "EditorAction",
  name = "Reset Dragonfly Room Reverbs",
  license = "MIT",
  author = "Ccee(modified by erojahn)",
  description = "Turns on and off Dragonfly Reverb plugins"
}

function factory ()
  return function ()
    print("Turning off Dragonfly Reverbs...")

    for route in Session:get_routes():iter() do
      local i = 0
      repeat
        local p = route:nth_processor(i)
        if not p:isnil() then
          local name = p:display_name() or ""
          if name:lower():find("dragonfly") and p:active() then
            print("Turning off plugin: " .. name .. " on track: " .. route:name())
            p:deactivate()
            elseif
            name:lower():find("dragonfly") and not p:active() then
            print("Turning on plugin: " .. name .. " on track: " .. route:name())
            p:activate()
            os.execute("sleep 0.1")
          end
        end
        i = i + 1
      until p:isnil()
    end

    for route in Session:get_routes():iter() do
      local i = 0
      repeat
        local p = route:nth_processor(i)
        if not p:isnil() then
          local name = p:display_name() or ""
          if name:lower():find("dragonfly") and p:active() then
            print("Turning off plugin: " .. name .. " on track: " .. route:name())
            p:deactivate()
            elseif
            name:lower():find("dragonfly") and not p:active() then
            print("Turning on plugin: " .. name .. " on track: " .. route:name())
            p:activate()
            os.execute("sleep 0.1")
          end
        end
        i = i + 1
      until p:isnil()
    end


    print("Done resetting Dragonfly Reverbs.")
  end
end
2 Likes

I liked dragonfly reverb a lot. But I had the same problem, so i didn’t use dragonfly reverb anymore. I will try this script. Thank you!

1 Like

Has someone this problem too? On Dragonfly room, i have in the middle a white screen…

I encounter that sometimes. I think it might be the decay being set to 0s :slight_smile:

1 Like

What operating system, and if linux using X11 or Wayland? I can give a try in a few hours and check, I have not used dragonfly in a while but I have been planning on migrating an old project with Dragonfly to Ardour 9.2 soon, so I will check.

I have ubuntu mate with X11 on ardour 9.2.

It’s all ok here on openSUSE TW

Here in AVLinux Ardour 9.2, the visual decay surface is also completely white when the parameter is set to 0,0. However, this is only the case after the plugin is first started. After changing the value, it cannot be reset to 0,0.

1 Like

Ok, thank you. I’ll try!

@erojahn @guth Thanks guys, change the decay solved the problem.