|
lmms
Cross-platform music production software
|
#include <MidiClip.h>
Public Types | |
| enum class | Type { BeatClip , MelodyClip } |
Public Slots | |
| void | addSteps () |
| void | cloneSteps () |
| void | removeSteps () |
| void | clear () |
| Public Slots inherited from lmms::Clip | |
| void | toggleMute () |
| Mutes this Clip. | |
Signals | |
| void | destroyedMidiClip (lmms::MidiClip *) |
| void | dataChanged () |
| Signals inherited from lmms::Clip | |
| void | lengthChanged () |
| void | positionChanged () |
| void | destroyedClip () |
| void | colorChanged () |
| Signals inherited from lmms::Model | |
| void | dataChanged () |
| void | dataUnchanged () |
| void | propertiesChanged () |
Public Member Functions | |
| MidiClip (InstrumentTrack *instrumentTrack) | |
| ~MidiClip () override | |
| void | init () |
| void | updateLength () override |
| Note * | addNote (const Note &_new_note, const bool _quant_pos=true) |
| NoteVector::const_iterator | removeNote (NoteVector::const_iterator it) |
| NoteVector::const_iterator | removeNote (Note *note) |
| Note * | noteAtStep (int _step) |
| void | rearrangeAllNotes () |
| void | clearNotes () |
| const NoteVector & | notes () const |
| Note * | addStepNote (int step) |
| void | setStep (int step, bool enabled) |
| void | reverseNotes (const NoteVector ¬es) |
| Horizontally flip the positions of the given notes. | |
| void | splitNotes (const NoteVector ¬es, TimePos pos) |
| void | splitNotesAlongLine (const NoteVector notes, TimePos pos1, int key1, TimePos pos2, int key2, bool deleteShortEnds) |
| Type | type () const |
| MidiClip * | previousMidiClip () const |
| MidiClip * | nextMidiClip () const |
| void | exportToXML (QDomDocument &doc, QDomElement &midiClipElement, bool onlySelectedNotes=false) |
| void | saveSettings (QDomDocument &_doc, QDomElement &_parent) override |
| void | loadSettings (const QDomElement &_this) override |
| QString | nodeName () const override |
| InstrumentTrack * | instrumentTrack () const |
| bool | empty () |
| gui::ClipView * | createView (gui::TrackView *_tv) override |
| MidiClip * | clone () override |
| Creates a copy of this clip. | |
| Public Member Functions inherited from lmms::Clip | |
| Clip (Track *track) | |
Creates a new clip for the given track track. | |
| ~Clip () override | |
| Destroys the given clip. | |
| Track * | getTrack () const |
| const QString & | name () const |
| void | setName (const QString &name) |
| QString | displayName () const override |
| const TimePos & | startPosition () const |
| TimePos | endPosition () const |
| const TimePos & | length () const |
| bool | hasTrackContainer () const |
| bool | isInPattern () const |
| bool | manuallyResizable () const |
| void | setAutoResize (const bool r) |
| Set whether a clip has been resized yet by the user or the knife tool. | |
| bool | getAutoResize () const |
| auto | color () const -> const std::optional< QColor > & |
| void | setColor (const std::optional< QColor > &color) |
| virtual void | movePosition (const TimePos &pos) |
| Move this Clip's position in time. | |
| virtual void | changeLength (const TimePos &length) |
| Change the length of this Clip. | |
| void | selectViewOnCreate (bool select) |
| bool | getSelectViewOnCreate () |
| TimePos | startTimeOffset () const |
| virtual void | setStartTimeOffset (const TimePos &startTimeOffset) |
| Public Member Functions inherited from lmms::Model | |
| Model (Model *parent, QString displayName=QString(), bool defaultConstructed=false) | |
| ~Model () override=default | |
| bool | isDefaultConstructed () const |
| Model * | parentModel () const |
| virtual void | setDisplayName (const QString &displayName) |
| virtual QString | fullDisplayName () const |
| Public Member Functions inherited from lmms::JournallingObject | |
| JournallingObject () | |
| ~JournallingObject () override | |
| jo_id_t | id () const |
| void | saveJournallingState (const bool newState) |
| void | restoreJournallingState () |
| void | addJournalCheckPoint () |
| QDomElement | saveState (QDomDocument &_doc, QDomElement &_parent) override |
| void | restoreState (const QDomElement &_this) override |
| bool | isJournalling () const |
| void | setJournalling (const bool _sr) |
| bool | testAndSetJournalling (const bool newState) |
| bool | isJournallingStateStackEmpty () const |
| Public Member Functions inherited from lmms::SerializingObject | |
| SerializingObject () | |
| virtual | ~SerializingObject () |
| void | setHook (SerializingObjectHook *_hook) |
| SerializingObjectHook * | hook () |
Protected Slots | |
| void | changeTimeSignature () |
Protected Member Functions | |
| MidiClip (const MidiClip &other) | |
| void | updatePatternTrack () |
| Protected Member Functions inherited from lmms::Clip | |
| Clip (const Clip &other) | |
| Creates a duplicate clip of the one provided. | |
| Protected Member Functions inherited from lmms::JournallingObject | |
| void | changeID (jo_id_t _id) |
Private Member Functions | |
| TimePos | beatClipLength () const |
| void | setType (Type _new_clip_type) |
| void | checkType () |
| void | resizeToFirstTrack () |
| MidiClip * | adjacentMidiClipByOffset (int offset) const |
Private Attributes | |
| InstrumentTrack * | m_instrumentTrack |
| Type | m_clipType |
| NoteVector | m_notes |
| int | m_steps |
Friends | |
| class | gui::MidiClipView |
Additional Inherited Members | |
| Static Public Member Functions inherited from lmms::Clip | |
| static bool | comparePosition (const Clip *a, const Clip *b) |
| Returns true if and only if a->startPosition() < b->startPosition(). | |
| static void | copyStateTo (Clip *src, Clip *dst) |
| Copies the state of a clip to another clip. | |
|
strong |
| lmms::MidiClip::MidiClip | ( | InstrumentTrack * | instrumentTrack | ) |
|
override |
|
protected |
| Note * lmms::MidiClip::addStepNote | ( | int | step | ) |
|
slot |
|
private |
|
private |
|
protectedslot |
|
private |
|
slot |
| void lmms::MidiClip::clearNotes | ( | ) |
|
inlineoverridevirtual |
|
slot |
|
overridevirtual |
Implements lmms::Clip.
|
signal |
|
signal |
| bool lmms::MidiClip::empty | ( | ) |
| void lmms::MidiClip::exportToXML | ( | QDomDocument & | doc, |
| QDomElement & | midiClipElement, | ||
| bool | onlySelectedNotes = false ) |
| void lmms::MidiClip::init | ( | ) |
|
inline |
|
overridevirtual |
Implements lmms::SerializingObject.
| MidiClip * lmms::MidiClip::nextMidiClip | ( | ) | const |
|
inlineoverridevirtual |
Implements lmms::SerializingObject.
| Note * lmms::MidiClip::noteAtStep | ( | int | _step | ) |
|
inline |
| MidiClip * lmms::MidiClip::previousMidiClip | ( | ) | const |
| void lmms::MidiClip::rearrangeAllNotes | ( | ) |
| NoteVector::const_iterator lmms::MidiClip::removeNote | ( | Note * | note | ) |
| NoteVector::const_iterator lmms::MidiClip::removeNote | ( | NoteVector::const_iterator | it | ) |
|
slot |
|
private |
| void lmms::MidiClip::reverseNotes | ( | const NoteVector & | notes | ) |
Horizontally flip the positions of the given notes.
|
overridevirtual |
Implements lmms::SerializingObject.
| void lmms::MidiClip::setStep | ( | int | step, |
| bool | enabled ) |
|
private |
| void lmms::MidiClip::splitNotes | ( | const NoteVector & | notes, |
| TimePos | pos ) |
| void lmms::MidiClip::splitNotesAlongLine | ( | const NoteVector | notes, |
| TimePos | pos1, | ||
| int | key1, | ||
| TimePos | pos2, | ||
| int | key2, | ||
| bool | deleteShortEnds ) |
|
inline |
|
overridevirtual |
Reimplemented from lmms::Clip.
|
protected |
|
friend |
|
private |
|
private |
|
private |
|
private |