use of com.xenoage.utils.jse.log.DesktopLogProcessing in project Zong by Xenoage.
the class Converter method main.
public static void main(String... args) throws IOException {
JseZongPlatformUtils.init(filename);
Log.INSTANCE.init(new DesktopLogProcessing(Zong.INSTANCE.getNameAndVersion(projectFirstName)));
try {
SynthManager.init(true);
} catch (MidiUnavailableException ex) {
handle(Companion.fatal(ex));
}
// do the job
if (args.length == 0)
showHelp();
else if (args[0].equals("--formats"))
showFormats();
else
convert(args);
// TIDY - maybe hangs in SynthManager
System.exit(0);
}
use of com.xenoage.utils.jse.log.DesktopLogProcessing in project Zong by Xenoage.
the class VisualTester method start.
public static void start(VisualTest test) {
try {
JseZongPlatformUtils.init(test.getClass().getSimpleName());
Log.INSTANCE.init(new DesktopLogProcessing(test.getClass().getSimpleName()));
ScoreDoc scoreDoc = createScoreDoc(test);
SimpleGuiDemo.start(scoreDoc);
} catch (Exception ex) {
ex.printStackTrace();
}
}
use of com.xenoage.utils.jse.log.DesktopLogProcessing in project Zong by Xenoage.
the class SimpleGuiDemo method initZong.
/**
* Initializes the Zong! engine.
*/
public static void initZong() throws Exception {
// initialize platform-dependent utilities, including I/O
JseZongPlatformUtils.init(appName);
// init logging and error handling
Log.INSTANCE.init(new DesktopLogProcessing(appName + " " + appVersion));
Err.init(new GuiErrorProcessing());
// init audio engine
SynthManager.init(false);
}
use of com.xenoage.utils.jse.log.DesktopLogProcessing in project Zong by Xenoage.
the class MusicXmlMassTest method setUp.
@Before
public void setUp() {
// Logging
JseZongPlatformUtils.init(getClass().getSimpleName());
Log.INSTANCE.init(new DesktopLogProcessing(getClass().getSimpleName()));
}
Aggregations