aboutsummaryrefslogtreecommitdiff
path: root/bin/synthpod_ui
blob: 2d1e6134afded8789adc646015c2dd05d77b64c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

set -e
set -u

# guess pid of running daemon
pid=$( pgrep synthpod | grep -v sand | head -n 1 | awk '{print $1}' )

if [ -z "${pid}" ]; then
	exit 1
fi

socket="shm:///synthpod-${pid}"

uri='http://open-music-kontrollers.ch/lv2/synthpod#stereo'
ui='http://open-music-kontrollers.ch/lv2/synthpod#root_4_nk'
bundle=$( lv2info ${uri} | grep Bundle | head -n1 | sed -e 's/.*file:\/\///g' )

exec ${GDB:-} synthpod_sandbox_x11 \
	-p "${uri}" \
	-P "${bundle}" \
	-u "${ui}" \
	-U "${bundle}" \
	-s "${socket}" \
	-w "Synthpod - ${socket}" \
	-m $(( 0x1000000 )) \
	-r 48000 \
	-f 30 \
	"$@"