mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:07:35 +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:
parent
8f4b577405
commit
a749b16674
14 changed files with 829 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue