[PlanetCCRMA] Starting script for rosegarden and friends?

Timo Sivula timo.sivula@gmail.com
Tue Mar 8 03:59:02 2005


a few days back I saw someone posting a nice "while - do" loop style
startup script to start Rosegarden and the affiliated software with on
some of the linux audio lists. I have tried to find that message to no

What I need, is a script that first starts qjackctl, then qsynth and
waits for qsynth to load before starting B4 and then finally starts
Rosegarden. My current script looks like this:

#! /bin/bash
/usr/bin/qjackctl /usr/bin/qsynth -m alsa_seq -a jack &
sleep 10
/usr/local/bin/jack_fst /usr/lib/vsts/B4.dll &

It is important to start qsynth before B4 because otherwise Rosegarden
will mix the software synths in my default studio. Now, this 10 second
sleep works most of the time, but sometimes during high system load etc,
loading my huge soundfonts takes longer than 10 seconds and B4 gets
loaded before Qsynth thereby spoiling my studio.

One way of doing this would be to increase the sleep timer, but that is
not neat. The script I saw used a "while - do" loop to check when Qsynth
was up and only then continued to the next step. Anyone of you out there
that saw this script, or could help me construct the same function in my

br, Timo