Skip to content

VoiceInfo ​

cpp
#include <Components/SID/SIDTypes.h>
cpp
struct VoiceInfo

Defined in Components/SID/SIDTypes.h:161

State of a SID voice.

Public Attributes ​

ReturnNameDescription
u8regRaw voice registers.
u16frequencyFrequency value.
u16pulseWidthPulse width value.
u8waveformWaveform selection bits.
boolringModRing modulation is on.
boolhardSyncHard sync is on.
boolgateBitGate bit.
booltestBitTest bit.
u8attackRateEnvelope attack rate.
u8decayRateEnvelope decay rate.
u8sustainRateEnvelope sustain level.
u8releaseRateEnvelope release rate.
boolfilterEnableBitThe voice passes through the filter.

reg ​

cpp
u8 reg[7]

Defined in Components/SID/SIDTypes.h:163

Raw voice registers.


frequency ​

cpp
u16 frequency

Defined in Components/SID/SIDTypes.h:164

Frequency value.


pulseWidth ​

cpp
u16 pulseWidth

Defined in Components/SID/SIDTypes.h:165

Pulse width value.


waveform ​

cpp
u8 waveform

Defined in Components/SID/SIDTypes.h:166

Waveform selection bits.


ringMod ​

cpp
bool ringMod

Defined in Components/SID/SIDTypes.h:167

Ring modulation is on.


hardSync ​

cpp
bool hardSync

Defined in Components/SID/SIDTypes.h:168

Hard sync is on.


gateBit ​

cpp
bool gateBit

Defined in Components/SID/SIDTypes.h:169

Gate bit.


testBit ​

cpp
bool testBit

Defined in Components/SID/SIDTypes.h:170

Test bit.


attackRate ​

cpp
u8 attackRate

Defined in Components/SID/SIDTypes.h:171

Envelope attack rate.


decayRate ​

cpp
u8 decayRate

Defined in Components/SID/SIDTypes.h:172

Envelope decay rate.


sustainRate ​

cpp
u8 sustainRate

Defined in Components/SID/SIDTypes.h:173

Envelope sustain level.


releaseRate ​

cpp
u8 releaseRate

Defined in Components/SID/SIDTypes.h:174

Envelope release rate.


filterEnableBit ​

cpp
bool filterEnableBit

Defined in Components/SID/SIDTypes.h:175

The voice passes through the filter.