 <p>You could use <code>sf::SoundBuffer</code> with <code>loadFromSamples</code> (see the <a href="http://www.sfml-dev.org/documentation/2.1/classsf_1_1SoundBuffer.php#a63da986e144b578135edd48e51c565e8" rel="nofollow">documentation</a>).</p> <p>The representation of a sound in memory is basically a large array of integers that gives the amplitude of the signal at a given time. You can provide your own array to a <code>sf::SoundBuffer</code> with the correct parameters, and that would give you your programmatically generated sound.</p> <p>For manipulation of sound, volume etc I can't help you though, you'll have to search for the maths behind signal processing and such.</p>