Class SongMetaEvents
- All Implemented Interfaces:
PropertyChangeListener, EventListener, ClsChangeListener, SgsChangeListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringFired when the song's ChordLeadSheet or SongStructure has changed.static final StringFired when the "musical content" of the song is modified, i.e. a new music generation task is needed.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.
-
Field Details
-
PROP_CLS_SGS_CHANGE
Fired when the song's ChordLeadSheet or SongStructure has changed.OldValue=the source ClsChangeEvent or SgsChangeEvent
- See Also:
-
PROP_MUSIC_GENERATION
Fired when the "musical content" of the song is modified, i.e. a new music generation task is needed.For example source changes can be chord symbol changes, inserted bars, rhythm parameter value changes -but not a section name change. For ClsChangeEvents which normally generate a SgsChange (e.g. SectionAddedEvent -> SptAddedEvent), the PROP_MUSIC_GENERATION event is fired only for the SgsChangeEvent.
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 source SongPropertyChangeEvent or ClsChangeEvent or SgsChangeEvent
- See Also:
-
PROP_SIZE_IN_BEATS
Fired when at least one song bar was added/removed/moved, or a time signature was changed.OldValue=the source ClsChangeEvent or SgsChangeEvent
- See Also:
-
-
Method Details
-
getInstance
-
getSong
-
addPropertyChangeListener
-
addPropertyChangeListener
-
removePropertyChangeListener
-
removePropertyChangeListener
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
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-
-