Uses of Class
org.jjazz.phrase.api.Phrase
Package
Description
Models to represent a playback session played by the MusicController.
The model of a music phrase for a single instrument, e.g. a bass phrase or a drums phrase.
Parameters of a rhythm which alter the way the backing track is rendered.
Objects and helper methods to generate musical phrases from the song and form the final backing track (see SongSequenceBuilder).
The model of a song, which mainly contains a ChordLeadSheet and a SongStructure.
Manage the creation/destruction of editors for a new/closed song, plus related actions (eg duplicate song).
-
Uses of Phrase in org.jjazz.musiccontrol.api.playbacksession
Modifier and TypeMethodDescriptionUpdatableSongSession.getCurrentRvPhraseMap()
Get the current Phrase for each RhythmVoice track.UpdatableSongSession.Update.getMapRvPhrases()
The updated phrases for one or more RhythmVoices.UpdatableSongSession.getOriginalRvPhraseMap()
A map giving the original resulting Phrase for each RhythmVoice, in the current context.BaseSongSession.getRvPhraseMap()
A map giving the resulting Phrase for each RhythmVoice, in the current context.ModifierConstructorDescriptionUpdate
(Map<RhythmVoice, Phrase> mapRvPhrases, ControlTrack controlTrack) -
Uses of Phrase in org.jjazz.phrase.api
Modifier and TypeClassDescriptionclass
A Phrase which has a size (beat range) and a time signature.class
A source Phrase is a Phrase associated to a source chord symbol and possibly with some client properties.Modifier and TypeMethodDescriptionPhrase.clone()
A deep clone: returned phrase contains clones of the original NoteEvents.static Phrase
PhraseSamples.getBasicDrumPhrase
(float startPosInBeats, int nbBars, TimeSignature ts, int channel) Get a basic drums phrase.static Phrase
PhraseSamples.getCscalePhrase
(int channel, float startPos, float nbBeats) Build a Phrase with 12 notes C-D-E-F-G-A-B-C that fit into nbBeats.Grid.getPhrase()
Get a new Phrase with only filtered notes processed by the specified mapper.Phrase.getProcessedPhrasePitch
(Function<Integer, Integer> f) Get a new phrase with all notes changed.Phrase.getProcessedPhraseVelocity
(Function<Integer, Integer> f) Get a new phrase with notes velocity changed.static Phrase
PhraseSamples.getRandomPhrase
(int channel, int nbBars, int nbNotes) Get a phrase with random notes at random positions.static Phrase
Phrases.getSlice
(Phrase p, FloatRange range, boolean keepLeft, int cutRight, float beatWindow) Get a new phrase with cloned NoteEvents but keeping only the notes in the specified beat range, taking into account possible live-played/non-quantized notes via the beatWindow parameter.static Phrase
Phrases.importPhrase
(File midiFile, int channel, boolean isDrums, boolean strictChannel, boolean notifyUserIfNoChannelNotes) Parse a Midi file to extract one phrase from the specified Midi channel notes (notes can be on any track).static Phrase
Phrase.loadAsString
(String s) Create a Phrase from the specified string.Modifier and TypeMethodDescriptionPhrases.getPhrases
(int tracksPPQ, Track[] tracks, Integer... channels) Parse all tracks to build one phrase per used channel.Modifier and TypeMethodDescriptionvoid
Clone NoteEvents from the specified Phrase and add them to this Phrase.void
Add a Phrase from the specified Phrase.static void
Phrases.addMidiEvents
(Phrase p, List<MidiEvent> midiEvents, float posInBeatsOffset, boolean ignoreChannel) Add NoteEvents from a list of NOTE_ON/OFF Midi events at MidiConst.PPQ_RESOLUTION.boolean
Phrase.equalsNearPosition
(Phrase p, float nearWindow) Compare the notes (pitch, velocity), but tolerate slight differences in position and duration.static void
Create MidiEvents for each phrase note then add them to the specified track.static Chord
Get a chord made of all unique pitch NoteEvents present in the phrase.Phrases.getCrossingNotes
(Phrase p, float posInBeats, boolean strict) Get the phrase notes still ringing at specified position.static NoteEvent
Phrases.getHighestPitchNote
(Phrase p) static NoteEvent
Phrases.getHighestVelocityNote
(Phrase p) static NoteEvent
Phrases.getLowestPitchNote
(Phrase p) Phrases.getNotesByPitch
(Phrase p, Predicate<NoteEvent> tester) Get phrase notes matching the specified tester and return them per pitch.static Phrase
Phrases.getSlice
(Phrase p, FloatRange range, boolean keepLeft, int cutRight, float beatWindow) Get a new phrase with cloned NoteEvents but keeping only the notes in the specified beat range, taking into account possible live-played/non-quantized notes via the beatWindow parameter.static void
Phrases.limitPitch
(Phrase p, int lowLimit, int highLimit) Change the octave of phrase notes whose pitch is above highLimit or below lowLimit.static void
Phrases.removeOverlappedNotes
(Phrase p) Remove overlapped phrase notes with identical pitch.static String
Phrase.saveAsString
(Phrase p) Save the specified Phrase as a string.static void
Phrases.silence
(Phrase p, FloatRange range, boolean cutLeft, boolean keepRight, float beatWindow) Remove all phrase notes whose start position is in the specified beat range, taking into account possible live-played/non-quantized notes via the beatWindow parameter.static void
Phrases.silenceAfter
(Phrase p, float posInBeats) Make sure there is no note ringing in the phrase after the specified position.Phrases.toMidiEvents
(Phrase p) Get the phrase notes as MidiEvents.ModifierConstructorDescriptionGrid
(Phrase p, FloatRange beatRange, int nbCellsPerBeat, Predicate<NoteEvent> filter) Obtain a grid for the specified Phrase p.SourcePhrase
(Phrase p, ExtChordSymbol ecs) Build a new SourcePhrase . -
Uses of Phrase in org.jjazz.phrase.api.ui
Modifier and TypeMethodDescriptionvoid
PhraseBirdsEyeViewComponent.setModel
(Phrase model, TimeSignature ts, FloatRange beatRange) Set the Phrase model. -
Uses of Phrase in org.jjazz.pianoroll.api
Modifier and TypeMethodDescriptionPianoRollEditor.getModel()
Get the Phrase edited by this editor.Modifier and TypeMethodDescriptionPianoRollEditor.getGhostPhrases()
Get the optional view-only phrases shown faded in the background of the editor.Modifier and TypeMethodDescriptionvoid
PianoRollEditor.setModel
(Phrase p, FloatRange beatRange, int phraseStartBar, int rulerStartBar, int channel, NavigableMap<Float, TimeSignature> mapPosTs, DrumKit.KeyMap kMap) Set the edited model.void
PianoRollEditorTopComponent.setModelForSongPartCustomPhrase
(SongPart spt, Phrase p, int channel, DrumKit.KeyMap keyMap) Configure the TopComponent to edit a custom phrase of a song part.void
PianoRollEditorTopComponent.setModelForUserPhrase
(Phrase p, int channel, DrumKit.KeyMap keyMap) Configure the TopComponent to edit a user phrase on the whole song.Modifier and TypeMethodDescriptionvoid
PianoRollEditor.setGhostPhases
(Map<Integer, Phrase> mapChannelPhrases) Optional view-only phrases shown faded in the background of the editor. -
Uses of Phrase in org.jjazz.rhythm.api.rhythmparameters
Modifier and TypeMethodDescriptionRP_SYS_CustomPhraseValue.getCustomizedPhrase
(RhythmVoice rv) Get the custom phrase for the specified RhythmVoice.RP_SYS_CustomPhraseValue.removeCustomizedPhrase
(RhythmVoice rv) Remove the customized phrase for the specified RhythmVoice.Modifier and TypeMethodDescriptionvoid
RP_SYS_CustomPhraseValue.setCustomizedPhrase
(RhythmVoice rv, Phrase p) Set the customized phrase for the specified RhythmVoice. -
Uses of Phrase in org.jjazz.rhythmmusicgeneration.api
Modifier and TypeMethodDescriptionstatic Phrase
Utilities.fitBassPhrase2ChordSymbol
(SourcePhrase pSrc, ExtChordSymbol ecsDest) Adapt the notes from a bass melody-oriented source phrase to a destination chord symbol.static Phrase
Utilities.fitChordPhrase2ChordSymbol
(SourcePhrase pSrc, ExtChordSymbol ecsDest) Adapt the notes from a chord-oriented source phrase to a destination chord symbol.static Phrase
Utilities.fitMelodyPhrase2ChordSymbol
(SourcePhrase pSrc, ExtChordSymbol ecsDest, boolean chordMode) Adapt the notes from a melody-oriented source phrase to a destination chord symbol.static Phrase
DummyGenerator.getBasicBassPhrase
(float startPosInBeats, SimpleChordSequence cSeq, int channel) Get a basic bass phrase.Modifier and TypeMethodDescriptionSongSequenceBuilder.buildMapRvPhrase
(boolean silent) Build the RhythmVoice phrases for the defined context.DummyGenerator.generateMusic
(SongContext sgContext) MusicGenerationQueue.Result.mapRvPhrases()
Returns the value of themapRvPhrases
record component.Modifier and TypeMethodDescriptionvoid
AnticipatedChordProcessor.anticipateChords_Drums
(Phrase p, DrumKit kit) Process the anticipatable chords for Drums phrase p.void
AnticipatedChordProcessor.anticipateChords_Mono
(Phrase p) Process the anticipatable chords for a monophonic phrase p (eg a bass phrase).void
AnticipatedChordProcessor.anticipateChords_Poly
(Phrase p) Process the anticipatable chords for a polyphonic phrase p (eg a piano phrase).void
AccentProcessor.processAccentBass
(Phrase p) Process the accents of a bass phrase.void
AccentProcessor.processAccentChord
(Phrase p) Process accents of a chord oriented phrase (polyphonic).void
AccentProcessor.processAccentDrums
(Phrase p, DrumKit kit) Process a drums phrase (not percussion).void
AccentProcessor.processHoldShotChord
(Phrase p, AccentProcessor.HoldShotMode hsMode) Process the Hold/Shot of a chord-based phrase (polyphonic)void
AccentProcessor.processHoldShotDrums
(Phrase p, DrumKit kit, AccentProcessor.HoldShotMode hsMode) Process Hold/Shots for a drums phrase (not percussion).void
AccentProcessor.processHoldShotMono
(Phrase p, AccentProcessor.HoldShotMode hsMode) Process the Hold/Shot of a monophonic phrase (bass or others).Modifier and TypeMethodDescriptionSongSequenceBuilder.buildSongSequence
(Map<RhythmVoice, Phrase> rvPhrases) Build the SongSequence from the specified RhythmVoice phrases for the defined context.ModifierConstructorDescriptionResult
(SongContext songContext, Map<RhythmVoice, Phrase> mapRvPhrases, Exception userException) Creates an instance of aResult
record class. -
Uses of Phrase in org.jjazz.rhythmmusicgeneration.spi
Modifier and TypeMethodDescriptionMusicGenerator.generateMusic
(SongContext context) Generate the note Phrases which correspond to a musical accompaniment for a given rhythm. -
Uses of Phrase in org.jjazz.song.api
Modifier and TypeMethodDescriptionSong.getUserPhrase
(String name) Get the user phrase associated to specified name.Song.removeUserPhrase
(String name) Remove the user phrase associated to name.Modifier and TypeMethodDescriptionvoid
Song.setUserPhrase
(String name, Phrase p) Set the user phrase for the specified name. -
Uses of Phrase 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 Phrase in org.jjazz.testplayerservice.spi
Modifier and TypeMethodDescriptionvoid
TestPlayer.playTestNotes
(Phrase phrase, Runnable endAction) Play the test notes from specified phrase.