Class SongMetaEvents
- All Implemented Interfaces:
PropertyChangeListener,VetoableChangeListener,EventListener,ClsChangeListener,SgsChangeListener
Whenever possible change events are fired when all low-level changes are complete, in order to minimize the number of fired events.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA special ClsActionEvent which stores its related SgsActionEvent sub-events.static classA special SgsActionEvent which stores its related ClsActionEvent sub-events. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringFired when the song modification initiated by a ChordLeadSheet/SongStructure API method is complete.static final StringFired when the "musical content" of the song is modified, i.e. any related music generation process should be updated or restarted.static final StringFired when at least one song bar was added/removed/moved, or a time signature was changed. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddPropertyChangeListener(String propertyName, PropertyChangeListener l) voidProcess the change.static SongMetaEventsgetInstance(Song song) getSong()voidvoidvoidremovePropertyChangeListener(String propertyName, PropertyChangeListener l) voidProcess the change.void
-
Field Details
-
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
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
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
-
getInstance
-
getSong
-
addPropertyChangeListener
-
addPropertyChangeListener
-
removePropertyChangeListener
-
removePropertyChangeListener
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
vetoableChange
- Specified by:
vetoableChangein interfaceVetoableChangeListener- Throws:
PropertyVetoException
-
chordLeadSheetChanged
Description copied from interface:ClsChangeListenerProcess the change.Note that this method might be called outside of the EDT.
- Specified by:
chordLeadSheetChangedin interfaceClsChangeListener- Parameters:
event-- Throws:
UnsupportedEditException- If a ClsVetoableChangeEvent is not authorized by a listener.
-
songStructureChanged
Description copied from interface:SgsChangeListenerProcess the change.Note that this method might be called outside of the EDT.
- Specified by:
songStructureChangedin interfaceSgsChangeListener- Parameters:
event-
-