final Rhythm final_rhythm = rhythm;
Thread bateria = new Thread() {
@Override
public void run() {
Pattern pattern = final_rhythm.getPattern();
pattern.repeat(3);
Player player = new Player();
player.play(pattern);
System.out.println("Fin de reproducción de ritmo");
}
};