Loading...
Searching...
No Matches
Midi::Note Class Referencefinal
Inheritance diagram for Midi::Note:
Detailed Description
The Note class.
TODO rethink the object model. Add a virtual findChild method to Entity. Remove all uses of NamedObject and add IDs everywhere. Allocate the Notes on a vector<Note> and allow them to be copied. Don't allow signals in some way.
Public Member Functions | |
| Note (const Id< Note > &id, QObject *parent) | |
| Note (const Id< Note > &id, NoteData n, QObject *parent) | |
| template<IsDeserializer DeserializerVisitor> | |
| Note (DeserializerVisitor &&vis, QObject *parent) | |
| double | start () const noexcept |
| double | duration () const noexcept |
| double | end () const noexcept |
| midi_size_t | pitch () const noexcept |
| midi_size_t | velocity () const noexcept |
| void | scale (double s) noexcept |
| void | setStart (double s) noexcept |
| void | setDuration (double s) noexcept |
| void | setPitch (midi_size_t s) noexcept |
| void | setVelocity (midi_size_t s) noexcept |
| NoteData | noteData () const noexcept |
| void | setData (NoteData d) noexcept |
| void | noteChanged () |
Public Member Functions inherited from IdentifiedObject< Note > | |
| IdentifiedObject (id_type id, const QString &name, QObject *parent) noexcept | |
| IdentifiedObject (Visitor &&v, QObject *parent) noexcept | |
| const id_type & | id () const noexcept |
| int32_t | id_val () const noexcept final override |
| void | setId (const id_type &id) noexcept |
| void | setId (id_type &&id) noexcept |
| void | resetCache () const noexcept override |
Public Member Functions inherited from IdentifiedObjectAbstract | |
| void | identified_object_destroying (IdentifiedObjectAbstract *o) |
| To be called by subclasses. | |
| void | identified_object_destroyed (IdentifiedObjectAbstract *o) |
| Will be called in the IdentifiedObjectAbstract destructor. | |
Public Attributes | |
| Selectable | selection {this} |
Public Attributes inherited from IdentifiedObject< Note > | |
| Path< Note > | m_path_cache |
Additional Inherited Members | |
Public Types inherited from IdentifiedObject< Note > | |
| using | model_type = Note |
| using | id_type = Id< Note > |
| using | object_type = IdentifiedObject< Note > |
Static Public Attributes inherited from IdentifiedObject< Note > | |
| static const constexpr bool | identified_object_tag |
Protected Member Functions inherited from IdentifiedObjectAbstract | |
| IdentifiedObjectAbstract (const QString &name, QObject *parent) noexcept | |
The documentation for this class was generated from the following files:
- MidiNote.hpp
- MidiNote.cpp
Public Member Functions inherited from