Interface NoteListener


public interface NoteListener
A listener to Note ON/OFF events fired by the MusicController.

MusicController will fire the events taking into account the user-defined output synth latency. Events are fired by the MusicController on the Event Dispatching Thread, event handling must be time-efficient.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    noteOff(long tick, int channel, int pitch)
    A note OFF event has occured.
    void
    noteOn(long tick, int channel, int pitch, int velocity)
    A note ON event has occured.
  • Method Details

    • noteOn

      void noteOn(long tick, int channel, int pitch, int velocity)
      A note ON event has occured.

      Parameters:
      channel -
      pitch -
      velocity -
      tick - The approximate tick at which the event occured. Can be -1 if no tick information available.
    • noteOff

      void noteOff(long tick, int channel, int pitch)
      A note OFF event has occured.

      Parameters:
      channel -
      pitch -
      tick - The approximate tick at which the event occured. Can be -1 if no tick information available.