Where is the GVerb relative code ?

Audio software developers forum.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
JoeQian
Posts: 4
Joined: Tue Dec 18, 2012 7:56 am
Operating System: Please select

Where is the GVerb relative code ?

Post by JoeQian » Tue Dec 18, 2012 9:14 am

Hi .I'm going to use GVerb class in my own application , but it's a little fuzzy for me to understand how to do that .
Anyone know where is the GVerb relative code in AudaCity source project ? and dose GVerb support mono and/or stereo ?
Thank you.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Where is the GVerb relative code ?

Post by steve » Tue Dec 18, 2012 3:19 pm

The source code for GVerb is available from http://plugin.org.uk/
GVerb is a LADSPA plug-in. http://www.ladspa.org/
Most of the support files are in the Audacity source: src/effects/ladspa
As GVerb and a couple of other LADSPA plug-ins have been ported to Windows, there is some additional Windows specific stuff in: win/LADSPA_plugins-win
GVerb is a mono effect but if you want a stereo effect you could run each channel through the effect separately and then pan and mix the processed signals with the dry signals as required.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

JoeQian
Posts: 4
Joined: Tue Dec 18, 2012 7:56 am
Operating System: Please select

Re: Where is the GVerb relative code ?

Post by JoeQian » Tue Dec 25, 2012 3:23 am

steve wrote:The source code for GVerb is available from http://plugin.org.uk/
GVerb is a LADSPA plug-in. http://www.ladspa.org/
Most of the support files are in the Audacity source: src/effects/ladspa
As GVerb and a couple of other LADSPA plug-ins have been ported to Windows, there is some additional Windows specific stuff in: win/LADSPA_plugins-win
GVerb is a mono effect but if you want a stereo effect you could run each channel through the effect separately and then pan and mix the processed signals with the dry signals as required.
Thank you , It works now,but not very well .
Here is primary code in my project:

Code: Select all

    gverb_new(16000.f, 300.0f, 50.0f, 7.0f, 0.5f, 15.0f, 0.5f, 0.5f, 0.5f);
    AudioSampleType *samples = (AudioSampleType*)dataBuffer.mBuffers[0].mData;
    float lval,rval;
    //float dryc = DB_CO(0);  //what is this?
    for (int i = 0; i< fileLengthFrames; i++) {
        float value = (float)samples[i] / 32768.f;  //convert AudioSampleType(SInt16) to float
        gverb_do(_verb, value, &lval, &rval);
        samples[i] =  (SInt16)(lval * 32767.f);  //convert float to SInt16
    }
Anything wrong with my code ? what's the meaning of lval & rval ?

Post Reply