Change sound pitch in GD4 html

There was this feature request recently for GD5 to be able to change the pitch of a sound at runtime for car engine usage…

The question is… Can it be done in GD4 html???

It was added to GD4 as well, but not sure when the new version will be released or if one will be released at all :neutral_face:

I managed to find a workaround for that so I will post that here for anyone interested…

I basically use a timer every 0.15 seconds and play the sound with the pitch on a channel… For car engines it works since it gives off that pulsing vibe sound…