Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
curve.h File Reference

Curves. More...

#include "utils/yaml.h"
#include <glib/gi18n.h>
#include "gtk_wrapper.h"
Include dependency graph for curve.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CurveOptions
 Curve options. More...
 
struct  CurveFadePreset
 

Macros

#define CURVE_OPTIONS_SCHEMA_VERSION   1
 
#define CURVE_SUPERELLIPSE_CURVINESS_BOUND   0.82
 Bounds for each algorithm.
 
#define CURVE_EXPONENT_CURVINESS_BOUND   0.95
 
#define CURVE_VITAL_CURVINESS_BOUND   1.00
 

Enumerations

enum class  CurveAlgorithm {
  CurveAlgorithm::EXPONENT , CurveAlgorithm::SUPERELLIPSE , CurveAlgorithm::VITAL , CurveAlgorithm::PULSE ,
  CurveAlgorithm::LOGARITHMIC
}
 The algorithm to use for curves. More...
 

Functions

const char ** curve_algorithm_get_strings (void)
 
const char * curve_algorithm_to_str (CurveAlgorithm algo)
 
NONNULL void curve_opts_init (CurveOptions *opts)
 
RETURNS_NONNULL GPtrArray * curve_get_fade_presets (void)
 Returns an array of CurveFadePreset.
 
void curve_algorithm_get_localized_name (CurveAlgorithm algo, char *buf)
 Stores the localized name of the algorithm in buf.
 
gboolean curve_algorithm_get_g_settings_mapping (GValue *value, GVariant *variant, gpointer user_data)
 
GVariant * curve_algorithm_set_g_settings_mapping (const GValue *value, const GVariantType *expected_type, gpointer user_data)
 
HOT NONNULL double curve_get_normalized_y (double x, CurveOptions *opts, int start_higher)
 Returns the Y value on a curve specified by algo.
 
bool curve_options_are_equal (const CurveOptions *a, const CurveOptions *b)
 

Detailed Description

Curves.

Can find more at tracktion_AudioFadeCurve.h.

Definition in file curve.h.