12#ifndef __AUDIO_AUDIO_FUNCTION_H__
13#define __AUDIO_AUDIO_FUNCTION_H__
15#include <glib/gi18n.h>
28 AUDIO_FUNCTION_INVERT,
29 AUDIO_FUNCTION_NORMALIZE_PEAK,
30 AUDIO_FUNCTION_NORMALIZE_RMS,
31 AUDIO_FUNCTION_NORMALIZE_LUFS,
32 AUDIO_FUNCTION_LINEAR_FADE_IN,
33 AUDIO_FUNCTION_LINEAR_FADE_OUT,
34 AUDIO_FUNCTION_NUDGE_LEFT,
35 AUDIO_FUNCTION_NUDGE_RIGHT,
36 AUDIO_FUNCTION_REVERSE,
37 AUDIO_FUNCTION_PITCH_SHIFT,
38 AUDIO_FUNCTION_COPY_L_TO_R,
50 AUDIO_FUNCTION_INVALID,
53static const char * audio_function_type_strings[] = {
54 N_ (
"Invert"), N_ (
"Normalize peak"), N_ (
"Normalize RMS"),
55 N_ (
"Normalize LUFS"), N_ (
"Linear fade in"), N_ (
"Linear fade out"),
56 N_ (
"Nudge left"), N_ (
"Nudge right"), N_ (
"Reverse"),
57 N_ (
"Pitch shift"), N_ (
"Copy L to R"), N_ (
"External program"),
58 N_ (
"Guile script"), N_ (
"Custom plugin"), N_ (
"Invalid"),
70static inline const char *
73 return audio_function_type_strings[
static_cast<int> (type)];
88 const char * base_action);
90#define audio_function_get_detailed_action_for_type_default(type) \
91 audio_function_get_detailed_action_for_type (type, "app.editor-function")
100static inline const char *
char * audio_function_get_detailed_action_for_type(AudioFunctionType type, const char *base_action)
Returns a detailed action name to be used for actionable widgets or menus.
bool audio_function_apply(ArrangerSelections *sel, AudioFunctionType type, AudioFunctionOpts opts, const char *uri, GError **error)
Applies the given action to the given selections.
@ AUDIO_FUNCTION_GUILE_SCRIPT
Guile script.
@ AUDIO_FUNCTION_EXT_PROGRAM
External program.
@ AUDIO_FUNCTION_CUSTOM_PLUGIN
Custom plugin.
double amount
Amount related to the current function (e.g.
The base plugin Inheriting plugins must have this as a child.