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

Method coin

src/extended/SfxrNode.cpp:865–878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863}
864
865void SfxrNode::coin()
866{
867 setDefaultBeep();
868 _startFrequency->setValue(0.4f + frnd(0.5f));
869 _attack->setValue(0);
870 _sustainTime->setValue(0.1f);
871 _decayTime->setValue(0.1f + frnd(0.4f));
872 _sustainPunch->setValue(0.3f + frnd(0.3f));
873 if (rnd(1))
874 {
875 _changeSpeed->setValue(0.5f + frnd(0.2f));
876 _changeAmount->setValue(0.2f + frnd(0.4f));
877 }
878}
879
880/// @TODO the audioParams should be read into buffers in the case that they are time varying
881void SfxrNode::laser()

Callers 1

SfxrNodeMethod · 0.95

Calls 3

frndFunction · 0.85
rndFunction · 0.85
setValueMethod · 0.80

Tested by

no test coverage detected