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.

carla-rack 2.0KB

10 years ago
9 years ago
10 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. # Carla plugin host
  4. # Copyright (C) 2011-2015 Filipe Coelho <falktx@falktx.com>
  5. #
  6. # This program is free software; you can redistribute it and/or
  7. # modify it under the terms of the GNU General Public License as
  8. # published by the Free Software Foundation; either version 2 of
  9. # the License, or any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # For a full copy of the GNU General Public License see the doc/GPL.txt file.
  17. # ------------------------------------------------------------------------------------------------------------
  18. # Imports (Custom Stuff)
  19. from carla_host import *
  20. # ------------------------------------------------------------------------------------------------------------
  21. # Main
  22. if __name__ == '__main__':
  23. # -------------------------------------------------------------
  24. # Read CLI args
  25. initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None)
  26. # -------------------------------------------------------------
  27. # App initialization
  28. app = CarlaApplication("Carla2-Rack", libPrefix)
  29. # -------------------------------------------------------------
  30. # Set-up custom signal handling
  31. setUpSignals()
  32. # -------------------------------------------------------------
  33. # Init host backend
  34. host = initHost(initName, libPrefix, False, False, True)
  35. host.processMode = ENGINE_PROCESS_MODE_CONTINUOUS_RACK
  36. host.processModeForced = True
  37. loadHostSettings(host)
  38. # -------------------------------------------------------------
  39. # Create GUI
  40. gui = HostWindow(host, not(LADISH_APP_NAME or NSM_URL))
  41. # -------------------------------------------------------------
  42. # Show GUI
  43. gui.show()
  44. # -------------------------------------------------------------
  45. # App-Loop
  46. app.exit_exec()