예제 #1
0
    void DynamicLoudnessCH2012::configureModelParameters(const string& setName)
    {
        //common to all
        setRate(1000);
        setOuterEarType(OME::ANSIS342007_FREEFIELD);
        setSpectrumSampledUniformly(true);
        setHoppingGoertzelDFTUsed(false);
        setExcitationPatternInterpolated(false);
        setInterpolationCubic(true);
        setSpecificLoudnessOutput(true);
        setBinauralInhibitionUsed(true);
        setPresentationDiotic(true);
        setFirstSampleAtWindowCentre(true);
        setFilterSpacingInCams(0.1);
        setCompressionCriterionInCams(0.0);
        attackTimeSTL_ = 0.016;
        releaseTimeSTL_ = 0.032;
        attackTimeLTL_ = 0.1;
        releaseTimeLTL_ = 2.0;

        if (setName == "Faster")
        {
            setFilterSpacingInCams(0.5);
            setCompressionCriterionInCams(0.3);
            LOUDNESS_DEBUG(name_ << ": using a filter spacing of 0.5 Cams"
                   << " with 0.3 Cam spectral compression criterion.");
        }
        else if (setName != "CH2012")
        {
            configureModelParameters("CH2012");
            LOUDNESS_DEBUG(name_ << "Using Settings from Chen and Hu 2012 paper.");
        }
    }
예제 #2
0
 StationaryLoudnessCHGM2011::StationaryLoudnessCHGM2011() :
     Model("StationaryLoudnessCHGM2011", false)
 {
     //Default parameters
     setOuterEarFilter (OME::Filter::ANSIS342007_FREEFIELD);
     setFilterSpacingInCams (0.1);
     setPresentationDiotic (true);
     setBinauralInhibitionUsed (true);
     setSpecificLoudnessOutput (true);
     setPartialLoudnessUsed (true);
 }