parameters work
This commit is contained in:
parent
3bd35fb838
commit
3d161edc02
|
|
@ -34,8 +34,8 @@ void Module::run(Voice* voice) {
|
|||
r = decayTable[patchRam.env_r]; // release time coeff looked up in table
|
||||
s = patchRam.env_s << 7; // scale 0x00-0x7f to 0x0000-0x3f80
|
||||
|
||||
square = (patchRam.switch2 & 0x08) ? 0.63 : 0;
|
||||
saw = (patchRam.switch2 & 0x10) ? 0.8 : 0;
|
||||
square = (patchRam.switch1 & 0x08) ? 0.63 : 0;
|
||||
saw = (patchRam.switch1 & 0x10) ? 0.8 : 0;
|
||||
sub = patchRam.sub / 127.0f;
|
||||
lfoPhase += lfoRateTable[patchRam.lfoRate];
|
||||
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ void Peacock::initParameter(uint32_t index, Parameter& parameter) {
|
|||
parameter.symbol = "ch_vcfmode";
|
||||
parameter.ranges.min = 0.0f;
|
||||
parameter.ranges.max = 1.0f;
|
||||
parameter.ranges.def = 1.0f;
|
||||
parameter.ranges.def = 0.0f;
|
||||
parameter.midiCC = 21;
|
||||
parameter.enumValues.count = 2;
|
||||
parameter.enumValues.restrictedMode = true;
|
||||
|
|
@ -266,7 +266,7 @@ void Peacock::initParameter(uint32_t index, Parameter& parameter) {
|
|||
parameter.symbol = "ch_envgate";
|
||||
parameter.ranges.min = 0.0f;
|
||||
parameter.ranges.max = 1.0f;
|
||||
parameter.ranges.def = 1.0f;
|
||||
parameter.ranges.def = 0.0f;
|
||||
parameter.midiCC = 25;
|
||||
parameter.enumValues.count = 2;
|
||||
parameter.enumValues.restrictedMode = true;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
START_NAMESPACE_DISTRHO
|
||||
|
||||
Peacock::Peacock() : Plugin(0, 0, 0) {
|
||||
Peacock::Peacock() : Plugin(parameterCount, 0, 0) {
|
||||
d_debug("peacock constructor\n");
|
||||
sampleRate = getSampleRate();
|
||||
m = new Module;
|
||||
|
|
@ -99,7 +99,7 @@ void Peacock::run(const float**, float** outputs, uint32_t frames, const MidiEve
|
|||
// we'd apply the highpass filter and chorus here
|
||||
// for now just copy left to right
|
||||
memcpy(outputs[1], outputs[0], sizeof(float) * frames);
|
||||
// outputs[0][0]=1;
|
||||
//outputs[0][0]=1;
|
||||
}
|
||||
|
||||
Plugin* createPlugin() { return new Peacock(); }
|
||||
|
|
|
|||
Loading…
Reference in New Issue