|
TracktionEngine
|
#include <tracktion_MidiNote.h>
Public Types | |
| enum | NoteEdge { startEdge , endEdge } |
Public Member Functions | |
| MidiNote (const juce::ValueTree &) | |
| MidiNote (MidiNote &&)=default | |
| bool | operator== (const MidiNote &other) const noexcept |
| bool | operator!= (const MidiNote &other) const noexcept |
| BeatPosition | getBeatPosition () const noexcept |
| Start pos, in beats, from the start of the clip. | |
| BeatPosition | getStartBeat () const noexcept |
| BeatPosition | getEndBeat () const noexcept |
| BeatDuration | getLengthBeats () const noexcept |
| BeatRange | getRangeBeats () const noexcept |
| TimePosition | getPlaybackTime (NoteEdge, const MidiClip &, const GrooveTemplate *) const |
| BeatPosition | getPlaybackBeats (NoteEdge, const MidiClip &, const GrooveTemplate *) const |
| BeatPosition | getQuantisedStartBeat (const MidiClip &) const |
| Returns the start, quantised according to the clip's settings. | |
| BeatPosition | getQuantisedStartBeat (const MidiClip *) const |
| BeatPosition | getQuantisedEndBeat (const MidiClip &) const |
| BeatPosition | getQuantisedEndBeat (const MidiClip *) const |
| BeatDuration | getQuantisedLengthBeats (const MidiClip &) const |
| BeatDuration | getQuantisedLengthBeats (const MidiClip *) const |
| TimePosition | getEditStartTime (const MidiClip &) const |
| Gets the start of this note in terms of edit time, taking into account quantising, groove templates, clip offset, etc... | |
| TimePosition | getEditEndTime (const MidiClip &) const |
| TimeDuration | getLengthSeconds (const MidiClip &) const |
| TimeRange | getEditTimeRange (const MidiClip &) const |
| void | setStartAndLength (BeatPosition newStartBeat, BeatDuration newLengthInBeats, juce::UndoManager *) |
| int | getNoteNumber () const noexcept |
| void | setNoteNumber (int newNoteNumber, juce::UndoManager *) |
| int | getVelocity () const noexcept |
| void | setVelocity (int newVelocity, juce::UndoManager *) |
| int | getNoteOffVelocity () const noexcept |
| void | setNoteOffVelocity (int newOffVelocity, juce::UndoManager *) |
| int | getColour () const noexcept |
| void | setColour (int newColourIndex, juce::UndoManager *) |
| bool | isMute () const noexcept |
| void | setMute (bool shouldMute, juce::UndoManager *) |
Static Public Member Functions | |
| static juce::ValueTree | createNote (const MidiNote &, BeatPosition newStart, BeatDuration newLength) |
Public Attributes | |
| juce::ValueTree | state |
| tracktion::engine::MidiNote::MidiNote | ( | const juce::ValueTree & | ) |
|
default |
|
static |
|
noexcept |
References state.
|
noexcept |
References state.
|
noexcept |
Start pos, in beats, from the start of the clip.
|
noexcept |
Referenced by getRangeBeats().
|
noexcept |
Referenced by getRangeBeats().
|
noexcept |
|
noexcept |
References getEndBeat(), and getStartBeat().
| TimePosition tracktion::engine::MidiNote::getPlaybackTime | ( | NoteEdge | , |
| const MidiClip & | , | ||
| const GrooveTemplate * | |||
| ) | const |
| BeatPosition tracktion::engine::MidiNote::getPlaybackBeats | ( | NoteEdge | , |
| const MidiClip & | , | ||
| const GrooveTemplate * | |||
| ) | const |
| BeatPosition tracktion::engine::MidiNote::getQuantisedStartBeat | ( | const MidiClip & | ) | const |
Returns the start, quantised according to the clip's settings.
| BeatPosition tracktion::engine::MidiNote::getQuantisedStartBeat | ( | const MidiClip * | ) | const |
| BeatPosition tracktion::engine::MidiNote::getQuantisedEndBeat | ( | const MidiClip & | ) | const |
| BeatPosition tracktion::engine::MidiNote::getQuantisedEndBeat | ( | const MidiClip * | ) | const |
| BeatDuration tracktion::engine::MidiNote::getQuantisedLengthBeats | ( | const MidiClip & | ) | const |
| BeatDuration tracktion::engine::MidiNote::getQuantisedLengthBeats | ( | const MidiClip * | ) | const |
| TimePosition tracktion::engine::MidiNote::getEditStartTime | ( | const MidiClip & | ) | const |
Gets the start of this note in terms of edit time, taking into account quantising, groove templates, clip offset, etc...
| TimePosition tracktion::engine::MidiNote::getEditEndTime | ( | const MidiClip & | ) | const |
| TimeDuration tracktion::engine::MidiNote::getLengthSeconds | ( | const MidiClip & | ) | const |
| TimeRange tracktion::engine::MidiNote::getEditTimeRange | ( | const MidiClip & | ) | const |
| void tracktion::engine::MidiNote::setStartAndLength | ( | BeatPosition | newStartBeat, |
| BeatDuration | newLengthInBeats, | ||
| juce::UndoManager * | |||
| ) |
|
noexcept |
| void tracktion::engine::MidiNote::setNoteNumber | ( | int | newNoteNumber, |
| juce::UndoManager * | |||
| ) |
|
noexcept |
| void tracktion::engine::MidiNote::setVelocity | ( | int | newVelocity, |
| juce::UndoManager * | |||
| ) |
|
noexcept |
| void tracktion::engine::MidiNote::setNoteOffVelocity | ( | int | newOffVelocity, |
| juce::UndoManager * | |||
| ) |
|
noexcept |
| void tracktion::engine::MidiNote::setColour | ( | int | newColourIndex, |
| juce::UndoManager * | |||
| ) |
|
noexcept |
| void tracktion::engine::MidiNote::setMute | ( | bool | shouldMute, |
| juce::UndoManager * | |||
| ) |
| juce::ValueTree tracktion::engine::MidiNote::state |
Referenced by operator!=(), and operator==().