Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: FanOfHumor on Thu 01/09/2022 04:59:46

Title: (solved)Is there a way to change the pitch of a sound in AGS through script?
Post by: FanOfHumor on Thu 01/09/2022 04:59:46
Is there a way to change the pitch of a sound in AGS through script?
Title: Re: Is there a way to change the pitch of a sound in AGS through script?
Post by: Crimson Wizard on Thu 01/09/2022 05:32:30
There's only AudioChannel.Speed, if that's what you mean; if you mean changing pitch alone - that is not supported at the moment.
Title: Re: (solved)Is there a way to change the pitch of a sound in AGS through script?
Post by: js on Fri 02/09/2022 14:26:15
May be you could use a module (xm, s3m…).
But for this, AGS must be able to play a single pattern, not the whole module.
If AGS can do this , then you define differents patterns with all the pitches you want. The sample will be unique, and the patterns take a few bytes each, so even with quite large number of patterns, that's almost free.

But for this to work, AGS must be able to use specificities of modules. Not just play/stop music.