Skip to content

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`
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

7 fields, 7 declared here and 0 inherited. Offsets are absolute from the object base on windows-x86_64.

CVoiceContainerStaticAdditiveSynth::CHarmonic

OffsetFieldTypeFromAnnotations
0x0m_nWaveformEWaveformMPropertyFriendlyName Waveform
0x1m_nFundamentalEMidiNoteMPropertyFriendlyName Note
0x4m_nOctaveint32MPropertyFriendlyName Octave
0x8m_flCentsfloat32MPropertyFriendlyName Cents To Detune ( -100:100 )
0xcm_flPhasefloat32MPropertyFriendlyName Phase ( 0 - 1 )
0x10m_curveCPiecewiseCurveMPropertyFriendlyName Envelope (Relative to Tone Envelope)
0x50m_volumeScalingCVoiceContainerStaticAdditiveSynth::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
	}
}