Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.0KB

  1. #!/usr/bin/env python3
  2. # SPDX-FileCopyrightText: 2011-2024 Filipe Coelho <falktx@falktx.com>
  3. # SPDX-License-Identifier: GPL-2.0-or-later
  4. # ----------------------------------------------------------------------------------------------------------------------
  5. # Imports (Custom Stuff)
  6. from carla_host import *
  7. # ----------------------------------------------------------------------------------------------------------------------
  8. # Main
  9. if __name__ == '__main__':
  10. import resources_rc
  11. # ------------------------------------------------------------------------------------------------------------------
  12. # Read CLI args
  13. initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None)
  14. # ------------------------------------------------------------------------------------------------------------------
  15. # App initialization
  16. app = CarlaApplication("Carla2-Rack", libPrefix)
  17. # ------------------------------------------------------------------------------------------------------------------
  18. # Set-up custom signal handling
  19. setUpSignals()
  20. # ------------------------------------------------------------------------------------------------------------------
  21. # Init host backend
  22. os.environ["CARLA_NSM_NAME"] = "Carla-Rack"
  23. host = initHost(initName, libPrefix, False, False, True)
  24. host.processMode = ENGINE_PROCESS_MODE_CONTINUOUS_RACK
  25. host.processModeForced = True
  26. loadHostSettings(host)
  27. # ------------------------------------------------------------------------------------------------------------------
  28. # Create GUI
  29. gui = HostWindow(host, not(LADISH_APP_NAME or NSM_URL))
  30. # ------------------------------------------------------------------------------------------------------------------
  31. # Show GUI
  32. gui.showIfNeeded()
  33. # ------------------------------------------------------------------------------------------------------------------
  34. # App-Loop
  35. app.exit_exec()