Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
velocity.h File Reference

Velocities for MidiNote's. More...

#include <stdint.h>
#include "dsp/region_identifier.h"
#include "gui/backend/arranger_object.h"
#include <cyaml/cyaml.h>
Include dependency graph for velocity.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Velocity
 The MidiNote velocity. More...
 

Macros

#define velocity_is_selected(r)    arranger_object_is_selected ((ArrangerObject *) r)
 
#define VELOCITY_DEFAULT   90
 Default velocity.
 

Typedefs

typedef struct _VelocityWidget VelocityWidget
 

Functions

Velocityvelocity_new (MidiNote *midi_note, const uint8_t vel)
 Creates a new Velocity with the given value.
 
void velocity_set_midi_note (Velocity *velocity, MidiNote *midi_note)
 Sets the MidiNote the Velocity belongs to.
 
int velocity_is_equal (Velocity *src, Velocity *dest)
 Returns 1 if the Velocity's match, 0 if not.
 
void velocity_shift (Velocity *self, const int delta)
 Changes the Velocity by the given amount of values (delta).
 
void velocity_set_val (Velocity *self, const int val)
 Sets the velocity to the given value.
 
MidiNotevelocity_get_midi_note (const Velocity *const self)
 Returns the owner MidiNote.
 
const char * velocity_setting_enum_to_str (guint index)
 
guint velocity_setting_str_to_enum (const char *str)
 

Detailed Description

Velocities for MidiNote's.

Definition in file velocity.h.

Typedef Documentation

◆ VelocityWidget

typedef struct _VelocityWidget VelocityWidget

Definition at line 21 of file velocity.h.