From 2bb2c89d95b5f33519d82fda8539b3fa6c900268 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 1 Nov 2017 23:56:58 +0100 Subject: [PATCH] Add back the carla-patchbay startup file --- source/carla-patchbay | 64 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100755 source/carla-patchbay diff --git a/source/carla-patchbay b/source/carla-patchbay new file mode 100755 index 000000000..2ce09f79a --- /dev/null +++ b/source/carla-patchbay @@ -0,0 +1,64 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +# Carla plugin host +# Copyright (C) 2011-2017 Filipe Coelho +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# For a full copy of the GNU General Public License see the doc/GPL.txt file. + +# ---------------------------------------------------------------------------------------------------------------------- +# Imports (Custom Stuff) + +from carla_host import * + +# ---------------------------------------------------------------------------------------------------------------------- +# Main + +if __name__ == '__main__': + # ------------------------------------------------------------------------------------------------------------------ + # Read CLI args + + initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None) + + # ------------------------------------------------------------------------------------------------------------------ + # App initialization + + app = CarlaApplication("Carla2-Patchbay", libPrefix) + + # ------------------------------------------------------------------------------------------------------------------ + # Set-up custom signal handling + + setUpSignals() + + # ------------------------------------------------------------------------------------------------------------------ + # Init host backend + + host = initHost(initName, libPrefix, False, False, True) + host.processMode = ENGINE_PROCESS_MODE_PATCHBAY + host.processModeForced = True + loadHostSettings(host) + + # ------------------------------------------------------------------------------------------------------------------ + # Create GUI + + gui = HostWindow(host, not(LADISH_APP_NAME or NSM_URL)) + + # ------------------------------------------------------------------------------------------------------------------ + # Show GUI + + gui.show() + + # ------------------------------------------------------------------------------------------------------------------ + # App-Loop + + app.exit_exec()