Class SongMetaEvents

java.lang.Object
org.jjazz.song.api.SongMetaEvents
All Implemented Interfaces:
PropertyChangeListener, VetoableChangeListener, EventListener, ClsChangeListener, SgsChangeListener

A helper class which listens to lower-level Song/ChordLeadSheet/SongStructure change events to provide higher-level song change events.

Whenever possible change events are fired when all low-level changes are complete, in order to minimize the number of fired events.

  • Field Details

    • PROP_CLS_SGS_API_CHANGE_COMPLETE

      public static final String PROP_CLS_SGS_API_CHANGE_COMPLETE
      Fired when the song modification initiated by a ChordLeadSheet/SongStructure API method is complete.

      OldValue=the source ClsSourceActionEvent/SgsSourceActionEvent that initially triggered the change.
      NewValue=the optional associated data

      See Also:
    • PROP_MUSIC_GENERATION

      public static final String PROP_MUSIC_GENERATION
      Fired when the "musical content" of the song is modified, i.e. any related music generation process should be updated or restarted.

      Source changes might contain e.g. chord symbol changes, inserted bars, rhythm parameter value changes -but not a section name change. Because a rhythm generation engine might adjust the generated music to the tempo, a song tempo change is considered as a musical content change.

      OldValue=the Song property name or the source ClsSourceActionEvent/SgsSourceActionEvent that initially triggered the musical change.
      NewValue=the optional associated data

      See Also:
    • PROP_SONG_STRUCTURE

      public static final String PROP_SONG_STRUCTURE
      Fired when at least one song bar was added/removed/moved, or a time signature was changed.

      OldValue=the source ClsSourceActionEvent/SgsSourceActionEvent that initially triggered the change.
      NewValue=the optional associated data

      See Also:
  • Method Details