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 2.5KB

10 years ago
9 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. # Carla plugin host
  4. # Copyright (C) 2011-2022 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_app import (
  20. CarlaApplication,
  21. )
  22. from carla_host import (
  23. HostWindow,
  24. initHost,
  25. loadHostSettings,
  26. )
  27. from carla_shared import (
  28. handleInitialCommandLineArguments,
  29. setUpSignals,
  30. )
  31. # ----------------------------------------------------------------------------------------------------------------------
  32. # Main
  33. if __name__ == '__main__':
  34. # ------------------------------------------------------------------------------------------------------------------
  35. # Read CLI args
  36. initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None)
  37. # ------------------------------------------------------------------------------------------------------------------
  38. # App initialization
  39. app = CarlaApplication("Carla2", libPrefix)
  40. # ------------------------------------------------------------------------------------------------------------------
  41. # Set-up custom signal handling
  42. setUpSignals()
  43. # ------------------------------------------------------------------------------------------------------------------
  44. # Init host backend
  45. host = initHost(initName, libPrefix, False, False, True)
  46. loadHostSettings(host)
  47. # ------------------------------------------------------------------------------------------------------------------
  48. # Create GUI
  49. gui = HostWindow(host, True)
  50. # ------------------------------------------------------------------------------------------------------------------
  51. # Show GUI
  52. gui.showIfNeeded()
  53. # ------------------------------------------------------------------------------------------------------------------
  54. # App-Loop
  55. app.exit_exec()