MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / RandomizeControl

Method RandomizeControl

Source/Snapshots.cpp:469–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469void Snapshots::RandomizeControl(IUIControl* control)
470{
471 if (strcmp(control->Name(), "enabled") == 0) //don't randomize enabled/disable checkbox, too annoying
472 return;
473 if (dynamic_cast<ClickButton*>(control) != nullptr)
474 return;
475 control->SetFromMidiCC(ofRandom(1), NextBufferTime(false), true);
476}
477
478void Snapshots::OnTransportAdvanced(float amount)
479{

Callers

nothing calls this directly

Calls 4

ofRandomFunction · 0.85
NextBufferTimeFunction · 0.85
NameMethod · 0.45
SetFromMidiCCMethod · 0.45

Tested by

no test coverage detected