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.

33 lines
870B

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