[LAD] Pluginization example?

Juhana Sadeharju kouhia at nic.funet.fi
Wed Aug 15 14:43:33 UTC 2007

I have now written a vocal reverb. It needs a pluginization.
An example would do fine but the example must be exactly
what I need, otherwise it may just confuse me. Latest plugin
stuff, of course.

Unlike GVerb, the new reverb has a preset structure. The reverb
is initialized this way:
  effect = effect_new(config_ptr,preset_ptr);
The preset structure can be modified during the processing
by switching the pointer or by modifying the parameters
in the structure.

The audio is processed by calling
  effect_do(effect, input_array, count, outleft_array, outright_array);

I'm also glueless with the following:

1. Denormalization. Feeding noise at the reverb input would
save me trouble of finding all places where the problem
occurs, but is this wise? How to generate the proper noise?

2. Effect modulation is done by two extra arrays at
    effect_do( ..., mod1_array, mod2_array, ...)
They should be filled with slowly varying sin() signals, but
how to do it efficiently? I have used earlier the sin() call.

3. The audio is divided to blocks of N samples. Apparently
I should interpolate the tweaked parameters over the N samples
inside the reverb, or I should provide arrays for all parameters
and leave the interpolation to the plugin wrapper.

  for developers of open source graphics software

More information about the Linux-audio-dev mailing list