Sets the pitch of the Source.
Source:setPitch( pitch )
number pitch
Nothing.
function love.load() sound = love.audio.newSource("sound.wav") -- Note that this code, as-is, will set the pitch to 1.0, as per the last line, and that's how sound:play() will play it back. sound:setPitch(0.5) -- One octave lower sound:setPitch(2) -- One octave higher sound:setPitch(1) -- Reset to normal pitch end
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Source:setPitch