macroquad icon indicating copy to clipboard operation
macroquad copied to clipboard

Add sound pitch

Open kakatoto-collab opened this issue 4 months ago • 2 comments

When you have a sound that you play very often (when a monster is hit for eg), it can be annoying to hear the exact same sound again and again without pitching it.

As far as I know, pitching a sound is made by changing its playing speed.

Would it be possible to incorporate that in macroquad ?

Thanks.

kakatoto-collab avatar Aug 25 '25 01:08 kakatoto-collab

The sound framework (quad-snd) provides a very basic wrapper for the many different systems on the different platforms. Thus implementation might involve dealing with specifics of these platforms (e.g. web, linux). Since it can play wav files from bytes though it might be enough to find out what you have to do to wav data to pitch it up.

fwolfst avatar Oct 12 '25 00:10 fwolfst

Yes but people don't necessary want to code audio setup when making a game. I finally decided to use Kira, which works with macroquad, although I find the setup a little bit complicated.

kakatoto-collab avatar Oct 13 '25 05:10 kakatoto-collab