10#ifndef __AUDIO_VELOCITY_H__
11#define __AUDIO_VELOCITY_H__
19typedef struct _VelocityWidget VelocityWidget;
27#define velocity_is_selected(r) \
28 arranger_object_is_selected ((ArrangerObject *) r)
33#define VELOCITY_DEFAULT 90
97velocity_setting_enum_to_str (guint index);
100velocity_setting_str_to_enum (
const char * str);
Macros for arranger object backends.
MidiNote * velocity_get_midi_note(const Velocity *const self)
Returns the owner MidiNote.
Velocity * velocity_new(MidiNote *midi_note, const uint8_t vel)
Creates a new Velocity with the given value.
void velocity_set_val(Velocity *self, const int val)
Sets the velocity to the given value.
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_midi_note(Velocity *velocity, MidiNote *midi_note)
Sets the MidiNote the Velocity belongs to.
Base struct for arranger objects.
A MIDI note inside a Region shown in the piano roll.
ArrangerObject base
Base struct.
uint8_t vel_at_start
Velocity at drag begin - used for ramp actions only.
MidiNote * midi_note
Pointer back to the MIDI note.
uint8_t vel
Velocity value (0-127).