Example #1
0
def prepare():
    def run_server():
        application.listen(DEVICE_WEBSERVER_PORT, address="0.0.0.0")
        if LOG:
            tornado.log.enable_pretty_logging()
        JackXRun.connect()

    def check():
        check_environment(lambda result: result)

    lv2_init()
    run_server()
    tornado.ioloop.IOLoop.instance().add_callback(check)
    tornado.ioloop.IOLoop.instance().add_callback(JackXRun.connect)
    global cpu_load_callback
    cpu_load_callback = tornado.ioloop.PeriodicCallback(SESSION.jack_cpu_load, 1000)
Example #2
0
def prepare():
    def run_server():
        application.listen(DEVICE_WEBSERVER_PORT, address="0.0.0.0")
        if LOG:
            tornado.log.enable_pretty_logging()

    def check():
        if SESSION.host.sock is None:
            print("Host failed to initialize, is ingen running?")
            sys.exit(1)

        check_environment()

    lv2_init()

    if not APP:
        print("Scanning plugins, this may take a little...")
        get_all_plugins()
        print("Done!")

    run_server()
    tornado.ioloop.IOLoop.instance().add_callback(check)
Example #3
0
def prepare():
    def run_server():
        application.listen(DEVICE_WEBSERVER_PORT, address="0.0.0.0")
        if LOG:
            tornado.log.enable_pretty_logging()

    def check():
        if SESSION.host.sock is None:
            print("Host failed to initialize, is ingen running?")
            sys.exit(1)

        check_environment()

    lv2_init()

    if not APP:
        print("Scanning plugins, this may take a little...")
        get_all_plugins()
        print("Done!")

    run_server()
    tornado.ioloop.IOLoop.instance().add_callback(check)
Example #4
0
    # Init utils

    pathBinaries, pathResources = getPaths(libPrefix)

    utilsname = "libcarla_utils.%s" % (DLL_EXTENSION)

    gCarla.utils = CarlaUtils(os.path.join(pathBinaries, utilsname))
    gCarla.utils.set_process_name("carla-bridge-lv2-modgui")

    # -------------------------------------------------------------
    # Set-up custom signal handling

    setUpSignals()

    # -------------------------------------------------------------
    # Init LV2

    lv2_init()

    # -------------------------------------------------------------
    # Create GUI

    gui = HostWindow()

    # --------------------------------------------------------------------------------------------------------
    # App-Loop

    app.exit_exec()

# ------------------------------------------------------------------------------------------------------------
Example #5
0
    # Init utils

    pathBinaries, pathResources = getPaths(libPrefix)

    utilsname = "libcarla_utils.%s" % (DLL_EXTENSION)

    gCarla.utils = CarlaUtils(os.path.join(pathBinaries, utilsname))
    gCarla.utils.set_process_name("carla-bridge-lv2-modgui")

    # -------------------------------------------------------------
    # Set-up custom signal handling

    setUpSignals()

    # -------------------------------------------------------------
    # Init LV2

    lv2_init()

    # -------------------------------------------------------------
    # Create GUI

    gui = HostWindow()

    # --------------------------------------------------------------------------------------------------------
    # App-Loop

    app.exit_exec()

# ------------------------------------------------------------------------------------------------------------