Creating a Pianoteq box

That’s possible too, a couple of modifications are in order:

First install a missing dependency of patchbox-cli for this to work: (won’t be necessary any more for versions above patchbox, version 1.3.2)

sudo apt install libgtk-3-bin

Then modify patchbox-module.json:

sudo nano /usr/local/patchbox-modules/imported/pianoteq-patchbox-module/patchbox-module.json

add "is_desktop": true, after launch_mode (note the line must end with a comma), so the entire file looks like this:

{
    "name": "pianoteq",
    "version": "0.0.6",
    "description": "pianoteq loader",
    "author": "carl / modartt",
    "launch_mode": "auto",
    "is_desktop": true,
    "depends_on": [
        "jack.service"
    ],
    "services": [],
    "scripts": {
        "install": "install.sh",
        "launch": "launch.sh",
        "stop": "stop.sh"
    }
}

Then remove --headless arg and use of su in launch.sh:

sudo nano /usr/local/patchbox-modules/imported/pianoteq-patchbox-module/launch.sh

so the entire file looks like this:

#!/bin/sh

/usr/local/pianoteq/pianoteq --multicore max --preset "Simple Steinway D"

After rebooting, the Pianoteq software will launch with GUI. Keep in mind that you must select “Desktop Autlogin” boot mode, for it to start automatically without waiting for you to login to the desktop.