public void display(Tune t) {
StringBuffer sb=new StringBuffer();
StringBuffer failed=new StringBuffer();
sb.append("&");
NoteMapper nm=NoteMapper.getMapper(new MusiQwikB());
rightGlyphs=new ArrayList<NoteGlyph>();
rightIndex=0;
for(Note n:t.getRightHand()) {
String s=nm.renderTrebleNote(n);
if (s==null) {
failed.append(n);
failed.append("\n");
} else {
rightGlyphs.add(new NoteGlyph(sb.length(), s));
sb.append(s);
}
}
sb.append("!");
if (t.getLeftHand()!=null) {
leftIndex=0;
sb.append("\n\u00af");
leftGlyphs=new ArrayList<NoteGlyph>();
for(Note n:t.getLeftHand()) {
String s=nm.renderBassNote(n);
if (s==null) {
failed.append(n);
failed.append("\n");
} else {
leftGlyphs.add(new NoteGlyph(sb.length(), s));