[LAD] Pluginization example?

From: Juhana Sadeharju <kouhia@email-addr-hidden>
Date: Wed Aug 15 2007 - 17:43:33 EEST

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.

Juhana

-- 
  http://music.columbia.edu/mailman/listinfo/linux-graphics-dev
  for developers of open source graphics software
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-dev
Received on Wed Aug 15 20:15:03 2007

This archive was generated by hypermail 2.1.8 : Wed Aug 15 2007 - 20:15:05 EEST