daft-engineers / vocoder

Open source vocoder designed for the Raspberry Pi.
https://daft-engineers.github.io/vocoder/
Mozilla Public License 2.0
11 stars 0 forks source link

Mixer Stage #12

Closed MarkAHarley closed 1 year ago

MarkAHarley commented 1 year ago

As a daft engineer, I want to create a mixer to combine multiple signals so that all the filter outputs can be combined.

Sucess Criteria:

MarkAHarley commented 1 year ago

This shouldn't need any scaling logic as the audio is already seperated into frequency bands which just need to be recombined by summing.

MHCooke commented 1 year ago

This is the class interface I'll be using

template <std::size_t num_banks> class Mixer {
private:
    std::array<Pipe<Audio>, num_banks> input_pipes;
    Pipe<Audio> output_pipe;

public:
    Mixer (std::array<Pipe<Audio>, num_banks> input_pipes, Pipe<Audio> output_pipe);
    void run();
};