Zrythm
a highly automated and intuitive digital audio workstation
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
MidiNoteDescriptor Struct Reference

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

#include <gui/backend/piano_roll.h>

Data Fields

int index
 The index to display the note at.
 
int value
 The actual value (0-127).
 
int visible
 Whether the note is visible or not.
 
char * custom_name
 Custom name, from midnam or GM MIDI specs, etc.
 
char * note_name
 Name of the note, from C-2 to B8.
 
char * note_name_pango
 Note name with extra formatting.
 
int marked
 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 117 of file piano_roll.h.

Field Documentation

◆ custom_name

char* MidiNoteDescriptor::custom_name

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

This is only used in drum mode.

Definition at line 139 of file piano_roll.h.

◆ index

int MidiNoteDescriptor::index

The index to display the note at.

Definition at line 122 of file piano_roll.h.

◆ marked

int MidiNoteDescriptor::marked

Whether the note is highlighted/marked or not.

Definition at line 149 of file piano_roll.h.

◆ note_name

char* MidiNoteDescriptor::note_name

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

Definition at line 142 of file piano_roll.h.

◆ note_name_pango

char* MidiNoteDescriptor::note_name_pango

Note name with extra formatting.

Definition at line 145 of file piano_roll.h.

◆ value

int MidiNoteDescriptor::value

The actual value (0-127).

Must be unique in the array.

Definition at line 129 of file piano_roll.h.

◆ visible

int MidiNoteDescriptor::visible

Whether the note is visible or not.

Definition at line 132 of file piano_roll.h.


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