MCPcopy Create free account
hub / github.com/LabSound/LabSound / jump

Method jump

src/extended/SfxrNode.cpp:1017–1031  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1015}
1016
1017void SfxrNode::jump()
1018{
1019 setDefaultBeep();
1020 _waveType->setEnumeration(SQUARE);
1021 _squareDuty->setValue(frnd(0.6f));
1022 _startFrequency->setValue(0.3f + frnd(0.3f));
1023 _slide->setValue(0.1f + frnd(0.2f));
1024 _attack->setValue(0);
1025 _sustainTime->setValue(0.1f + frnd(0.3f));
1026 _decayTime->setValue(0.1f + frnd(0.2f));
1027 if (rnd(1))
1028 _hpFilterCutoff->setValue(frnd(0.3f));
1029 if (rnd(1))
1030 _lpFilterCutoff->setValue(1 - frnd(0.6f));
1031}
1032
1033/// @TODO remove need for context lock see above
1034void SfxrNode::select()

Callers 1

SfxrNodeMethod · 0.95

Calls 4

frndFunction · 0.85
rndFunction · 0.85
setEnumerationMethod · 0.80
setValueMethod · 0.80

Tested by

no test coverage detected