Skip to content

Instantly share code, notes, and snippets.

@Xenakios
Created July 30, 2020 19:05
Show Gist options
  • Save Xenakios/07c20cca6068231ed201cfcc410dc369 to your computer and use it in GitHub Desktop.
Save Xenakios/07c20cca6068231ed201cfcc410dc369 to your computer and use it in GitHub Desktop.
class XQuantModule : public rack::Module
{
public:
enum InputPorts
{
FIRSTINPUT = 0,
LASTINPUT = 7
};
enum OutputPorts
{
FIRSTOUTPUT = LASTINPUT+1,
LASTOUTPUT = FIRSTOUTPUT+7
};
XQuantModule()
{
config(1,8,8,0);
configParam(0,0.0f,1.0f,0.05f,"Foopar");
}
void process(const ProcessArgs& args) override
{
outputs[0].setChannels(1);
//outputs[0].setVoltage(quantizers[0].process(inputs[0].getVoltage()));
outputs[0].setVoltage(0.5f);
}
//Quantizer quantizers[8];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment