code: public static void main (String[] arg) {
  		try {
              boolean chr = arg.length > 0 && arg[0].equals("--chromatic");
              String rn   = chr ? CHROMATIC_RECOURCE_NAME : DEMO_RESOURCE_NAME;
              Reader isr  = new InputStreamReader(Main.class.getResourceAsStream(rn), "UTF-8");
              TuneBook tb = new TuneBookParser().parse(isr);
  		    Tune tune   = tb.getTune(chr ? 1 : 7);
  		    JScoreComponent scoreUI = new JScoreComponent();
  		    scoreUI.setTune(tune);
              // Dimension d     = scoreUI.getSize();
              // d.height       *= 3;
              // scoreUI.setSize(d);
              File home       = new File(System.getProperty("user.home"));
              File desktop    = new File(home, "Desktop");
              File dir        = desktop.isDirectory() ? desktop : home;
  		    scoreUI.writeScoreTo(new File(dir, "abc4j_demoNotjustified.jpg"));
  		    scoreUI.setJustification(true);
  		    scoreUI.writeScoreTo(new File(dir, "abc4j_demoJustified.jpg"));
  		}
  		catch (Exception e) {
  			e.printStackTrace();
  		}
  	}
docs: /*public static void main (String[] arg) {
  String tuneAsString = "X:0\nT:A simple scale exercise\nM:4/4\nK:D\n(CD EF|G)A Bc|de fg-|gf ed|cB A(G|FE DC)\n";
  Tune tune = new TuneParser().parse(tuneAsString);
  JScoreComponent scoreUI =new JScoreComponent();
  scoreUI.setTune(tune);
  JFrame j = new JFrame();
  j.add(scoreUI);
  j.pack();
  System.out.println(sp.getSize());
  j.setVisible(true);
  }
  }