39
52
echo "startBristol [-explorer|-mini|-memory|-hammond|-b3|-dx|-axxe|-odyssey|-2600|-mono|-poly|-juno|-prophet|-pro10|-pro52|-mixer|-vox|-rhodes|-rhodesbass|-obx|-obxa|-aks|<others>] [-oss|-alsa|-jack] [[-help|-h] [-verbose|-v]]"
41
echo "Try 'startBristol -v -h' for more verbose help output on device configuration."
54
echo "Try 'startBristol -v|-h' for more verbose help output on device configuration."
56
echo "Try 'startBristol -readme' for very verbose output"
57
echo "Try 'startBristol -readme -mini' for info on specific emulator"
43
59
echo "Try 'startBristol -b3' or 'startBristol -jack', for example, if you are unsure."
108
124
brighton -summary
127
if [ $index = "-console" ]; then
128
declare -x BRISTOL_LOG_CONSOLE=true
130
if [ $index = "-cli" ]; then
133
declare -x BRISTOL_LOG_CONSOLE=true
135
if [ $index = "-exec" ]; then
138
if [ $index = "-valgrind" ]; then
141
if [ $index = "-debug" ]; then
144
if [ $index = "-liblist" ]; then
111
147
if [ $index = "-master" ]; then
117
153
if [ $index = "-gui" ]; then
156
if [ $index = "-readme" ]; then
120
159
if [ $index = "-v" ]; then
123
162
if [ $index = "--v" ]; then
126
165
if [ $index = "-verbose" ]; then
132
171
if [ $index = "-V" ]; then
135
174
if [ $index = "-logo" ]; then
138
177
if [ $index = "-h" ]; then
141
180
if [ $index = "--h" ]; then
144
183
if [ $index = "-help" ]; then
147
186
if [ $index = "--help" ]; then
150
189
if [ $index = "-libtest" ]; then
156
195
if [ $index = "-q" ]; then
198
if [ $index = "-jsmuuid" ]; then
199
declare -x BRISTOL_AUTOCONN=false
159
201
if [ $index = "-jack" ]; then
206
if [ $index = "-audio" ]; then
164
210
if [ $index = "-alsa" ]; then
220
267
# See if the process is running
269
# We should replace this with pgrep and do it for this user - if the
270
# daemon is running with other rights we may not be able to connect.
222
272
JACKD=`ps ax | grep -w jackd | grep -vw grep`
266
316
declare -x SLAB_HOME=$BRISTOL
267
317
declare -x BRIGHTON=$BRISTOL
269
declare -x LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:${LD_LIBRARY_PATH}:${BRISTOL}/lib
319
declare -x LD_LIBRARY_PATH=/usr/local/lib:usr/lib:${LD_LIBRARY_PATH}:${BRISTOL}/lib
271
321
declare PATH=${PATH}:$BRISTOL/bin:/usr/local/bin
323
if [ ${README} -ge 1 ]; then
324
brighton $args | less
273
328
if [ ${HELP} -ge 1 ]; then
297
352
if [ ${LOGO} == "yes" ]; then
303
echo "Bristol is about to start."
305
echo "This program is totally unrelated to ANY of the companies that produced"
306
echo "the original instruments emulated by bristol, and none of the original"
307
echo "manufacturers in ANY way endorse this product."
357
echo "Bristol is about to start."
359
echo "This program is totally unrelated to ANY of the companies that produced"
360
echo "the original instruments emulated by bristol, and none of the original"
361
echo "manufacturers in ANY way endorse this product."
367
if [ ${liblist} != 0 ]; then
369
echo '*** bristol libraries ***'
372
echo '*** brighton libraries ***'
317
382
if [ $engine = 1 ]; then
318
383
echo checking availability of TCP port $PORT
319
netstat -taln | grep $PORT > /dev/null
384
netstat -taln | awk '{print $4}' | grep -w $PORT > /dev/null
320
385
while [ $? = 0 ]; do
321
386
echo -n "port looked busy, trying "
322
387
PORT=`expr $PORT + 1`
334
# the bristol engine has flags for -oss or -alsa drivers, -preload buffers of
336
# bristol -preload 4 -count 256 [-oss]
338
if [ $engine = 1 ]; then
401
if [ $cli = 1 ]; then
402
if [ $engine = 1 ]; then
403
bristol -rate ${RATE} -count ${COUNT} $args -port $PORT &
405
brighton $args -port ${PORT}
339
407
if [ $gui = 1 ]; then
340
if [ $quiet = 0 ]; then
341
bristol -rate ${RATE} -count ${COUNT} $args -port $PORT &
343
bristol -rate ${RATE} -count ${COUNT} $args -port $PORT > /dev/null 2>&1 &
346
if [ $quiet = 0 ]; then
347
bristol -rate ${RATE} -count ${COUNT} $args -port $PORT
349
bristol -rate ${RATE} -count ${COUNT} $args -port $PORT > /dev/null 2>&1
408
if [ $engine = 1 ]; then
409
if [ $quiet = 0 ]; then
410
brighton $args -port ${PORT} &
412
brighton $args -port ${PORT} > /dev/null 2>&1 &
415
if [ $quiet = 0 ]; then
416
if [ $execme = 0 ]; then
417
if [ $valgrind = 0 ]; then
418
brighton $args -port ${PORT}
420
valgrind --leak-check=full -v --show-reachable=yes --track-origins=yes brighton $args -port ${PORT}
423
exec brighton $args -port ${PORT}
427
if [ $execme = 0 ]; then
428
brighton $args -port ${PORT} > /dev/null 2>&1
430
exec brighton $args -port ${PORT} > /dev/null 2>&1
438
# the bristol engine has flags for -oss or -alsa drivers, -preload buffers of
440
# bristol -preload 4 -count 256 [-oss]
442
if [ $engine = 1 ]; then
443
if [ $quiet = 0 ]; then
444
if [ $valgrind = 0 ]; then
445
if [ $execme = 0 ]; then
446
bristol -rate ${RATE} -count ${COUNT} $args -port $PORT
449
exec bristol -rate ${RATE} -count ${COUNT} $args -port $PORT
452
valgrind --leak-check=full -v --show-reachable=yes --track-origins=yes bristol -rate ${RATE} -count ${COUNT} $args -port $PORT
456
if [ $execme = 0 ]; then
457
bristol -rate ${RATE} -count ${COUNT} $args -port $PORT > /dev/null 2>&1
459
exec bristol -rate ${RATE} -count ${COUNT} $args -port $PORT > /dev/null 2>&1
466
# Make sure we have the children returned, prevents ugly delayed output
467
if [ $engine = 1 ]; then
468
wait % >/dev/null 2>&1
355
470
if [ $gui = 1 ]; then
356
if [ $quiet = 0 ]; then
357
brighton $args -engine -port ${PORT}
359
brighton $args -engine -port ${PORT} > /dev/null 2>&1
363
# Make sure we have the children returned, prevents ugly delayed output
364
if [ $engine = 1 ]; then
365
471
wait % >/dev/null 2>&1
476
exit `expr $engstatus + $guistatus`