[racket] sound + universe report: success.

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Fri Oct 21 07:29:53 EDT 2011

The one I linked the first time

https://github.com/get-bonus/get-bonus/blob/master/exp/3s.rkt

and an example of its use

https://github.com/get-bonus/get-bonus/blob/master/games/tennis/tennis.rkt

Because the big-bang on-tick functions returns a list of sounds and
sounds are really functions of the world state, you can easily have on
going sounds by ensuring that it never returns #f (although you may
wish to have different background music per "level", which would be a
property of the world state) and transitory sounds by returning the
"bump" noise whenever the ball hits the ground. You just need to
return a sound function once and big bang will keep it in its sound
list until it returns #f. So basically on the first frame you return
the background sound and in future frames you return sounds
appropriate to what is going on.

Jay

On Fri, Oct 21, 2011 at 2:38 AM, John Clements
<clements at brinckerhoff.org> wrote:
>
> On Oct 20, 2011, at 3:34 PM, Jay McCarthy wrote:
>
>> FWIW, my sound system does all this.
>
> You know, jay, you have quite a good number of github trees :).  Are you referring to one of them here?
>
> John
>
>



-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay

"The glory of God is Intelligence" - D&C 93



Posted on the users mailing list.