mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
OSC: added a linear VCA style gain control for faders that are 0 to 1 linear.
path = /ardour/routes/gainVCA if RID position
This commit is contained in:
parent
35e4c9936d
commit
6c3559dc6c
2 changed files with 9 additions and 0 deletions
|
|
@ -477,6 +477,7 @@ OSC::register_callbacks()
|
|||
REGISTER_CALLBACK (serv, "/ardour/routes/recenable", "ii", route_recenable);
|
||||
REGISTER_CALLBACK (serv, "/ardour/routes/gainabs", "if", route_set_gain_abs);
|
||||
REGISTER_CALLBACK (serv, "/ardour/routes/gaindB", "if", route_set_gain_dB);
|
||||
REGISTER_CALLBACK (serv, "/ardour/routes/gainVCA", "if", route_set_gain_VCA);
|
||||
REGISTER_CALLBACK (serv, "/ardour/routes/trimabs", "if", route_set_trim_abs);
|
||||
REGISTER_CALLBACK (serv, "/ardour/routes/trimdB", "if", route_set_trim_dB);
|
||||
REGISTER_CALLBACK (serv, "/ardour/routes/pan_stereo_position", "if", route_set_pan_stereo_position);
|
||||
|
|
@ -1110,6 +1111,12 @@ OSC::route_set_gain_dB (int rid, float dB)
|
|||
return route_set_gain_abs (rid, dB_to_coefficient (dB));
|
||||
}
|
||||
|
||||
int
|
||||
OSC::route_set_gain_VCA (int rid, float pos)
|
||||
{
|
||||
return route_set_gain_abs (rid, slider_position_to_gain_with_max (pos, 2.0));
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
OSC::route_set_trim_abs (int rid, float level)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue