Created
July 30, 2020 19:05
-
-
Save Xenakios/07c20cca6068231ed201cfcc410dc369 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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