eurorack/stereo_mix/processor.h

31 lines
493 B
C
Raw Normal View History

#pragma once
#include "resources.h"
class Processor {
public:
Processor() {};
void Process(int16_t cvs[], uint16_t* outs);
inline void set_volume_offset(uint16_t volume_offset_)
{
volume_offset = volume_offset_;
}
inline void set_pan_offset(int16_t pan_offset_)
{
pan_offset = pan_offset_;
}
inline void set_muted(bool m)
{
mute = m;
}
private:
uint16_t volume_offset = 0;
int16_t pan_offset = 0;
int32_t previous_vol;
bool mute = false;
};