Uses of Interface
org.jjazz.songstructure.api.SongPart
Package
Description
Music controller: control the overall playback of a song.
Objects and helper methods to generate musical phrases from the song and form the final backing track (see SongSequenceBuilder).
Describe the context for which a backing track should be generated: which (part of the) song, which MidiMix.
Manage the creation/destruction of editors for a new/closed song, plus related actions (eg duplicate song).
The model of a song structure, ie a list of SongParts.
The possible change events received by a SongStructure change listener.
The graphical editor window of a song part.
Service provider for indvidual RhythmParameter editor components.
The SongStructure graphical editor.
The graphical RpViewer component to represent a RhythmParameter value within a SptViewer.
Service provider to provider RpViewer instances for each type of RhythmParameter.
The graphical SongPart viewer component, which holds the RpViewers components.
Service provider to provide SptViewer instances.
-
Uses of SongPart in org.jjazz.musiccontrol.api
Modifier and TypeMethodDescriptionMusicController.getCurrentSongPart()
The current SongPart being played.Modifier and TypeMethodDescriptionvoid
PlaybackListener.songPartChanged
(SongPart spt) Called on SongPart change.void
PlaybackListenerAdapter.songPartChanged
(SongPart newSpt) -
Uses of SongPart in org.jjazz.pianoroll.api
Modifier and TypeMethodDescriptionPianoRollEditorTopComponent.getSongPart()
The edited SongPart, or null if the whole song is edited.Modifier and TypeMethodDescriptionvoid
PianoRollEditorTopComponent.setModelForSongPartCustomPhrase
(SongPart spt, Phrase p, int channel, DrumKit.KeyMap keyMap) Configure the TopComponent to edit a custom phrase of a song part. -
Uses of SongPart in org.jjazz.rhythmmusicgeneration.api
Modifier and TypeMethodDescriptionSongChordSequence.getSongParts()
Get the SongParts (whole or partially) included in this SongChordSequence.Modifier and TypeMethodDescriptionSongChordSequence.getSptBarRange
(SongPart spt) Get the intersection between the specified SongPart and the bar range of this ChordSequence. -
Uses of SongPart in org.jjazz.songcontext.api
Modifier and TypeMethodDescriptionSongContext.getSongParts()
Get all the song parts (at the time of this object creation) which are contained in this context.Modifier and TypeMethodDescriptionboolean
Check if the specified spt has at least one bar in the range of this context.SongContext.getSptBarRange
(SongPart spt) Get the intersection between the song part bar range and this SongContext bar range.SongContext.getSptBeatRange
(SongPart spt) Get the intersection between the song part beat range and this SongContext beat range.SongContext.getSptTickRange
(SongPart spt) Get the range of ticks of spt belonging to this context.ModifierConstructorDescriptionSongPartContext
(Song s, MidiMix mix, SongPart spt) Create a SongPartContext. -
Uses of SongPart in org.jjazz.songeditormanager.api
Modifier and TypeMethodDescriptionSongEditorManager.showPianoRollEditorForSptCustomPhrase
(Song song, MidiMix midiMix, SongPart spt, RhythmVoice rv, Phrase p) Open (or show) the song's PianoRollEditor and set it up to edit a custom phrase of a SongPart. -
Uses of SongPart in org.jjazz.songstructure.api
Modifier and TypeMethodDescriptionSongPart.clone
(Rhythm r, int startBarIndex, int nbBars, CLI_Section parentSection) Create a new SongPart with same name based on this object.SongStructure.createSongPart
(Rhythm r, String name, int startBarIndex, int nbBars, CLI_Section parentSection, boolean reusePrevParamValues) Create a new SongPart instance whose container is this object.SongStructure.getSongPart
(int absoluteBarIndex) Get the SongPart which contains a specific bar.SongPartParameter.getSpt()
Modifier and TypeMethodDescriptionSongStructure.getSongParts()
SongStructure.getSongParts
(Predicate<SongPart> tester) Get the SongParts which match the tester.Modifier and TypeMethodDescriptionSongStructure.getSptItemPosition
(SongPart spt, ChordLeadSheetItem<?> clsItem) Get the absolute position in the song structure of a chordleadsheet item referred to by the specified song part.<T> void
SongStructure.setRhythmParameterValue
(SongPart spt, RhythmParameter<T> rp, T value) Change the value of a specific RhythmParameter.Modifier and TypeMethodDescriptionvoid
SongStructure.addSongParts
(List<SongPart> spts) Add one by one a list of SongParts.void
SongStructure.authorizeAddSongParts
(List<SongPart> spts) Check if add operation is doable.void
SongStructure.authorizeRemoveSongParts
(List<SongPart> spts) Check if remove operation is doable.void
SongStructure.authorizeReplaceSongParts
(List<SongPart> oldSpts, List<SongPart> newSpts) Check if replace operation is doable.SongStructure.getSongParts
(Predicate<SongPart> tester) Get the SongParts which match the tester.void
SongStructure.removeSongParts
(List<SongPart> spts) Remove some SongParts.void
SongStructure.replaceSongParts
(List<SongPart> oldSpts, List<SongPart> newSpts) Replace SongParts by other SongParts.void
SongStructure.resizeSongParts
(Map<SongPart, Integer> mapSptSize) Change the size in bars of SongParts.void
SongStructure.setSongPartsName
(List<SongPart> spts, String name) Change the name of one or more SongParts. -
Uses of SongPart in org.jjazz.songstructure.api.event
Modifier and TypeMethodDescriptionSptResizedEvent.getMapOldSptSize()
SptReplacedEvent.getNewSpts()
SgsChangeEvent.getSongParts()
ModifierConstructorDescriptionRpValueChangedEvent
(SongStructure src, SongPart spt, RhythmParameter<?> rp, Object oldValue, Object newValue) Create an event.SgsChangeEvent
(SongStructure src, SongPart spt) ModifierConstructorDescriptionSgsChangeEvent
(SongStructure src, Collection<SongPart> spts) SptAddedEvent
(SongStructure src, List<SongPart> addedSpts) SptRemovedEvent
(SongStructure src, List<SongPart> removedSpts) SptRenamedEvent
(SongStructure src, Collection<SongPart> renamedSpts) Some SongParts names have been changedSptReplacedEvent
(SongStructure src, List<SongPart> oldSpts, List<SongPart> newSpts) SptResizedEvent
(SongStructure src, Map<SongPart, Integer> mapOldSptSize) Some SongParts have been resized. -
Uses of SongPart in org.jjazz.spteditor.api
ModifierConstructorDescriptionRpEditor
(SongPart spt, RhythmParameter<?> rp, RpEditorComponent editor) Initialize the RpEditor for the specified RhythmParameter with the specified editor. -
Uses of SongPart in org.jjazz.spteditor.spi
Modifier and TypeMethodDescriptionDefaultRpEditorComponentFactory.createComponent
(Song song, DefaultRpEditorComponentFactory.Type type, SongPart spt, RhythmParameter<?> rp) Create a RpEditorComponent of the specified type.RpEditorComponentFactory.createComponent
(Song song, SongPart spt, RhythmParameter<?> rp) Create a RpEditorComponent adapted to rp class (whatever the containing rhythm). -
Uses of SongPart in org.jjazz.ss_editor.api
Modifier and TypeMethodDescriptionabstract SongPart
SS_Editor.getFocusedSongPart
(boolean includeFocusedRhythmParameter) Get the focused SongPart, if any.Modifier and TypeMethodDescriptionSongPartCopyBuffer.get
(SongStructure targetSgs, int targetStartBarIndex) Return a copy of the SongParts adapted to the specified targetSgs.SS_SelectionUtilities.getIndirectlySelectedSongParts()
The list of selected SongParts (ordered by startBarIndex), or corresponding to the selected RhythmParameters if RhythmParameters are selected.SS_SelectionUtilities.getSelectedSongParts()
Modifier and TypeMethodDescriptionabstract Rectangle
SS_Editor.getRpViewerRectangle
(SongPart spt, RhythmParameter<?> rp) Get the bounds of the component representing the specified RhythmParameter.SS_SelectionUtilities.getSelectedSongPartParameter
(SongPart spt) abstract Rectangle
SS_Editor.getSptViewerRectangle
(SongPart spt) Get the bounds of the component representing the specified SongPart.boolean
SS_SelectionUtilities.isRhythmParameterSelected
(SongPart spt, RhythmParameter<?> rp) boolean
SS_SelectionUtilities.isSongPartSelected
(SongPart spt) abstract void
SS_Editor.makeSptViewerVisible
(SongPart spt) Try to scroll so that the specified song part becomes visible.abstract void
SS_Editor.selectRhythmParameter
(SongPart spt, RhythmParameter<?> rp, boolean b) Select a specific RhythmParameter.abstract void
SS_Editor.selectSongPart
(SongPart spt, boolean b) Select a songpart.abstract void
SS_Editor.setFocusOnRhythmParameter
(SongPart spt, RhythmParameter<?> rp) Set the focus on a specific RhythmParameter.abstract void
SS_Editor.setFocusOnSongPart
(SongPart spt) Set the focus on a specific SongPart.Modifier and TypeMethodDescriptionvoid
Put a copy of each SongPart (and a copy of its parent section) in the buffer. -
Uses of SongPart in org.jjazz.ss_editor.rpviewer.api
Modifier and TypeMethodDescriptionMeterRpRenderer.getSongPart()
RpViewerRenderer.getSongPart()
The SongPart context.StringRpRenderer.getSongPart()
RpViewer.getSptModel()
Modifier and TypeMethodDescription<E> void
RpViewerController.rhythmParameterEdit
(SongPart spt, RhythmParameter<E> rp, E rpValue) User has directly edited a RhythmParameter value, probably from a RpViewerEditableRenderer.void
RpViewerController.rhythmParameterEditWithCustomDialog
(SongPart spt, RhythmParameter<?> rp) User wants to use the custom edit dialog of the specified RhythmParameter.ModifierConstructorDescriptionMeterRpRenderer
(Song song, SongPart spt) RpViewer
(SongPart spt, RhythmParameter<?> rp, RpViewerSettings settings, RpViewerRenderer renderer) StringRpRenderer
(Song song, SongPart spt, Supplier<String> stringSupplier, StringRpRendererSettings settings) -
Uses of SongPart in org.jjazz.ss_editor.rpviewer.spi
Modifier and TypeMethodDescriptionDefaultRpViewerRendererFactory.getRpViewerRenderer
(Song song, SongPart spt, RhythmParameter<?> rp, DefaultRpViewerRendererFactory.Type type, RpViewerSettings settings) Get the RpViewerRenderer of the specified type.RpViewerRendererFactory.getRpViewerRenderer
(Song song, SongPart spt, RhythmParameter<?> rp, RpViewerSettings settings) Get a RpViewerRenderer instance adapted to the specified RhyhtmParameter. -
Uses of SongPart in org.jjazz.ss_editor.spi
Modifier and TypeMethodDescriptionvoid
RhythmSelectionDialog.RhythmPreviewProvider.setContext
(Song sg, SongPart spt) Set the context for which the object will preview rhythms. -
Uses of SongPart in org.jjazz.ss_editor.sptviewer.api
Modifier and TypeMethodDescriptionvoid
SptViewerMouseListener.editSongPartName
(SongPart spt) User wants to edit the specified songpart's name.void
SptViewerMouseListener.editSongPartRhythm
(SongPart spt) User wants to edit the specified songpart's rhythm.void
SptViewerMouseListener.rhythmParameterClicked
(MouseEvent e, SongPart spt, RhythmParameter<?> rp) void
SptViewerMouseListener.rhythmParameterDragged
(MouseEvent e, SongPart spt, RhythmParameter<?> rp) void
SptViewerMouseListener.rhythmParameterReleased
(MouseEvent e, SongPart spt, RhythmParameter<?> rp) void
SptViewerMouseListener.rhythmParameterWheelMoved
(MouseWheelEvent e, SongPart spt, RhythmParameter<?> rp) void
SptViewerMouseListener.songPartClicked
(MouseEvent e, SongPart spt, boolean multiSelect) void
SptViewerMouseListener.songPartDragged
(MouseEvent e, SongPart spt) void
SptViewerMouseListener.songPartReleased
(MouseEvent e, SongPart spt) -
Uses of SongPart in org.jjazz.ss_editor.sptviewer.spi
Modifier and TypeMethodDescriptionSptViewerFactory.createSptViewer
(Song song, SongPart spt, SptViewerSettings settings, DefaultRpViewerRendererFactory factory)