self:get_pitch_scale
Client
Retrieves the current pitch scale of the audio-2d instance
Syntax
local result = self:get_pitch_scale()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | result | Current pitch multiplier |
Examples
local entity = core.audio_2d.create("sounds/ambient.ogg")
core.engine.print("info", "Pitch scale:", entity:get_pitch_scale())