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 : basic_enum_base_type_t {
MidiRegion
, AudioRegion
, ChordRegion
, AutomationRegion
,
MidiNote
, ChordObject
, ScaleObject
, Marker
,
AutomationPoint
, AudioSourceObject
, TempoObject
, TimeSignatureObject
} |
| | The type of the object. More...
|
|
| 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.
|
A MIDI note inside a Region shown in the piano roll.
Definition at line 19 of file midi_note.h.
◆ Notation
| enum class zrythm::structure::arrangement::MidiNote::Notation : std::uint8_t |
|
strong |
◆ 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 |
◆ 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 58 of file midi_note.h.
◆ velocity()
| int zrythm::structure::arrangement::MidiNote::velocity |
( |
| ) |
const |
|
inline |
◆ from_json
| void from_json |
( |
const nlohmann::json & | j, |
|
|
MidiNote & | note ) |
|
friend |
◆ 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 96 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 125 of file midi_note.h.
◆ to_json
| void to_json |
( |
nlohmann::json & | j, |
|
|
const MidiNote & | note ) |
|
friend |
◆ DEFAULT_VELOCITY
| midi_byte_t zrythm::structure::arrangement::MidiNote::DEFAULT_VELOCITY = 90 |
|
staticconstexpr |
◆ 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: