import java.util.ArrayList; public class Instrument //everything is self explanitory { NoteInterpreter n; double tempo; TimeSignature tt; ArrayList notes; String in,volume; public Instrument (String type) { in=type; notes=new ArrayList(); } public void setNoteInterpreter(NoteInterpreter nn) { n=nn; } public void setTempo(String nn) { tempo=Double.parseDouble(nn); } public void setVolume(String nn) { volume=nn; } public String getVolume() { return volume; } public void addNote(String[] nn) { Note t=n.getNote(nn[1],tempo); t.setPlayer(this); t.setMods(nn); notes.add(t); } public double getDuration() { double x=0; for(int i=0;i