r8brain-free-src
High-quality pro audio sample rate converter library
 
Loading...
Searching...
No Matches
r8butil.h File Reference

The inclusion file with several utility functions. More...

#include "r8bbase.h"

Go to the source code of this file.

Namespaces

namespace  r8b
 The "r8brain-free-src" library namespace.
 

Functions

double r8b::convertResponseToLog (const double re, const double im)
 Converts complex response into magnitude in log scale.
 
void r8b::findFIRFilterResponseLevelRtoL (const double *const flt, const int fltlen, const double maxg, double &th, const double thend)
 Locates normalized frequency at which the specified maximum filter gain is reached.
 
void r8b::findFIRFilterResponseMaxLtoR (const double *const flt, const int fltlen, double &maxg, double &maxth, const double thend)
 Locates normalized frequency at which the maximal filter gain is reached.
 
void r8b::findFIRFilterResponseMinLtoR (const double *const flt, const int fltlen, double &ming, double &minth, const double thend)
 Locates normalized frequency at which the minimum filter gain is reached.
 
void r8b::updateScanStep (double &step, const double curg, double &prevg_log, const double prec, const double maxstep, const double minstep=1e-11)
 An utility function that performs frequency response scanning step update based on the current magnitude response's slope.
 

Detailed Description

The inclusion file with several utility functions.

This file includes several utility functions used by various utility programs like "calcErrorTable.cpp".

r8brain-free-src Copyright (c) 2013-2025 Aleksey Vaneev

See the "LICENSE" file for license.