aboutsummaryrefslogtreecommitdiff
path: root/bin/synthpod_ui
blob: f4b509b43fe76f2082bdb1ba13e97a930b0d4133 (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
30
#!/bin/sh

socket=$1

# guess pid of running daemon
if [ -z "${socket}" ]; then
	pid=$(ps -A | grep synthpod | grep -v sand | head -n 1 | awk '{print $1}')

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

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

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 \
	$*