# Change Audio Pitch / Playback speed

**URL:** <https://forum.babylonjs.com/t/change-audio-pitch-playback-speed/11067>\
**Category:** Questions\
**Created:** [May 23, 2020, 5:21am UTC](https://forum.babylonjs.com/t/change-audio-pitch-playback-speed/11067 "2020-05-23T05:21:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cheister](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cheister/32/8900_2.png) [@cheister](https://forum.babylonjs.com/u/cheister)\
**Post date:** [May 23, 2020, 5:21am UTC](https://forum.babylonjs.com/t/change-audio-pitch-playback-speed/11067/1 "2020-05-23T05:21:00Z")

</div>

Hi, I have objects in my scene that should play the same sound when hit. Depending on their size the sound should be higher or lower in pitch / faster or slower in playback speed. Is there a way to achieve this in Babylons Audio Engine? I checked the API and Forum but could not find anything related.Many thanks in advance,

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [May 23, 2020, 2:36pm UTC](https://forum.babylonjs.com/t/change-audio-pitch-playback-speed/11067/2 "2020-05-23T14:36:45Z")

</div>

Babylon.js is just wrapping WebAudio so you could easily inject any node or transform you need through: audioEngine.audioContext and masterGain which you could use as your output node.

about pitch and frequency this is a nice article explaining a bit the technique: [Controlling Frequency and Pitch (Learn Web Audio from the Ground Up, Part 2)](https://teropa.info/blog/2016/08/10/frequency-and-pitch.html)
