libsidplayfp  2.0.2
Public Member Functions | List of all members
reSIDfp::Voice Class Reference

#include <Voice.h>

Public Member Functions

RESID_INLINE int output (const WaveformGenerator *ringModulator) const
 
 Voice ()
 
WaveformGeneratorwave () const
 
EnvelopeGeneratorenvelope () const
 
void writeCONTROL_REG (unsigned char control)
 
void reset ()
 

Detailed Description

Representation of SID voice block.

Constructor & Destructor Documentation

◆ Voice()

reSIDfp::Voice::Voice ( )
inline

Constructor.

Member Function Documentation

◆ output()

RESID_INLINE int reSIDfp::Voice::output ( const WaveformGenerator ringModulator) const
inline

Amplitude modulated waveform output.

The waveform DAC generates a voltage between 5 and 12 V corresponding to oscillator state 0 .. 4095.

The envelope DAC generates a voltage between waveform gen output and the 5V level, corresponding to envelope state 0 .. 255.

Ideal range [-2048*255, 2047*255].

Parameters
ringModulatorRing-modulator for waveform
Returns
waveformgenerator output

◆ reset()

void reSIDfp::Voice::reset ( )
inline

SID reset.

◆ writeCONTROL_REG()

void reSIDfp::Voice::writeCONTROL_REG ( unsigned char  control)
inline

Write control register.

Parameters
controlControl register value.

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