public static Slur CreateSlur(string type) { //create a slur Slur slur = new Slur(); slur.setType(StartStopContinue.fromValue(type)); slur.setNumber(new Integer(1)); return(slur); }
public static Tied CreateTied(string type) { ObjectFactory factory = new ObjectFactory(); //create a tied element Tied tied = factory.createTied(); tied.setType(StartStopContinue.fromValue(type)); tied.setNumber(new Integer(1)); return(tied); }