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

asked May 18, 2018 in Engine by Jean18518 (28 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

answered May 19, 2018 by jitterbeetle (47 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 How to use this Q&A? before posting your first questions.