MCPcopy Create free account
hub / github.com/VCVRack/Befaco / process

Method process

src/random8_core/Random8Core.cpp:118–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void Random8Core::process(float deltaSeconds) {
119 if (deltaSeconds <= 0.0f) {
120 return;
121 }
122
123 impl_->controlAccumulator += std::min(deltaSeconds, kMaxAccumulatedProcessSeconds);
124 while (impl_->controlAccumulator >= kHardwareControlPeriodSeconds) {
125 for (int i = 0; i < R8::NUM_CHANNELS; i++) {
126 impl_->outputs[i] =
127 impl_->channels[i].process_val(impl_->channels[i].data.currentVal, kHardwareControlPeriodSeconds);
128 }
129 impl_->controlAccumulator -= kHardwareControlPeriodSeconds;
130 }
131}
132
133float Random8Core::getOutputVolts(int channel) const {
134 if (channel < 0 || channel >= R8::NUM_CHANNELS) {

Callers

nothing calls this directly

Calls 1

process_valMethod · 0.80

Tested by

no test coverage detected