score-avnd-senior/Ottobit/OttobitModel.cpp
2024-09-30 18:50:58 +01:00

19 lines
329 B
C++

#include "Ottobit.hpp"
namespace Example
{
void Ottobit::operator()(halp::tick t)
{
// Process the input buffer
for(int i = 0; i < inputs.audio.channels; i++)
{
auto* in = inputs.audio[i];
auto* out = outputs.audio[i];
for(int j = 0; j < t.frames; j++)
{
out[j] = inputs.gain * in[j];
}
}
}
}