abc4j API Specification

abc.midi
Interface TunePlayerListenerInterface

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
TunePlayerAdapter

public interface TunePlayerListenerInterface
extends java.util.EventListener

This interface defines methods that should be implemented by any object that wants to listen to a tune player.


Method Summary
 void notePlayed(NoteAbstract note)
           
 void partPlayed(int begin, int end)
          Deprecated. use notePlayed() instead.
 void playBegin(PlayerStateChangeEvent e)
          Invoked when the playing of a tune has started.
 void playEnd(PlayerStateChangeEvent e)
          Invoked when the playing of a tune is ended.
 void tempoChanged(TempoChangeEvent e)
          Invoked when the playing tempo has changed.
 

Method Detail

playBegin

void playBegin(PlayerStateChangeEvent e)
Invoked when the playing of a tune has started.


playEnd

void playEnd(PlayerStateChangeEvent e)
Invoked when the playing of a tune is ended.


tempoChanged

void tempoChanged(TempoChangeEvent e)
Invoked when the playing tempo has changed.


partPlayed

void partPlayed(int begin,
                int end)
Deprecated. use notePlayed() instead.

Invoked when a part of the tune notation is played.


notePlayed

void notePlayed(NoteAbstract note)

abc4j API Specification

Submit a bug or feature