Pitch on sounds (DEF-1150)(SOLVED)

#1

I would very much like the possibility to set the pitch on a sound when it is played. The use case would be for instance each time a weapon is fired you would change the pitch slightly up or down to create variation in the sound. This could of course be done using separate sounds and alternating between them, but in a mobile environment where the size of the app is important that is highly undesireable (not to mention the work it takes to do so with all sounds in a fairly large game).

4 Likes

#2

Yes, this has been brought up before and is indeed very useful. I’ll see if we can prioritize it.

0 Likes

#4

It’s in the backlog but I can’t say yet when it will get implemented.

1 Like

#5

I’d like to bump this.
Setting pitch on sound when triggering it would be very useful. Having the ability to modify it while it is playing would be a nice bonus for making simple car engine sound fx among other things.

0 Likes

#6

I’ve bumped this issue in our backlog (DEF-1150)

2 Likes

#7

Pan too, please :wink:

OR a built-in “sample system”, just like the particles one : selecting samples to use, how to run through them : random, sequence, looping or not and basic variation to apply to pitch, volume, pan when played would be fraking awesome. :smiley:

1 Like

#8

Pan and pitch would be very important for me. Filters such as low and high pass would be also cool.

1 Like

#9

Bumping this again. I’d like to be able to control sound pitch too - at least when triggering a sound and if possible alter the pitch during playback (I’m trying to simulate engine noise and it’s barely feasible at present).

0 Likes

#10

I would also very much like to see this added. Seems like a very basic thing to have in the engine.

0 Likes

#11

You can fake this by having two separate stereo audio files which only have left / right at full volume and the other silent, and then increase or lower the volume of each to simulate a pan.

Engines should only have a few pitched versions for the different gears, so it can be done with pre-made audio files too for now.

I agree about the sound features.

Pitch
Pan
3D sounds general features
Per target /profile audio processing for optimzation
Audio streaming for music/long tracks

1 Like

#12

Cool idea in concept, but when you have a lot of sound files you want to apply panning to, this gets messy and bloated very quickly. The sound support in the engine could do with some much needed love.

0 Likes

#13

I too would love to be able to at least set pitch when playing a sound.
It’s a really simple tweak that adds lots of flavor to certain scenarios. Imagine ricochet sounds in a gun fight going off in different pitches. Perfect!

5 Likes

#14

I’d love to hear, if these features (pitch, pan, maybe even generation of tones?) are coming at least in near future. Just started learning Defold and like it a lot, but was a bit underwhelmed when I saw what can be done with sound.

0 Likes

#15

Yes, the sound support is underwhelming and unfortunately we don’t have anything planned for the near future. We are currently spending the most of our efforts on switching to the new Editor2 and native extension support. Sound improvements will have to be planned at some point after that.

0 Likes

#16

Please make it a rather high priority after Editor2 or even shove it in somehow because in my opinion pitching is very important to avoid sfx sounding repetitive and dull. In fact i won’t be satisfied with the quality of my games without such basic features and I’d rather avoid to create dozens of additional sound files and to deal with managing them to achieve the quality i am used to… :slight_frown:

4 Likes

#17

Today is the 954th day of the original request … :man_facepalming:

1 Like

#18

I agree with you that this should end up in the engine, but until it does you’re able to pitch sounds using the OpenAL extension.

4 Likes

#19

Solved in 1.2.162

5 Likes