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

Function expSample

include/Oscillator.h:132–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 }
131
132 static inline sample_t expSample( const float _sample )
133 {
134 float ph = fraction( _sample );
135 if( ph > 0.5f )
136 {
137 ph = 1.0f - ph;
138 }
139 return -1.0f + 8.0f * ph * ph;
140 }
141
142 static inline sample_t noiseSample( const float )
143 {

Callers 4

ExponentialWave>Method · 0.85
processMethod · 0.85
updateModulatorsMethod · 0.85
oscillateMethod · 0.85

Calls 1

fractionFunction · 0.85

Tested by

no test coverage detected