CVoiceContainerStaticAdditiveSynth::CHarmonic
CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · cs2_schema.json
Kind: classSize: 104 bytes (0x68)Alignment: 8 bytesModule: soundsystem_voicecontainersBinary: !GlobalTypes
Relationships
Inherits from: nothing; this is a root class.
Used by (1) as a field type
Inheritance tree
- CVoiceContainerStaticAdditiveSynth::CHarmonic
Relationship diagram (1 edges)
classDiagram
`CVoiceContainerStaticAdditiveSynth::CHarmonic` *-- `CVoiceContainerStaticAdditiveSynth::CGainScalePerInstance`Memory layout
7 fields, 7 declared here and 0 inherited. Offsets are absolute from the object base on windows-x86_64.
CVoiceContainerStaticAdditiveSynth::CHarmonic
| Offset | Field | Type | From | Annotations |
|---|---|---|---|---|
0x0 | m_nWaveform | EWaveform | MPropertyFriendlyName Waveform | |
0x1 | m_nFundamental | EMidiNote | MPropertyFriendlyName Note | |
0x4 | m_nOctave | int32 | MPropertyFriendlyName Octave | |
0x8 | m_flCents | float32 | MPropertyFriendlyName Cents To Detune ( -100:100 ) | |
0xc | m_flPhase | float32 | MPropertyFriendlyName Phase ( 0 - 1 ) | |
0x10 | m_curve | CPiecewiseCurve | MPropertyFriendlyName Envelope (Relative to Tone Envelope) | |
0x50 | m_volumeScaling | CVoiceContainerStaticAdditiveSynth::CGainScalePerInstance |
KV3 class defaults
{
"m_nWaveform": "Sine",
"m_nFundamental": "A",
"m_nOctave": 4,
"m_flCents": 0.000000,
"m_flPhase": 0.000000,
"m_curve":
{
"m_spline":
[
],
"m_tangents":
[
],
"m_vDomainMins":
[
0.000000,
0.000000
],
"m_vDomainMaxs":
[
0.000000,
0.000000
]
},
"m_volumeScaling":
{
"m_flMinVolume": 1.000000,
"m_nInstancesAtMinVolume": 1,
"m_flMaxVolume": 1.000000,
"m_nInstancesAtMaxVolume": 1
}
}