A MIDI note inside a Region shown in the piano roll.
More...
#include <src/structure/arrangement/midi_note.h>
|
| enum class | Notation : std::uint8_t { Musical
, Pitch
} |
| enum class | Type : std::uint8_t {
MidiRegion
, AudioRegion
, ChordRegion
, AutomationRegion
,
MidiControlEvent
, MidiNote
, ChordObject
, ScaleObject
,
Marker
, AutomationPoint
, AudioSourceObject
, TempoObject
,
TimeSignatureObject
} |
| | The type of the object. More...
|
| using | uuid_base_type |
| | Exposes the CRTP parameter for concept checking.
|
|
| template<RangeOfMidiNotePointers Range> |
| MidiNote * | get_first_midi_note (const Range &range) |
| | Returns the note starting first, or nullptr.
|
| template<RangeOfMidiNotePointers Range> |
| MidiNote * | get_last_midi_note (const Range &range) |
| | Gets last midi note.
|
| template<RangeOfMidiNotePointers Range> |
| auto | get_pitch_range (const Range &range) -> std::optional< std::pair< midi_byte_t, midi_byte_t > > |
| | Returns the minimum and maximum pitches in the given range.
|
|
void | init_from (MidiNote &obj, const MidiNote &other, utils::ObjectCloneType clone_type) |
|
void | to_json (nlohmann::json &j, const MidiNote ¬e) |
|
void | from_json (const nlohmann::json &j, MidiNote ¬e) |
|
| enum class | ArrangerObjectFeatures : std::uint8_t {
Bounds = 1 << 0
, LoopingBit = 1 << 1
, Name = 1 << 2
, Color = 1 << 3
,
Mute = 1 << 4
, Fading = 1 << 5
, Looping = LoopingBit | Bounds
, Region = Looping | Name | Color | Mute
} |
| | ArrangerObject (Type type, const dsp::TempoMap &tempo_map, ArrangerObjectFeatures features, QObject *parent=nullptr) noexcept |
| | Construct a new ArrangerObject.
|
| void | set_raw_uuid (const QUuid &id) |
A MIDI note inside a Region shown in the piano roll.
Definition at line 22 of file midi_note.h.
◆ Notation
| enum class zrythm::structure::arrangement::MidiNote::Notation : std::uint8_t |
|
strong |
◆ midiChannel()
| int zrythm::structure::arrangement::MidiNote::midiChannel |
( |
| ) |
const |
|
inline |
◆ pitch()
| int zrythm::structure::arrangement::MidiNote::pitch |
( |
| ) |
const |
|
inline |
◆ pitch_to_string()
| utils::Utf8String zrythm::structure::arrangement::MidiNote::pitch_to_string |
( |
uint8_t | pitch, |
|
|
Notation | notation, |
|
|
bool | rich_text ) |
|
static |
Gets the MIDI note's value as a string (eg "C#4").
- Parameters
-
| rich_text | Use QML rich text to show the octave as a superscript. |
◆ pitchAsRichText()
| Q_INVOKABLE QString zrythm::structure::arrangement::MidiNote::pitchAsRichText |
( |
| ) |
const |
|
inline |
◆ setMidiChannel()
| void zrythm::structure::arrangement::MidiNote::setMidiChannel |
( |
int | ichannel | ) |
|
|
inline |
◆ setPitch()
| void zrythm::structure::arrangement::MidiNote::setPitch |
( |
int | ipitch | ) |
|
|
inline |
◆ setVelocity()
| void zrythm::structure::arrangement::MidiNote::setVelocity |
( |
int | ivelocity | ) |
|
|
inline |
◆ shift_pitch()
| Q_INVOKABLE void zrythm::structure::arrangement::MidiNote::shift_pitch |
( |
int | delta | ) |
|
|
inline |
Shifts the pitch by delta amount.
Definition at line 62 of file midi_note.h.
◆ velocity()
| int zrythm::structure::arrangement::MidiNote::velocity |
( |
| ) |
const |
|
inline |
◆ get_first_midi_note
template<RangeOfMidiNotePointers Range>
| MidiNote * get_first_midi_note |
( |
const Range & | range | ) |
|
|
friend |
Returns the note starting first, or nullptr.
Definition at line 113 of file midi_note.h.
◆ get_last_midi_note
template<RangeOfMidiNotePointers Range>
| MidiNote * get_last_midi_note |
( |
const Range & | range | ) |
|
|
friend |
◆ get_pitch_range
template<RangeOfMidiNotePointers Range>
Returns the minimum and maximum pitches in the given range.
Definition at line 142 of file midi_note.h.
◆ DEFAULT_VELOCITY
| midi_byte_t zrythm::structure::arrangement::MidiNote::DEFAULT_VELOCITY = 90 |
|
staticconstexpr |
◆ midiChannel
| int zrythm::structure::arrangement::MidiNote::midiChannel |
|
readwrite |
◆ pitch
| int zrythm::structure::arrangement::MidiNote::pitch |
|
readwrite |
◆ velocity
| int zrythm::structure::arrangement::MidiNote::velocity |
|
readwrite |
The documentation for this class was generated from the following file: