|
lmms
Cross-platform music production software
|
#include <Note.h>
Public Types | |
| enum class | Type { Regular = 0 , Step } |
| enum class | ParameterType { Detuning = 0 } |
| Types of per-note automation. Currently only detuning/pitch bending is supported. More... | |
Public Member Functions | |
| Note (const TimePos &length=TimePos(0), const TimePos &pos=TimePos(0), int key=DefaultKey, volume_t volume=DefaultVolume, panning_t panning=DefaultPanning, std::shared_ptr< DetuningHelper > detuning=nullptr) | |
| Note (const Note ¬e) | |
| ~Note () override | |
| Note & | operator= (const Note ¬e) |
| Note * | clone () const |
| Performs a deep copy and returns an owning raw pointer. | |
| Type | type () const |
| void | setType (Type t) |
| AutomationClip * | parameterCurve (ParameterType paramType) |
| void | setSelected (const bool selected) |
| void | setOldKey (const int oldKey) |
| void | setOldPos (const TimePos &oldPos) |
| void | setOldLength (const TimePos &oldLength) |
| void | setIsPlaying (const bool isPlaying) |
| void | setLength (const TimePos &length) |
| void | setPos (const TimePos &pos) |
| void | setKey (const int key) |
| virtual void | setVolume (volume_t volume) |
| virtual void | setPanning (panning_t panning) |
| void | quantizeLength (const int qGrid) |
| void | quantizePos (const int qGrid) |
| bool | selected () const |
| int | oldKey () const |
| TimePos | oldPos () const |
| TimePos | oldLength () const |
| bool | isPlaying () const |
| TimePos | endPos () const |
| const TimePos & | length () const |
| const TimePos & | pos () const |
| TimePos | pos (TimePos basePos) const |
| int | key () const |
| volume_t | getVolume () const |
| int | midiVelocity (int midiBaseVelocity) const |
| panning_t | getPanning () const |
| QString | nodeName () const override |
| const std::shared_ptr< DetuningHelper > & | detuning () const |
| bool | hasDetuningInfo () const |
| bool | withinRange (int tickStart, int tickEnd) const |
| void | createDetuning () |
| Public Member Functions inherited from lmms::SerializingObject | |
| SerializingObject () | |
| virtual | ~SerializingObject () |
| virtual QDomElement | saveState (QDomDocument &_doc, QDomElement &_parent) |
| virtual void | restoreState (const QDomElement &_this) |
| void | setHook (SerializingObjectHook *_hook) |
| SerializingObjectHook * | hook () |
Static Public Member Functions | |
| static bool | lessThan (const Note *lhs, const Note *rhs) |
| static QString | classNodeName () |
| static TimePos | quantized (const TimePos &m, const int qGrid) |
Protected Member Functions | |
| void | saveSettings (QDomDocument &doc, QDomElement &parent) override |
| void | loadSettings (const QDomElement &_this) override |
Private Attributes | |
| bool | m_selected |
| int | m_oldKey |
| TimePos | m_oldPos |
| TimePos | m_oldLength |
| bool | m_isPlaying |
| int | m_key |
| volume_t | m_volume |
| panning_t | m_panning |
| TimePos | m_length |
| TimePos | m_pos |
| std::shared_ptr< DetuningHelper > | m_detuning |
| Type | m_type = Type::Regular |
|
strong |
|
strong |
| lmms::Note::Note | ( | const TimePos & | length = TimePos( 0 ), |
| const TimePos & | pos = TimePos( 0 ), | ||
| int | key = DefaultKey, | ||
| volume_t | volume = DefaultVolume, | ||
| panning_t | panning = DefaultPanning, | ||
| std::shared_ptr< DetuningHelper > | detuning = nullptr ) |
| lmms::Note::Note | ( | const Note & | note | ) |
|
override |
|
inlinestatic |
| Note * lmms::Note::clone | ( | ) | const |
Performs a deep copy and returns an owning raw pointer.
| void lmms::Note::createDetuning | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
| bool lmms::Note::hasDetuningInfo | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
overrideprotectedvirtual |
Implements lmms::SerializingObject.
|
inline |
|
inlineoverridevirtual |
Implements lmms::SerializingObject.
|
inline |
|
inline |
|
inline |
| AutomationClip * lmms::Note::parameterCurve | ( | ParameterType | paramType | ) |
|
inline |
| void lmms::Note::quantizeLength | ( | const int | qGrid | ) |
| void lmms::Note::quantizePos | ( | const int | qGrid | ) |
|
overrideprotectedvirtual |
Implements lmms::SerializingObject.
|
inline |
|
inline |
| void lmms::Note::setKey | ( | const int | key | ) |
| void lmms::Note::setLength | ( | const TimePos & | length | ) |
|
inline |
|
inline |
|
inline |
|
virtual |
Reimplemented in lmms::NotePlayHandle.
| void lmms::Note::setPos | ( | const TimePos & | pos | ) |
|
inline |
|
inline |
|
virtual |
Reimplemented in lmms::NotePlayHandle.
|
inline |
| bool lmms::Note::withinRange | ( | int | tickStart, |
| int | tickEnd ) const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |