audio/velocity.h file

Contents

Velocities for MidiNote's.

Classes

struct Velocity
The MidiNote velocity.

Typedefs

using Velocity = struct Velocity
The MidiNote velocity.

Functions

auto velocity_new(MidiNote* midi_note, const uint8_t vel) -> 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.
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)
Sets the velocity to the given value.
auto velocity_get_midi_note(Velocity* self) -> MidiNote*
Returns the owner MidiNote.

Defines

#define VELOCITY_DEFAULT
Default velocity.