Uses of Class
org.jjazz.phrase.api.NoteEvent
Package
Description
The model of a music phrase for a single instrument, e.g. a bass phrase or a drums phrase.
-
Uses of NoteEvent in org.jjazz.phrase.api
Modifier and TypeMethodDescriptionAdd a new NoteEvent from the parameters.NoteEvent.clone()
Also clone the client properties.Phrase.first()
static NoteEvent
Phrase.getCeilNote
(float pos) Create a NoteEvent limit to be used as a ceil/max position as per NoteEvent.compareTo().NoteEvent.getCopyDur
(float durationInBeats) Get a copy with one parameter modified.NoteEvent.getCopyDurPos
(float durationInBeats, float posInBeats) Get a copy with the specified parameters modified.NoteEvent.getCopyPitch
(int pitch) Get a copy with one parameter modified.NoteEvent.getCopyPitchPos
(int pitch, float posInBeats) Get a copy with the specified parameters modified.NoteEvent.getCopyPitchVel
(int pitch, int velocity) Get a copy with the specified parameters modified.NoteEvent.getCopyPos
(float posInBeats) Get a copy with one parameter modified.NoteEvent.getCopyVel
(int velocity) Get a copy with one parameter modified.Grid.getFirstNote
(int cell) Get the first note of the cellstatic NoteEvent
Phrase.getFloorNote
(float pos) Create a NoteEvent limit to be used as a floor/min position as per NoteEvent.compareTo().static NoteEvent
Phrases.getHighestPitchNote
(Phrase p) static NoteEvent
Phrases.getHighestVelocityNote
(Phrase p) Grid.getLastNote
(int cell) Get the last note of the cellstatic NoteEvent
Phrases.getLowestPitchNote
(Phrase p) NoteEvent.AsNoteKey.getNoteEvent()
Phrase.last()
static NoteEvent
NoteEvent.loadAsString
(String s) Create a NoteEvent from the specified string.Move a NoteEvent.Move a NoteEvent.Phrase.pollFirst()
Phrase.pollLast()
Modifier and TypeMethodDescriptionComparator<? super NoteEvent>
Phrase.comparator()
Phrase.descendingIterator()
Phrase.descendingSet()
Grid.getCellNotes
(int cell) Get the note of the specified cell.Grid.getCellNotes
(IntRange range) Get the notes in the specified cell range.Phrases.getCrossingNotes
(Phrase p, float posInBeats, boolean strict) Get the phrase notes still ringing at specified position.Phrase.getNotes()
Phrase.getNotes
(Predicate<NoteEvent> tester, FloatRange range, boolean excludeUpperBound) Get the NoteEvents which match the tester and whose start position is in the [posFrom:posTo] or [posFrom:posTo[ range.Phrases.getNotesByPitch
(Phrase p, Predicate<NoteEvent> tester) Get phrase notes matching the specified tester and return them per pitch.Grid.getPredicate()
Phrase.iterator()
Move NoteEvents.Grid.removeNotes
(int cell) Convenient method that just return removeNotes(new IntRange(cell, cell)).Grid.removeNotes
(IntRange range) Remove all notes in the specified cells range.Phrase.subSet
(NoteEvent fromElement, boolean fromInclusive, NoteEvent toElement, boolean toInclusive) Phrase.subSet
(FloatRange range, boolean excludeUpperBound) A subset of all notes in the specified range.Modifier and TypeMethodDescriptionboolean
Add a NoteEvent.boolean
Add a NoteEvent.boolean
SizedPhrase.canAddNote
(NoteEvent ne) Overridden to check NoteEvent is within the beat range (including the upper bound).int
NoteEvent.compareToAsPosition
(NoteEvent n) Compare using only position.boolean
NoteEvent.equalsAsNoteNearPosition
(NoteEvent ne, float nearWindow) Check for equality as a Note tolerating slight differences in position and duration.boolean
Move a NoteEvent.Move a NoteEvent.void
Replace a NoteEvent by another one.void
Replace a NoteEvent by another one.void
Grid.replaceNote
(NoteEvent oldNote, NoteEvent newNote) Replace a note by another one at same position.static String
NoteEvent.saveAsString
(NoteEvent ne) Save the specified NoteEvent as a string.Phrase.subSet
(NoteEvent fromElement, boolean fromInclusive, NoteEvent toElement, boolean toInclusive) Modifier and TypeMethodDescriptionboolean
Phrase.addAll
(Collection<? extends NoteEvent> collection) Add several NoteEvents.boolean
Phrase.addAll
(Collection<? extends NoteEvent> collection, boolean isAdjusting) Add several NoteEvents.Phrase.getNotes
(Predicate<NoteEvent> tester, FloatRange range, boolean excludeUpperBound) Get the NoteEvents which match the tester and whose start position is in the [posFrom:posTo] or [posFrom:posTo[ range.Phrases.getNotesByPitch
(Phrase p, Predicate<NoteEvent> tester) Get phrase notes matching the specified tester and return them per pitch.Get a new Phrase with only filtered notes processed by the specified mapper.Get a new Phrase with only filtered notes processed by the specified mapper.Get a new Phrase with only filtered notes processed by the specified mapper.Overridden to return a SourcePhrase.Overridden to return a SourcePhrase.Overridden to return a SourcePhrase.Move NoteEvents.void
Transform the notes which satisfy the specified tester.void
Transform the notes which satisfy the specified tester.void
Transform the notes which satisfy the specified tester.void
Phrase.replaceAll
(Map<NoteEvent, NoteEvent> mapOldNew, boolean isAdjusting) Replace NoteEvents.void
Phrase.replaceAll
(Map<NoteEvent, NoteEvent> mapOldNew, boolean isAdjusting) Replace NoteEvents.ModifierConstructorDescriptionCreate a new NoteEvent from another NoteEvent.ModifierConstructorDescriptionGrid
(Phrase p, FloatRange beatRange, int nbCellsPerBeat, Predicate<NoteEvent> filter) Obtain a grid for the specified Phrase p. -
Uses of NoteEvent in org.jjazz.pianoroll.api
Modifier and TypeMethodDescriptionCopyNoteBuffer.getFirstNote()
CopyNoteBuffer.getLastNote()
NoteView.getModel()
Modifier and TypeMethodDescriptionNoteView.getNotes
(Collection<NoteView> noteViews) Get a list of notes from a collection of NoteViews.CopyNoteBuffer.getNotesCopy
(float targetStartPosition) Return a copy of the buffer notes adjusted so that the first note is at targetStartPosition.Modifier and TypeMethodDescriptionint
Rely on NoteEvent.compareTo() but returns 0 only if noteEvent==ne.PianoRollEditor.getNoteView
(NoteEvent ne) Get the NoteView associated to the specified NoteEvent.boolean
PianoRollEditor.isNoteSelected
(NoteEvent ne) void
PianoRollEditor.selectNote
(NoteEvent ne, boolean b) void
Modifier and TypeMethodDescriptionvoid
Put items in the buffer in ItemMode.void
PianoRollEditor.selectNotes
(Collection<NoteEvent> notes, boolean b) Select or unselect NoteViews.