1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 03:27:44 +00:00

Libraries: Add LibDSP

LibDSP is a library for digital signal processing, and is primarily
intended to support the future DAW version of Piano.
This commit is contained in:
kleines Filmröllchen 2021-08-27 16:18:11 +02:00 committed by Ali Mohammad Pur
parent 8f4b577405
commit a749b16674
14 changed files with 829 additions and 0 deletions

View file

@ -60,6 +60,12 @@ struct Frame {
right *= pct;
}
// FIXME: This is temporary until we have log scaling
Frame scaled(double fraction) const
{
return Frame { left * fraction, right * fraction };
}
Frame& operator+=(const Frame& other)
{
left += other.left;