12#ifndef __AUDIO_MIDI_FUNCTION_H__
13#define __AUDIO_MIDI_FUNCTION_H__
19#include <glib/gi18n.h>
29typedef enum MidiFunctionType
31 MIDI_FUNCTION_CRESCENDO,
33 MIDI_FUNCTION_FLIP_HORIZONTAL,
34 MIDI_FUNCTION_FLIP_VERTICAL,
36 MIDI_FUNCTION_PORTATO,
37 MIDI_FUNCTION_STACCATO,
41static const cyaml_strval_t midi_function_type_strings[] = {
42 {N_ (
"Crescendo"), MIDI_FUNCTION_CRESCENDO },
43 { N_ (
"Flam"), MIDI_FUNCTION_FLAM },
44 { N_ (
"Flip H"), MIDI_FUNCTION_FLIP_HORIZONTAL},
45 { N_ (
"Flip V"), MIDI_FUNCTION_FLIP_VERTICAL },
46 { N_ (
"Legato"), MIDI_FUNCTION_LEGATO },
47 { N_ (
"Portato"), MIDI_FUNCTION_PORTATO },
48 { N_ (
"Staccato"), MIDI_FUNCTION_STACCATO },
49 { N_ (
"Strum"), MIDI_FUNCTION_STRUM },
67static inline const char *
68midi_function_type_to_string (MidiFunctionType type)
70 return midi_function_type_strings[type].str;
94 MidiFunctionType type,
int midi_function_apply(ArrangerSelections *sel, MidiFunctionType type, MidiFunctionOpts opts, GError **error)
Applies the given action to the given selections.
CurveAlgorithm
The algorithm to use for curves.
MidiFunctionType midi_function_string_id_to_type(const char *id)
Returns a string identifier for the type.
char * midi_function_type_to_string_id(MidiFunctionType type)
Returns a string identifier for the type.
uint8_t midi_byte_t
MIDI byte.