Slashdot Mirror


Free Sound Samples?

TwistedSquare asks: "I like to write small games from time to time, and have often wondered about adding sounds. Searching around on the internet, I can find loads of GPL sound libraries but no sound effects/samples that are both royalty-free and free (as in beer). Can anyone suggest how I could find such effects and does anyone else find it odd the contrast between the amount of GPL software and non-GPL-type items in areas such as sound effects?"

1 of 79 comments (clear)

  1. Much less than half joking... by MarkusQ · · Score: 5, Interesting

    (Responding to myself)

    In case you need some ideas to get you started:

    • Simple musical notes -- m(f) = sin(t/f) where f is the frequency. IIRC, 440hz = A natural below middle C, and you multiply by 2^(1/12) for every half-note higher.
    • More realistic notes -- M(f) = (m(f) + c1*m(f*3/2) + c2*m(f*4/3) + c3*m(f*4/2) ... )*k1/(k1+t*k2), where the c's provide harmonics and the k's give a fade out.
    • I'm sure a little googling will give even better formulas...
    • White noise -- w = random
    • Equipment -- w*c1*sin(t/f1) + w*c2*sin(t/f2) ..., where the c's & f's are used to modulate the white noise (because machines typically cycle)
    • Rain -- w*w*w
    • A waterfall -- c1*w + c2*w*w + c3*w*sin(t/f1+k*rand) ..., where you have 1) a steady roar, 2) some random splashes, 3) random, quasi-periodic fluctuation in flow, etc.
    Heck,this could be more fun than writing the game!

    -- MarkusQ