@@ -43,9 +43,9 @@ struct Plaits : Module { | |||||
}; | }; | ||||
plaits::Voice voice; | plaits::Voice voice; | ||||
plaits::Patch patch; | |||||
plaits::Modulations modulations; | |||||
char shared_buffer[16384]; | |||||
plaits::Patch patch = {}; | |||||
plaits::Modulations modulations = {}; | |||||
char shared_buffer[16384] = {}; | |||||
float triPhase = 0.f; | float triPhase = 0.f; | ||||
dsp::SampleRateConverter<2> outputSrc; | dsp::SampleRateConverter<2> outputSrc; | ||||
@@ -68,12 +68,9 @@ struct Plaits : Module { | |||||
configParam(FREQ_CV_PARAM, -1.0, 1.0, 0.0); | configParam(FREQ_CV_PARAM, -1.0, 1.0, 0.0); | ||||
configParam(MORPH_CV_PARAM, -1.0, 1.0, 0.0); | configParam(MORPH_CV_PARAM, -1.0, 1.0, 0.0); | ||||
memset(shared_buffer, 0, sizeof(shared_buffer)); | |||||
stmlib::BufferAllocator allocator(shared_buffer, sizeof(shared_buffer)); | stmlib::BufferAllocator allocator(shared_buffer, sizeof(shared_buffer)); | ||||
voice.Init(&allocator); | voice.Init(&allocator); | ||||
memset(&patch, 0, sizeof(patch)); | |||||
memset(&modulations, 0, sizeof(modulations)); | |||||
onReset(); | onReset(); | ||||
} | } | ||||
@@ -78,10 +78,6 @@ struct Rings : Module { | |||||
configParam(STRUCTURE_MOD_PARAM, -1.0, 1.0, 0.0); | configParam(STRUCTURE_MOD_PARAM, -1.0, 1.0, 0.0); | ||||
configParam(POSITION_MOD_PARAM, -1.0, 1.0, 0.0); | configParam(POSITION_MOD_PARAM, -1.0, 1.0, 0.0); | ||||
memset(&strummer, 0, sizeof(strummer)); | |||||
memset(&part, 0, sizeof(part)); | |||||
memset(&string_synth, 0, sizeof(string_synth)); | |||||
strummer.Init(0.01, 44100.0 / 24); | strummer.Init(0.01, 44100.0 / 24); | ||||
part.Init(reverb_buffer); | part.Init(reverb_buffer); | ||||
string_synth.Init(reverb_buffer); | string_synth.Init(reverb_buffer); | ||||
@@ -89,9 +89,9 @@ struct Tides2 : Module { | |||||
dsp::BooleanTrigger rampTrigger; | dsp::BooleanTrigger rampTrigger; | ||||
// Buffers | // Buffers | ||||
tides2::PolySlopeGenerator::OutputSample out[tides2::kBlockSize]; | |||||
stmlib::GateFlags trig_flags[tides2::kBlockSize]; | |||||
stmlib::GateFlags clock_flags[tides2::kBlockSize]; | |||||
tides2::PolySlopeGenerator::OutputSample out[tides2::kBlockSize] = {}; | |||||
stmlib::GateFlags trig_flags[tides2::kBlockSize] = {}; | |||||
stmlib::GateFlags clock_flags[tides2::kBlockSize] = {}; | |||||
stmlib::GateFlags previous_trig_flag = stmlib::GATE_FLAG_LOW; | stmlib::GateFlags previous_trig_flag = stmlib::GATE_FLAG_LOW; | ||||
stmlib::GateFlags previous_clock_flag = stmlib::GATE_FLAG_LOW; | stmlib::GateFlags previous_clock_flag = stmlib::GATE_FLAG_LOW; | ||||
@@ -117,9 +117,6 @@ struct Tides2 : Module { | |||||
poly_slope_generator.Init(); | poly_slope_generator.Init(); | ||||
ratio_index_quantizer.Init(); | ratio_index_quantizer.Init(); | ||||
memset(&out, 0, sizeof(out)); | |||||
memset(&trig_flags, 0, sizeof(trig_flags)); | |||||
memset(&clock_flags, 0, sizeof(clock_flags)); | |||||
onReset(); | onReset(); | ||||
onSampleRateChange(); | onSampleRateChange(); | ||||
} | } | ||||