// Start the Sonia engine if the Sonia/JSyn files are installed.
// Otherwise, if the program is playing from the browser, open a new window
// with the JSyn plugin installation page...
boolean soniaInstalled;
void setup() {
size(200,200);
soniaInstalled = Sonia.getStatus();
if(soniaInstalled){
Sonia.start(this);
} else if(online()) {
link("http://www.softsynth.com/jsyn/plugins/", "_new");
}
}
|