ASPiK SDK
Loading...
Searching...
No Matches
TriodeClassA Class Reference

The TriodeClassA object simulates a triode in class A configuration. This is a very simple and basic simulation and a starting point for other designs; it is not intended to be a full-fledged triode simulator. More...

#include <fxobjects.h>

Inheritance diagram for TriodeClassA:
IAudioSignalProcessor

Public Member Functions

virtual bool reset (double _sampleRate)
 
TriodeClassAParameters getParameters ()
 
void setParameters (const TriodeClassAParameters &params)
 
virtual bool canProcessAudioFrame ()
 
virtual double processAudioSample (double xn)
 
- Public Member Functions inherited from IAudioSignalProcessor
virtual bool reset (double _sampleRate)=0
 
virtual double processAudioSample (double xn)=0
 
virtual bool canProcessAudioFrame ()=0
 
virtual void setSampleRate (double _sampleRate)
 
virtual void enableAuxInput (bool enableAuxInput)
 
virtual double processAuxInputAudioSample (double xn)
 
virtual bool processAudioFrame (const float *inputFrame, float *outputFrame, uint32_t inputChannels, uint32_t outputChannels)
 

Protected Attributes

TriodeClassAParameters parameters
 object parameters
 
AudioFilter outputHPF
 HPF to simulate output DC blocking cap.
 
AudioFilter outputLSF
 LSF to simulate shelf caused by cathode self-biasing cap.
 

Detailed Description

The TriodeClassA object simulates a triode in class A configuration. This is a very simple and basic simulation and a starting point for other designs; it is not intended to be a full-fledged triode simulator.

Audio I/O:

  • Processes mono input to mono output.

Control I/F:

Author
Will Pirkle http://www.willpirkle.com
Remarks
This object is included in Designing Audio Effects Plugins in C++ 2nd Ed. by Will Pirkle
Version
Revision : 1.0
Date
Date : 2018 / 09 / 7

Member Function Documentation

◆ canProcessAudioFrame()

virtual bool TriodeClassA::canProcessAudioFrame ( )
inlinevirtual

return false: this object only processes samples

Implements IAudioSignalProcessor.

◆ getParameters()

TriodeClassAParameters TriodeClassA::getParameters ( )
inline

get parameters: note use of custom structure for passing param data

Returns
TriodeClassAParameters custom data structure

◆ processAudioSample()

virtual double TriodeClassA::processAudioSample ( double  xn)
inlinevirtual

do the triode simulation to process one input to one output

Parameters
xninput
Returns
the processed sample

Implements IAudioSignalProcessor.

◆ reset()

virtual bool TriodeClassA::reset ( double  _sampleRate)
inlinevirtual

reset members to initialized state

Implements IAudioSignalProcessor.

◆ setParameters()

void TriodeClassA::setParameters ( const TriodeClassAParameters params)
inline

set parameters: note use of custom structure for passing param data

Parameters
TriodeClassAParameterscustom data structure

The documentation for this class was generated from the following file: