Browse Source

Add carla-jack-single/multi startup tools

tags/1.9.7
falkTX 7 years ago
parent
commit
3645cf7891
5 changed files with 168 additions and 0 deletions
  1. +6
    -0
      Makefile
  2. +15
    -0
      data/carla-jack-multi
  3. +15
    -0
      data/carla-jack-single
  4. +66
    -0
      source/carla-jack-multi
  5. +66
    -0
      source/carla-jack-single

+ 6
- 0
Makefile View File

@@ -542,6 +542,8 @@ ifeq ($(HAVE_PYQT),true)
data/carla \ data/carla \
data/carla-control \ data/carla-control \
data/carla-database \ data/carla-database \
data/carla-jack-multi \
data/carla-jack-single \
data/carla-patchbay \ data/carla-patchbay \
data/carla-rack \ data/carla-rack \
data/carla-settings \ data/carla-settings \
@@ -552,6 +554,8 @@ ifeq ($(HAVE_PYQT),true)
$(DESTDIR)$(BINDIR)/carla \ $(DESTDIR)$(BINDIR)/carla \
$(DESTDIR)$(BINDIR)/carla-control \ $(DESTDIR)$(BINDIR)/carla-control \
$(DESTDIR)$(BINDIR)/carla-database \ $(DESTDIR)$(BINDIR)/carla-database \
$(DESTDIR)$(BINDIR)/carla-jack-multi \
$(DESTDIR)$(BINDIR)/carla-jack-single \
$(DESTDIR)$(BINDIR)/carla-patchbay \ $(DESTDIR)$(BINDIR)/carla-patchbay \
$(DESTDIR)$(BINDIR)/carla-rack \ $(DESTDIR)$(BINDIR)/carla-rack \
$(DESTDIR)$(BINDIR)/carla-settings $(DESTDIR)$(BINDIR)/carla-settings
@@ -569,6 +573,8 @@ ifeq ($(HAVE_PYQT),true)
install -m 644 \ install -m 644 \
source/carla \ source/carla \
source/carla-control \ source/carla-control \
source/carla-jack-multi \
source/carla-jack-single \
source/carla-patchbay \ source/carla-patchbay \
source/carla-rack \ source/carla-rack \
source/*.py \ source/*.py \


+ 15
- 0
data/carla-jack-multi View File

@@ -0,0 +1,15 @@
#!/bin/bash

if [ -f /usr/bin/python3 ]; then
PYTHON=/usr/bin/python3
else
PYTHON=python
fi

if [ "$1" = "--gdb" ]; then
PYTHON="gdb --args $PYTHON"
fi

INSTALL_PREFIX="X-PREFIX-X"
export PATH="$INSTALL_PREFIX"/lib/carla:$PATH
exec $PYTHON "$INSTALL_PREFIX"/share/carla/carla-jack-multi --with-appname="$0" --with-libprefix="$INSTALL_PREFIX" "$@"

+ 15
- 0
data/carla-jack-single View File

@@ -0,0 +1,15 @@
#!/bin/bash

if [ -f /usr/bin/python3 ]; then
PYTHON=/usr/bin/python3
else
PYTHON=python
fi

if [ "$1" = "--gdb" ]; then
PYTHON="gdb --args $PYTHON"
fi

INSTALL_PREFIX="X-PREFIX-X"
export PATH="$INSTALL_PREFIX"/lib/carla:$PATH
exec $PYTHON "$INSTALL_PREFIX"/share/carla/carla-jack-single --with-appname="$0" --with-libprefix="$INSTALL_PREFIX" "$@"

+ 66
- 0
source/carla-jack-multi View File

@@ -0,0 +1,66 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# Carla plugin host
# Copyright (C) 2011-2017 Filipe Coelho <falktx@falktx.com>
#
# 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-Single-Client", libPrefix)

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

setUpSignals()

# -------------------------------------------------------------
# Init host backend

host = initHost(initName, libPrefix, False, False, True)
host.audioDriverForced = "JACK"
host.processMode = ENGINE_PROCESS_MODE_MULTIPLE_CLIENTS
host.processModeForced = True
host.transportMode = ENGINE_TRANSPORT_MODE_JACK
loadHostSettings(host)

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

gui = HostWindow(host, not(LADISH_APP_NAME or NSM_URL))

# -------------------------------------------------------------
# Show GUI

gui.show()

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

app.exit_exec()

+ 66
- 0
source/carla-jack-single View File

@@ -0,0 +1,66 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# Carla plugin host
# Copyright (C) 2011-2017 Filipe Coelho <falktx@falktx.com>
#
# 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-Single-Client", libPrefix)

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

setUpSignals()

# -------------------------------------------------------------
# Init host backend

host = initHost(initName, libPrefix, False, False, True)
host.audioDriverForced = "JACK"
host.processMode = ENGINE_PROCESS_MODE_SINGLE_CLIENT
host.processModeForced = True
host.transportMode = ENGINE_TRANSPORT_MODE_JACK
loadHostSettings(host)

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

gui = HostWindow(host, not(LADISH_APP_NAME or NSM_URL))

# -------------------------------------------------------------
# Show GUI

gui.show()

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

app.exit_exec()

Loading…
Cancel
Save