Comments (1)
If you look at the reverb.c code here:
outL += er.L * rv->erefwet + input[i].L * rv->dry;
outR += er.R * rv->erefwet + input[i].R * rv->dry;
output[i] = (sf_sample_st){ outL, outR };
You can see that erefwet
and dry
are used at the very end.
So one way to change the wet/dry mix is to set those directly.
rv->erefwet = 0.5;
rv->dry = 0.5;
If you want to measure in dB instead of linear, then you can look at what sf_advancereverb
is doing with erefwet
and dry
:
rv->erefwet = db2lin(erefwet);
rv->dry = db2lin(dry);
where db2lin
is:
static inline float db2lin(float db){ // dB to linear
return powf(10.0f, 0.05f * db);
}
The purpose of this library is to make the code easy to read. Don't be afraid of looking through reverb.c
and following the variables. You might not understand all the magic math (I don't), but it should be accessible.
from sndfilter.
Related Issues (13)
- Reverb performance issue HOT 5
- IIR filter math wrong? HOT 1
- reverb algorithm performance HOT 1
- Expander/Upward compressor HOT 1
- Sidechain compression?
- Possible bug in down sample function in reverb? HOT 5
- Biquad filter is hard clipping the audio
- Something is weird with the compressor?
- Request Audio Wav sample test
- License issue? HOT 4
- using a compressor on streaming audio HOT 4
- Low pass filter infinite alpha HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sndfilter.