Add support for piecewise linear interpolation taper to GtkDial

This commit adds support for piecewise linear interpolation tapers to
GtkDial and the gain widget so that the 4th Gen 4i4 volume knob taper
can be modelled correctly.
This commit is contained in:
Geoffrey D. Bennett
2024-01-17 17:54:11 +10:30
parent 492c348897
commit df5d0960dd
5 changed files with 93 additions and 4 deletions

View File

@@ -74,6 +74,13 @@ enum {
void gtk_dial_set_taper(GtkDial *dial, int taper);
int gtk_dial_get_taper(GtkDial *dial);
void gtk_dial_set_taper_linear_breakpoints(
GtkDial *dial,
const double *breakpoints,
const double *outputs,
int count
);
/**
* @brief Set the colors which this dial uses. String codes can be one of the following:
* A standard name (Taken from the X11 rgb.txt file)