0 votes

Hi Guys,

I don't understand how to use setpitchscale().
I want to apply setpitchscale() on an AudioStreamPlayer.

My code is the following:

ton200 = get_node("Audio/Ton200")
ton200.set_pitch_scale(4)

My error-message is:

Nonexistent function 'set_pitch_scale' in base 'AudioStreamPlayer'

What do I do wrong?

Thanks for paying attention

in Engine by (32 points)

1 Answer

+1 vote

It looks like a bug since it's a documented feature.
If you need to you can make a new issue on https://github.com/godotengine/godot/issues

But you might find a solution here:
https://godotengine.org/qa/12655/recieved__-nonexistent-function-set_pitch_scale-gdnativeclass

by (49 points)

Thanks for your comment. With this solution it didn't work either.
I will open a new issue on github soon.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.