| 863 | } |
| 864 | |
| 865 | void 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 |
| 881 | void SfxrNode::laser() |