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

The ClassATubePre object implements a simple cascade of four (4) triode tube models. More...

#include <fxobjects.h>

Inheritance diagram for ClassATubePre:
IAudioSignalProcessor

Public Member Functions

virtual bool reset (double _sampleRate)
 
ClassATubePreParameters getParameters ()
 
void setParameters (const ClassATubePreParameters &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

ClassATubePreParameters parameters
 object parameters
 
TriodeClassA triodes [NUM_TUBES]
 array of triode tube objects
 
TwoBandShelvingFilter shelvingFilter
 shelving filters
 
double inputLevel = 1.0
 input level (not in dB)
 
double outputLevel = 1.0
 output level (not in dB)
 

Detailed Description

The ClassATubePre object implements a simple cascade of four (4) triode tube models.

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 ClassATubePre::canProcessAudioFrame ( )
inlinevirtual

return false: this object only processes samples

Implements IAudioSignalProcessor.

◆ getParameters()

ClassATubePreParameters ClassATubePre::getParameters ( )
inline

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

Returns
ClassATubePreParameters custom data structure

◆ processAudioSample()

virtual double ClassATubePre::processAudioSample ( double  xn)
inlinevirtual

process the input through the four tube models in series

Parameters
xninput
Returns
the processed sample

Implements IAudioSignalProcessor.

◆ reset()

virtual bool ClassATubePre::reset ( double  _sampleRate)
inlinevirtual

reset members to initialized state

Implements IAudioSignalProcessor.

◆ setParameters()

void ClassATubePre::setParameters ( const ClassATubePreParameters params)
inline

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

Parameters
ClassATubePreParameterscustom data structure

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