MCPcopy Create free account
hub / github.com/AndrewBelt/WaveEdit / menuRandomize

Function menuRandomize

src/ui.cpp:230–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230static void menuRandomize() {
231 for (int i = mini(selectedId, lastSelectedId); i <= maxi(selectedId, lastSelectedId); i++) {
232 currentBank.waves[i].randomizeEffects();
233 }
234 historyPush();
235}
236
237static void incrementSelectedId(int delta) {
238 selectWave(clampi(selectedId + delta, 0, BANK_LEN-1));

Callers 2

menuKeyCommandsFunction · 0.85
renderWaveMenuFunction · 0.85

Calls 4

miniFunction · 0.85
maxiFunction · 0.85
historyPushFunction · 0.85
randomizeEffectsMethod · 0.80

Tested by

no test coverage detected