Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
MidiNote Struct Reference

A MIDI note inside a Region shown in the piano roll. More...

#include <dsp/midi_note.h>

Inheritance diagram for MidiNote:
Collaboration diagram for MidiNote:

Data Fields

ArrangerObject base
 Base struct.
 
Velocityvel
 Velocity.
 
uint8_t val
 The note/pitch, (0-127).
 
uint8_t cache_val
 Cached note, for live operations.
 
int muted
 Muted or not.
 
int currently_listened
 Whether or not this note is currently listened to.
 
uint8_t last_listened_val
 The note/pitch that is currently playing, if MidiNote::currently_listened is true.
 
int pos
 Index in the parent region.
 
int magic
 
PangoLayout * layout
 Cache layout for drawing the name.
 
- Data Fields inherited from ArrangerObject
ArrangerObjectType type
 
ArrangerObjectFlags flags
 Flags.
 
Position pos
 Position (or start Position if the object has length).
 
Position end_pos
 End Position, if the object has one.
 
Position clip_start_pos
 Start position of the clip loop, relative to the object's start.
 
Position loop_start_pos
 Loop start Position, if the object has one, relative to the object's start.
 
Position loop_end_pos
 End position of the clip loop, relative to the object's start.
 
Position fade_in_pos
 Fade in position, relative to the object's start.
 
Position fade_out_pos
 Fade out position, relative to the object's start.
 
CurveOptions fade_in_opts
 Fade in curve options.
 
CurveOptions fade_out_opts
 Fade out curve options.
 
GdkRectangle full_rect
 The full rectangle this object covers including off-screen parts, in absolute coordinates.
 
int textw
 Cache text H extents and W extents for the text, if the object has any.
 
int texth
 
ArrangerObjecttransient
 A copy ArrangerObject corresponding to this, such as when ctrl+dragging.
 
ArrangerObjectmain
 The opposite of the above.
 
bool muted
 Whether muted or not (if applicable).
 
int magic
 
RegionIdentifier region_id
 Parent region identifier for objects that are part of a region.
 
int index_in_prev_lane
 Object's index in the previous lane (before being moved to a new lane/track).
 
bool deleted_temporarily
 Whether deleted with delete tool.
 
cairo_t * cached_cr [2]
 Cached cairo_t.
 
cairo_surface_t * cached_surface [2]
 Cached surface containing drawing.
 
GdkRectangle last_name_rect
 Last drawn name rectangle, if object has a name.
 
bool is_auditioner
 Whether part of an auditioner track.
 

Additional Inherited Members

- Public Member Functions inherited from ArrangerObject
void arranger_object_move (ArrangerObject *self, const double ticks)
 Moves the object by the given amount of ticks.
 
bool arranger_object_validate (const ArrangerObject *const self)
 Validates the arranger object.
 
void arranger_object_set_name (ArrangerObject *self, const char *name, int fire_events)
 Sets the name of the object, if the object can have a name.
 

Detailed Description

A MIDI note inside a Region shown in the piano roll.

Definition at line 48 of file midi_note.h.

Field Documentation

◆ base

ArrangerObject MidiNote::base

Base struct.

Definition at line 51 of file midi_note.h.

◆ cache_val

uint8_t MidiNote::cache_val

Cached note, for live operations.

Definition at line 60 of file midi_note.h.

◆ currently_listened

int MidiNote::currently_listened

Whether or not this note is currently listened to.

Definition at line 67 of file midi_note.h.

◆ last_listened_val

uint8_t MidiNote::last_listened_val

The note/pitch that is currently playing, if MidiNote::currently_listened is true.

Definition at line 71 of file midi_note.h.

◆ layout

PangoLayout* MidiNote::layout

Cache layout for drawing the name.

Definition at line 79 of file midi_note.h.

◆ magic

int MidiNote::magic

Definition at line 76 of file midi_note.h.

◆ muted

int MidiNote::muted

Muted or not.

Definition at line 63 of file midi_note.h.

◆ pos

int MidiNote::pos

Index in the parent region.

Definition at line 74 of file midi_note.h.

◆ val

uint8_t MidiNote::val

The note/pitch, (0-127).

Definition at line 57 of file midi_note.h.

◆ vel

Velocity* MidiNote::vel

Velocity.

Definition at line 54 of file midi_note.h.


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