audio/velocity.h file

Velocities for MidiNote's.

Contents

Classes

struct Velocity
The MidiNote velocity.

Enums

enum VelocityCloneFlag { VELOCITY_CLONE_COPY_MAIN, VELOCITY_CLONE_COPY }

Typedefs

using Velocity = struct Velocity
The MidiNote velocity.

Functions

void velocity_init_loaded(Velocity* self)
Init after loading a Project.
auto velocity_new(MidiNote* midi_note, const uint8_t vel, const int is_main) -> Velocity*
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.
void velocity_set_cache_vel(Velocity* velocity, const uint8_t vel)
Sets the cached value for use in live actions.
auto velocity_find(Velocity* clone) -> Velocity*
Finds the actual Velocity in the project from the given clone.
auto velocity_clone(Velocity* src, VelocityCloneFlag flag) -> Velocity*
Clones the Velocity.
auto velocity_is_equal(Velocity* src, Velocity* dest) -> int
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, ArrangerObjectUpdateFlag update_flag)
Sets the velocity to the given value.
void velocity_free(Velocity* self)
Destroys the velocity instance.

Defines

#define VELOCITY_DEFAULT
Default velocity.
#define velocity_get_main_trans_velocity(r)
Gets the transient counterpart of the Velocity.
#define velocity_get_main_velocity(r)
Gets the main counterpart of the Velocity.
#define velocity_is_selected(vel)
Wrapper that calls midi_note_is_selected().
#define velocity_should_be_visible(vel)
Returns if Velocity is (should be) visible.