bwp_mod_func

Common scheme for mixed smoothed/non-smoothed control-/audio-rate parameter modulation.

According to this scheme, a modulated parameter is controlled by various parameters/signals, namely a smoothed control-rate parameter, a non-smoothed control-rate parameter, and a non-smoothed audio-rate modulation signal.

These three values are fed into a given modulation function to determine the instantaneous modulated parameter value.

API

Module type: Foundation

bwp_mod_func()

typedef float (*bwp_mod_func)(float x, float x_mod_ctrl, float x_mod_audio);

Modulation function type.

It takes the smoothed control-rate parameter x, the non-smoothed control-rate parameter x_mod_ctrl, and the non-smoothed audio-rate modulation signal sample x_mod_audio, and returns the instantaneous modulated parameter value

bwp_mod_func_sum()

static float bwp_mod_func_sum(
	float x,
	float x_mod_ctrl,
	float x_mod_audio);

Returns x + x_mod_ctrl + x_mod_audio.

bwp_mod_func_pow2()

static float bwp_mod_func_pow2(
	float x,
	float x_mod_ctrl,
	float x_mod_audio);

Returns x * bw_pow2f(x_mod_ctrl + x_mod_audio).

Changelog

  • Version 1.0.1:
    • Updated dependencies.
  • Version 1.0.0:
    • First release.