| @@ -2,7 +2,7 @@ | |||||
| # -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||
| # Carla plugin host | # Carla plugin host | ||||
| # Copyright (C) 2011-2015 Filipe Coelho <falktx@falktx.com> | |||||
| # Copyright (C) 2011-2017 Filipe Coelho <falktx@falktx.com> | |||||
| # | # | ||||
| # This program is free software; you can redistribute it and/or | # This program is free software; you can redistribute it and/or | ||||
| # modify it under the terms of the GNU General Public License as | # modify it under the terms of the GNU General Public License as | ||||
| @@ -16,47 +16,47 @@ | |||||
| # | # | ||||
| # For a full copy of the GNU General Public License see the doc/GPL.txt file. | # For a full copy of the GNU General Public License see the doc/GPL.txt file. | ||||
| # ------------------------------------------------------------------------------------------------------------ | |||||
| # ---------------------------------------------------------------------------------------------------------------------- | |||||
| # Imports (Custom Stuff) | # Imports (Custom Stuff) | ||||
| from carla_host import * | from carla_host import * | ||||
| # ------------------------------------------------------------------------------------------------------------ | |||||
| # ---------------------------------------------------------------------------------------------------------------------- | |||||
| # Main | # Main | ||||
| if __name__ == '__main__': | if __name__ == '__main__': | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Read CLI args | # Read CLI args | ||||
| initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None) | initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # App initialization | # App initialization | ||||
| app = CarlaApplication("Carla2", libPrefix) | app = CarlaApplication("Carla2", libPrefix) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Set-up custom signal handling | # Set-up custom signal handling | ||||
| setUpSignals() | setUpSignals() | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Init host backend | # Init host backend | ||||
| host = initHost(initName, libPrefix, False, False, True) | host = initHost(initName, libPrefix, False, False, True) | ||||
| loadHostSettings(host) | loadHostSettings(host) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Create GUI | # Create GUI | ||||
| gui = HostWindow(host, True) | gui = HostWindow(host, True) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Show GUI | # Show GUI | ||||
| gui.show() | gui.show() | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # App-Loop | # App-Loop | ||||
| app.exit_exec() | app.exit_exec() | ||||
| @@ -2,7 +2,7 @@ | |||||
| # -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||
| # Carla plugin host | # Carla plugin host | ||||
| # Copyright (C) 2011-2015 Filipe Coelho <falktx@falktx.com> | |||||
| # Copyright (C) 2011-2017 Filipe Coelho <falktx@falktx.com> | |||||
| # | # | ||||
| # This program is free software; you can redistribute it and/or | # This program is free software; you can redistribute it and/or | ||||
| # modify it under the terms of the GNU General Public License as | # modify it under the terms of the GNU General Public License as | ||||
| @@ -16,16 +16,16 @@ | |||||
| # | # | ||||
| # For a full copy of the GNU General Public License see the doc/GPL.txt file. | # For a full copy of the GNU General Public License see the doc/GPL.txt file. | ||||
| # ------------------------------------------------------------------------------------------------------------ | |||||
| # ---------------------------------------------------------------------------------------------------------------------- | |||||
| # Imports (Custom Stuff) | # Imports (Custom Stuff) | ||||
| from carla_control import * | from carla_control import * | ||||
| # ------------------------------------------------------------------------------------------------------------ | |||||
| # ---------------------------------------------------------------------------------------------------------------------- | |||||
| # Main | # Main | ||||
| if __name__ == '__main__': | if __name__ == '__main__': | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Read CLI args | # Read CLI args | ||||
| initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None) | initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None) | ||||
| @@ -37,17 +37,17 @@ if __name__ == '__main__': | |||||
| else: | else: | ||||
| oscAddr = None | oscAddr = None | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # App initialization | # App initialization | ||||
| app = CarlaApplication("Carla2-Control", libPrefix) | app = CarlaApplication("Carla2-Control", libPrefix) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Set-up custom signal handling | # Set-up custom signal handling | ||||
| setUpSignals() | setUpSignals() | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Init host backend | # Init host backend | ||||
| host = initHost(initName, libPrefix, True, False, True, CarlaHostOSC) | host = initHost(initName, libPrefix, True, False, True, CarlaHostOSC) | ||||
| @@ -55,17 +55,17 @@ if __name__ == '__main__': | |||||
| host.processModeForced = True | host.processModeForced = True | ||||
| loadHostSettings(host) | loadHostSettings(host) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Create GUI | # Create GUI | ||||
| gui = HostWindowOSC(host, oscAddr) | gui = HostWindowOSC(host, oscAddr) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Show GUI | # Show GUI | ||||
| gui.show() | gui.show() | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # App-Loop | # App-Loop | ||||
| app.exit_exec() | app.exit_exec() | ||||
| @@ -16,31 +16,31 @@ | |||||
| # | # | ||||
| # For a full copy of the GNU General Public License see the doc/GPL.txt file. | # For a full copy of the GNU General Public License see the doc/GPL.txt file. | ||||
| # ------------------------------------------------------------------------------------------------------------ | |||||
| # ---------------------------------------------------------------------------------------------------------------------- | |||||
| # Imports (Custom Stuff) | # Imports (Custom Stuff) | ||||
| from carla_host import * | from carla_host import * | ||||
| # ------------------------------------------------------------------------------------------------------------ | |||||
| # ---------------------------------------------------------------------------------------------------------------------- | |||||
| # Main | # Main | ||||
| if __name__ == '__main__': | if __name__ == '__main__': | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Read CLI args | # Read CLI args | ||||
| initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None) | initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # App initialization | # App initialization | ||||
| app = CarlaApplication("Carla2-Single-Client", libPrefix) | app = CarlaApplication("Carla2-Single-Client", libPrefix) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Set-up custom signal handling | # Set-up custom signal handling | ||||
| setUpSignals() | setUpSignals() | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Init host backend | # Init host backend | ||||
| host = initHost(initName, libPrefix, False, False, True) | host = initHost(initName, libPrefix, False, False, True) | ||||
| @@ -50,17 +50,17 @@ if __name__ == '__main__': | |||||
| host.transportMode = ENGINE_TRANSPORT_MODE_JACK | host.transportMode = ENGINE_TRANSPORT_MODE_JACK | ||||
| loadHostSettings(host) | loadHostSettings(host) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Create GUI | # Create GUI | ||||
| gui = HostWindow(host, not(LADISH_APP_NAME or NSM_URL)) | gui = HostWindow(host, not(LADISH_APP_NAME or NSM_URL)) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Show GUI | # Show GUI | ||||
| gui.show() | gui.show() | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # App-Loop | # App-Loop | ||||
| app.exit_exec() | app.exit_exec() | ||||
| @@ -16,31 +16,31 @@ | |||||
| # | # | ||||
| # For a full copy of the GNU General Public License see the doc/GPL.txt file. | # For a full copy of the GNU General Public License see the doc/GPL.txt file. | ||||
| # ------------------------------------------------------------------------------------------------------------ | |||||
| # ---------------------------------------------------------------------------------------------------------------------- | |||||
| # Imports (Custom Stuff) | # Imports (Custom Stuff) | ||||
| from carla_host import * | from carla_host import * | ||||
| # ------------------------------------------------------------------------------------------------------------ | |||||
| # ---------------------------------------------------------------------------------------------------------------------- | |||||
| # Main | # Main | ||||
| if __name__ == '__main__': | if __name__ == '__main__': | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Read CLI args | # Read CLI args | ||||
| initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None) | initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # App initialization | # App initialization | ||||
| app = CarlaApplication("Carla2-Single-Client", libPrefix) | app = CarlaApplication("Carla2-Single-Client", libPrefix) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Set-up custom signal handling | # Set-up custom signal handling | ||||
| setUpSignals() | setUpSignals() | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Init host backend | # Init host backend | ||||
| host = initHost(initName, libPrefix, False, False, True) | host = initHost(initName, libPrefix, False, False, True) | ||||
| @@ -50,17 +50,17 @@ if __name__ == '__main__': | |||||
| host.transportMode = ENGINE_TRANSPORT_MODE_JACK | host.transportMode = ENGINE_TRANSPORT_MODE_JACK | ||||
| loadHostSettings(host) | loadHostSettings(host) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Create GUI | # Create GUI | ||||
| gui = HostWindow(host, not(LADISH_APP_NAME or NSM_URL)) | gui = HostWindow(host, not(LADISH_APP_NAME or NSM_URL)) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Show GUI | # Show GUI | ||||
| gui.show() | gui.show() | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # App-Loop | # App-Loop | ||||
| app.exit_exec() | app.exit_exec() | ||||
| @@ -2,7 +2,7 @@ | |||||
| # -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||
| # Carla plugin host | # Carla plugin host | ||||
| # Copyright (C) 2011-2015 Filipe Coelho <falktx@falktx.com> | |||||
| # Copyright (C) 2011-2017 Filipe Coelho <falktx@falktx.com> | |||||
| # | # | ||||
| # This program is free software; you can redistribute it and/or | # This program is free software; you can redistribute it and/or | ||||
| # modify it under the terms of the GNU General Public License as | # modify it under the terms of the GNU General Public License as | ||||
| @@ -16,31 +16,31 @@ | |||||
| # | # | ||||
| # For a full copy of the GNU General Public License see the doc/GPL.txt file. | # For a full copy of the GNU General Public License see the doc/GPL.txt file. | ||||
| # ------------------------------------------------------------------------------------------------------------ | |||||
| # ---------------------------------------------------------------------------------------------------------------------- | |||||
| # Imports (Custom Stuff) | # Imports (Custom Stuff) | ||||
| from carla_host import * | from carla_host import * | ||||
| # ------------------------------------------------------------------------------------------------------------ | |||||
| # ---------------------------------------------------------------------------------------------------------------------- | |||||
| # Main | # Main | ||||
| if __name__ == '__main__': | if __name__ == '__main__': | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Read CLI args | # Read CLI args | ||||
| initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None) | initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # App initialization | # App initialization | ||||
| app = CarlaApplication("Carla2-Patchbay", libPrefix) | app = CarlaApplication("Carla2-Patchbay", libPrefix) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Set-up custom signal handling | # Set-up custom signal handling | ||||
| setUpSignals() | setUpSignals() | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Init host backend | # Init host backend | ||||
| host = initHost(initName, libPrefix, False, False, True) | host = initHost(initName, libPrefix, False, False, True) | ||||
| @@ -48,17 +48,17 @@ if __name__ == '__main__': | |||||
| host.processModeForced = True | host.processModeForced = True | ||||
| loadHostSettings(host) | loadHostSettings(host) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Create GUI | # Create GUI | ||||
| gui = HostWindow(host, True) | gui = HostWindow(host, True) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Show GUI | # Show GUI | ||||
| gui.show() | gui.show() | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # App-Loop | # App-Loop | ||||
| app.exit_exec() | app.exit_exec() | ||||
| @@ -16,31 +16,31 @@ | |||||
| # | # | ||||
| # For a full copy of the GNU General Public License see the doc/GPL.txt file. | # For a full copy of the GNU General Public License see the doc/GPL.txt file. | ||||
| # ------------------------------------------------------------------------------------------------------------ | |||||
| # ---------------------------------------------------------------------------------------------------------------------- | |||||
| # Imports (Custom Stuff) | # Imports (Custom Stuff) | ||||
| from carla_host import * | from carla_host import * | ||||
| # ------------------------------------------------------------------------------------------------------------ | |||||
| # ---------------------------------------------------------------------------------------------------------------------- | |||||
| # Main | # Main | ||||
| if __name__ == '__main__': | if __name__ == '__main__': | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Read CLI args | # Read CLI args | ||||
| initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None) | initName, libPrefix = handleInitialCommandLineArguments(__file__ if "__file__" in dir() else None) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # App initialization | # App initialization | ||||
| app = CarlaApplication("Carla2-Rack", libPrefix) | app = CarlaApplication("Carla2-Rack", libPrefix) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Set-up custom signal handling | # Set-up custom signal handling | ||||
| setUpSignals() | setUpSignals() | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Init host backend | # Init host backend | ||||
| host = initHost(initName, libPrefix, False, False, True) | host = initHost(initName, libPrefix, False, False, True) | ||||
| @@ -48,17 +48,17 @@ if __name__ == '__main__': | |||||
| host.processModeForced = True | host.processModeForced = True | ||||
| loadHostSettings(host) | loadHostSettings(host) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Create GUI | # Create GUI | ||||
| gui = HostWindow(host, not(LADISH_APP_NAME or NSM_URL)) | gui = HostWindow(host, not(LADISH_APP_NAME or NSM_URL)) | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # Show GUI | # Show GUI | ||||
| gui.show() | gui.show() | ||||
| # ------------------------------------------------------------- | |||||
| # ------------------------------------------------------------------------------------------------------------------ | |||||
| # App-Loop | # App-Loop | ||||
| app.exit_exec() | app.exit_exec() | ||||