code: public void setTuneAndTemplate(Tune tune, ScoreTemplate template) {
  		//from setTemplate(template)
  		if (m_template != null)
  			m_template.removeListener(this);
  		m_template = template;
  		m_template.setGraphics(getGraphics2D());
  		m_template.addListener(this);
  		//from refresh()
  		initGfx();
  		setTune(tune);
  	}
docs: Sets tune and template in one shot, this is optimized version,
  it avoid 2 calculation (first at setTemplate and second at setTune).