Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::structure::arrangement::MidiNoteDescriptor Class Reference

A descriptor for a MidiNote, used by the piano roll. More...

#include <src/structure/arrangement/piano_roll.h>

Collaboration diagram for zrythm::structure::arrangement::MidiNoteDescriptor:

Public Member Functions

auto get_custom_name () const
void set_custom_name (const utils::Utf8String &str)

Data Fields

int index_ = 0
 The index to display the note at.
int value_ = 0
 The actual value (0-127).
bool visible_ = true
 Whether the note is visible or not.
utils::Utf8String custom_name_
 Custom name, from midnam or GM MIDI specs, etc.
utils::Utf8String note_name_
 Name of the note, from C-2 to B8.
utils::Utf8String note_name_pango_
 Note name with extra formatting.
bool marked_ = false
 Whether the note is highlighted/marked or not.

Detailed Description

A descriptor for a MidiNote, used by the piano roll.

Notes will only be draggable and reorderable in drum mode.

In normal mode, only visibility can be changed.

Definition at line 29 of file piano_roll.h.

Member Function Documentation

◆ get_custom_name()

auto zrythm::structure::arrangement::MidiNoteDescriptor::get_custom_name ( ) const
inline

Definition at line 32 of file piano_roll.h.

◆ set_custom_name()

void zrythm::structure::arrangement::MidiNoteDescriptor::set_custom_name ( const utils::Utf8String & str)
inline

Definition at line 34 of file piano_roll.h.

Field Documentation

◆ custom_name_

utils::Utf8String zrythm::structure::arrangement::MidiNoteDescriptor::custom_name_

Custom name, from midnam or GM MIDI specs, etc.

This is only used in drum mode.

Definition at line 57 of file piano_roll.h.

◆ index_

int zrythm::structure::arrangement::MidiNoteDescriptor::index_ = 0

The index to display the note at.

Definition at line 40 of file piano_roll.h.

◆ marked_

bool zrythm::structure::arrangement::MidiNoteDescriptor::marked_ = false

Whether the note is highlighted/marked or not.

Definition at line 66 of file piano_roll.h.

◆ note_name_

utils::Utf8String zrythm::structure::arrangement::MidiNoteDescriptor::note_name_

Name of the note, from C-2 to B8.

Definition at line 60 of file piano_roll.h.

◆ note_name_pango_

utils::Utf8String zrythm::structure::arrangement::MidiNoteDescriptor::note_name_pango_

Note name with extra formatting.

Definition at line 63 of file piano_roll.h.

◆ value_

int zrythm::structure::arrangement::MidiNoteDescriptor::value_ = 0

The actual value (0-127).

Must be unique in the array.

Definition at line 47 of file piano_roll.h.

◆ visible_

bool zrythm::structure::arrangement::MidiNoteDescriptor::visible_ = true

Whether the note is visible or not.

Definition at line 50 of file piano_roll.h.


The documentation for this class was generated from the following file: