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

Class StereoEnhancer

include/DspEffectLibrary.h:316–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314
315
316 class StereoEnhancer : public StereoBase<StereoEnhancer>
317 {
318 public:
319 StereoEnhancer( float wideCoeff ) :
320 m_wideCoeff( wideCoeff )
321 {
322 }
323
324 void setWideCoeff( float wideCoeff )
325 {
326 m_wideCoeff = wideCoeff;
327 }
328
329 float wideCoeff()
330 {
331 return m_wideCoeff;
332 }
333
334 void nextSample( sample_t& inLeft, sample_t& inRight )
335 {
336 const float toRad = F_PI / 180;
337 const sample_t tmp = inLeft;
338 inLeft += inRight * sinf( m_wideCoeff * ( .5 * toRad ) );
339 inRight -= tmp * sinf( m_wideCoeff * ( .5 * toRad ) );
340 }
341
342 private:
343 float m_wideCoeff;
344
345 } ;
346
347} ;
348

Callers 1

stereoEnhancerEffectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected