/*
 * InstrumentoMusical.java
 *
 * Created on April 9, 2003, 7:59 AM
 */
package cib412.poo.musica;
/**
 *
 * @author  do008548
 */
public class InstrumentoMusical {
    /** Holds value of property tipo. */
    private String tipo;    
    public InstrumentoMusical(String t) {   tipo=t;}
    public void ejecutar(PartituraMusical p) {
        for (int i=0;i<p.getNumeroNotas() ;i++){
           NotaMusical nota= p.notaEn(i);
           if (nota!=null)  System.out.println(nota.sonar());
        }
    }
    /** Getter for property tipo.
     * @return Value of property tipo.
     */
    public String getTipo() {
        return this.tipo;
    }
    /** Setter for property tipo.
     * @param tipo New value of property tipo.
     */
    public void setTipo(String tipo) {
        this.tipo = tipo;
    }
    
    
}
