12#ifndef __AUDIO_CURVE_H__
13#define __AUDIO_CURVE_H__
17#include <glib/gi18n.h>
19#include "gtk_wrapper.h"
27#define CURVE_OPTIONS_SCHEMA_VERSION 1
30#define CURVE_SUPERELLIPSE_CURVINESS_BOUND 0.82
31#define CURVE_EXPONENT_CURVINESS_BOUND 0.95
32#define CURVE_VITAL_CURVINESS_BOUND 1.00
96curve_algorithm_get_strings (
void);
141curve_algorithm_get_g_settings_mapping (
147curve_algorithm_set_g_settings_mapping (
148 const GValue * value,
149 const GVariantType * expected_type,
void curve_algorithm_get_localized_name(CurveAlgorithm algo, char *buf)
Stores the localized name of the algorithm in buf.
CurveAlgorithm
The algorithm to use for curves.
HOT NONNULL double curve_get_normalized_y(double x, CurveOptions *opts, int start_higher)
Returns the Y value on a curve specified by algo.
RETURNS_NONNULL GPtrArray * curve_get_fade_presets(void)
Returns an array of CurveFadePreset.
@ EXPONENT
y = x^n 0 < n <= 1, where the whole thing is tilting up and 0 is full tilt and 1 is straight line (wh...
@ VITAL
(e^(nx) - 1) / (e^n - 1) -10 <= n <= 10 where positive tilts down and negative tilts up (when startin...
@ LOGARITHMIC
a = log (n) b = 1 / (log (1 + (1 / n)))
@ SUPERELLIPSE
y = 1 - (1 - x^n)^(1/n) 0 < n <= 1, where the whole thing is tilting up and 0 is full tilt and 1 is s...
double curviness
Curviness between -1 and 1, where < 0 tils downwards, > 0 tilts upwards and 0 is a straight line.
CurveAlgorithm algo
Curve algorithm to use.