f@0: /* f@0: Cross-Modal DAW Prototype - Prototype of a simple Cross-Modal Digital Audio Workstation. f@0: f@0: Copyright (C) 2015 Queen Mary University of London (http://depic.eecs.qmul.ac.uk/) f@0: f@0: This program is free software: you can redistribute it and/or modify f@0: it under the terms of the GNU General Public License as published by f@0: the Free Software Foundation, either version 3 of the License, or f@0: (at your option) any later version. f@0: f@0: This program is distributed in the hope that it will be useful, f@0: but WITHOUT ANY WARRANTY; without even the implied warranty of f@0: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the f@0: GNU General Public License for more details. f@0: f@0: You should have received a copy of the GNU General Public License f@0: along with this program. If not, see . f@0: */ f@0: package uk.ac.qmul.eecs.depic.daw; f@0: f@0: import javax.swing.SwingUtilities; f@0: f@0: import uk.ac.qmul.eecs.depic.daw.beads.BeadsSoundEngineFactory; f@0: import uk.ac.qmul.eecs.depic.daw.gui.MainFrame; f@0: f@1: /** f@1: * f@1: * Entry point for the program f@1: * f@1: */ f@0: public class Daw implements Runnable{ f@0: private static SoundEngineFactory soundEngineFactory; f@0: f@0: /** f@0: * Main function. Calls {@code run()} in the Event dispatching thread. f@0: * f@0: * @param args command line argument vector f@0: */ f@0: public static void main(String[] args) { f@0: System.out.println("Digital Audio Workstation prototype running on Java "+ f@0: System.getProperty("java.version")+" "+System.getProperty("os.arch")); f@0: Daw daw = new Daw(); f@0: try { f@0: SwingUtilities.invokeAndWait(daw); f@0: } f@0: catch (Exception e) { f@0: e.printStackTrace(); f@0: } f@0: f@0: } f@0: f@0: /** f@0: * Creates a new {@code MainFrame} and makes it visible in the Event Dispatching Thread. f@0: */ f@0: public void run(){ f@0: MainFrame frame = new MainFrame(); f@0: /* become visible */ f@0: frame.pack(); f@0: frame.setVisible(true); f@0: } f@0: f@0: public static SoundEngineFactory getSoundEngineFactory(){ f@0: if(soundEngineFactory == null){ f@0: soundEngineFactory = new BeadsSoundEngineFactory(); f@0: } f@0: return soundEngineFactory; f@0: } f@0: f@0: }