> Hi, I am trying to figure out how I could set audio such as
> background noise
> like dog barking or birds to randomize the panning and volume. I
> understand
> how to play random sounds but understanding how to randomize their
> volume
> and pan would be a great help!
Are you thinking of random but (for the duration of the sound) fixed
volume and panning for each sound, or of randomly animating it while
the sound is playing?
The former should be easy to achieve using the math.random() function (http://www.lua.org/manual/5.0/manual.html#5.5
) and the sound:volume() and sound:location() methods (Pipmak manual
section 3.9 "Sounds").
The latter would be more involved, probably involving some kind of
spline functions, but still easily possible.
Does that answer the question or would you like more detail?
-Christian
|