12#ifndef __AUDIO_MIDI_FUNCTION_H__
13#define __AUDIO_MIDI_FUNCTION_H__
19#include <glib/gi18n.h>
29enum class MidiFunctionType
31 MIDI_FUNCTION_CRESCENDO,
33 MIDI_FUNCTION_FLIP_HORIZONTAL,
34 MIDI_FUNCTION_FLIP_VERTICAL,
36 MIDI_FUNCTION_PORTATO,
37 MIDI_FUNCTION_STACCATO,
56static inline const char *
57midi_function_type_to_string (MidiFunctionType type)
59 static const char * midi_function_type_strings[] = {
60 N_ (
"Crescendo"), N_ (
"Flam"), N_ (
"Flip H"), N_ (
"Flip V"),
61 N_ (
"Legato"), N_ (
"Portato"), N_ (
"Staccato"), N_ (
"Strum"),
64 return midi_function_type_strings[
static_cast<int> (type)];
88 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.