MCPcopy Create free account
hub / github.com/LMMS/lmms / noiseSample

Function noiseSample

include/Oscillator.h:142–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 }
141
142 static inline sample_t noiseSample( const float )
143 {
144 // Precise implementation
145// return 1.0f - rand() * 2.0f / RAND_MAX;
146
147 // Fast implementation
148 return 1.0f - fast_rand() * 2.0f / FAST_RAND_MAX;
149 }
150
151 inline sample_t userWaveSample( const float _sample ) const
152 {

Callers 10

lfoShapeSampleMethod · 0.85
WhiteNoise>Method · 0.85
setWaveToNoiseMethod · 0.85
paintEventMethod · 0.85
processMethod · 0.85
updateMethod · 0.85
MonstroSynthMethod · 0.85
updateModulatorsMethod · 0.85
oscillateMethod · 0.85
renderOutputMethod · 0.85

Calls 1

fast_randFunction · 0.85

Tested by

no test coverage detected