public class NoteInterpreterBasic extends NoteInterpreter { public NoteInterpreterBasic () { } public Note getNote(String a,double tempo)//breaks up the basic note //pitch:duration { String temp=a.substring(a.indexOf(":")+1,a.length()-1); Note t=new Note(new Rational(temp)); temp=a.substring(1,a.indexOf(":")); Pitch p=new Pitch(temp); t.setFreq(p); t.setTempo(tempo); return t; } }