Search in sources :

Example 1 with DesktopLogProcessing

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);
}
Also used : MidiUnavailableException(javax.sound.midi.MidiUnavailableException) DesktopLogProcessing(com.xenoage.utils.jse.log.DesktopLogProcessing)

Example 2 with DesktopLogProcessing

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();
    }
}
Also used : DesktopLogProcessing(com.xenoage.utils.jse.log.DesktopLogProcessing) IOException(java.io.IOException) ScoreDoc(com.xenoage.zong.documents.ScoreDoc)

Example 3 with DesktopLogProcessing

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);
}
Also used : DesktopLogProcessing(com.xenoage.utils.jse.log.DesktopLogProcessing) GuiErrorProcessing(com.xenoage.zong.desktop.utils.error.GuiErrorProcessing)

Example 4 with DesktopLogProcessing

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()));
}
Also used : DesktopLogProcessing(com.xenoage.utils.jse.log.DesktopLogProcessing) Before(org.junit.Before)

Aggregations

DesktopLogProcessing (com.xenoage.utils.jse.log.DesktopLogProcessing)4 GuiErrorProcessing (com.xenoage.zong.desktop.utils.error.GuiErrorProcessing)1 ScoreDoc (com.xenoage.zong.documents.ScoreDoc)1 IOException (java.io.IOException)1 MidiUnavailableException (javax.sound.midi.MidiUnavailableException)1 Before (org.junit.Before)1