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.

35 lines
917B

  1. #!/bin/sh
  2. set -e
  3. PYTHON=$(which python3 2>/dev/null)
  4. if [ ! -f ${PYTHON} ]; then
  5. PYTHON=python
  6. fi
  7. if [ "$1" = "--gdb" ]; then
  8. PYTHON="gdb --args $PYTHON"
  9. fi
  10. INSTALL_ARGS="--with-appname="${0}""
  11. if [ -f "$(dirname ${0})/carla-utils.pc" ]; then
  12. cd "$(dirname ${0})/.."
  13. INSTALL_PREFIX="$(pwd)"
  14. INSTALL_FRONTENDDIR="${INSTALL_PREFIX}/source/frontend"
  15. else
  16. INSTALL_PREFIX="X-PREFIX-X"
  17. INSTALL_FRONTENDDIR="${INSTALL_PREFIX}/share/carla"
  18. INSTALL_ARGS="${INSTALL_ARGS} --with-libprefix="${INSTALL_PREFIX}""
  19. fi
  20. if lsof -i:21337 > /dev/null; then
  21. echo "NOTICE: Backend already running"
  22. else
  23. ${PYTHON} "${INSTALL_FRONTENDDIR}/carla" ${INSTALL_ARGS} --osc-gui=21337 "$@" --with-appname="carla-osc-dsp"
  24. echo "NOTICE: Backend was not running yet, start was triggered now"
  25. fi
  26. exec ${PYTHON} "${INSTALL_FRONTENDDIR}/carla-control" ${INSTALL_ARGS} osc.tcp://127.0.0.1:21337/Carla "$@"