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

Method getRandomAmountForParam

src/Iroi.cpp:503–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501 }
502
503 float getRandomAmountForParam(ParamId paramId) {
504 switch (paramId) {
505 case FILTER_CUTOFF_PARAM: return params[FILTER_CUTOFF_RND_PARAM].getValue();
506 case RESONANCE_PARAM: return params[RESONANCE_RND_PARAM].getValue();
507 case RESONATOR_TUNE_PARAM: return params[RESONATOR_TUNE_RND_PARAM].getValue();
508 case RESONATOR_FEEDBACK_PARAM: return params[RESONATOR_FEEDBACK_RND_PARAM].getValue();
509 case ECHO_DENSITY_PARAM: return params[ECHO_DENSITY_RND_PARAM].getValue();
510 case ECHO_REPEATS_PARAM: return params[ECHO_REPEATS_RND_PARAM].getValue();
511 case AMBIENCE_SPACETIME_PARAM: return params[AMBIENCE_SPACETIME_RND_PARAM].getValue();
512 case AMBIENCE_DECAY_PARAM: return params[AMBIENCE_DECAY_RND_PARAM].getValue();
513 case MOD_LEVEL_PARAM:
514 case MOD_SPEED_PARAM: return 0.5f;
515 default: return 0.f;
516 }
517 }
518
519 std::array<float, slewedParamIds.size()> captureSlewedParamValues() {
520 std::array<float, slewedParamIds.size()> values{};

Callers

nothing calls this directly

Calls 1

getValueMethod · 0.80

Tested by

no test coverage detected