With I "Musical Puffs" --by c u f nat r Department of Mathematics Lafayette College; Easton, Pennsylvania HEED TO WARMYOU that I'm a musical bum. It's worse than that. I asked my dear wife to come listen to some fractal music I had generated and was rather proud of." she decfined with '7"m afraid I would have nightmares. " So readers are warned that my taste in music is undeveloped, and I hope you don't have ifightmares. Nonetheless, we can have a good bit of tim with some simple J utilities for creating music. Much more sophisticated things can be done, but my aim is to be able to play a rough version o f " M a r y Had a Little Lamb" and create some fractal music from the smoke puff attractor that was from the work of [2,5] and that we saw in the last column [5]. I ie=: 3!:4 j2i=: l&ic j21=:2&ic waveheader=:3 : 0 1 22050 22050 1 8 wavmheader y. chart sampr Bpsec Bpsamp bpchan'=.x. 'RIFF',(j21 36+y.),'WAVEfmt ',(16 0 0 0 1 0[a.), (j2i than), (j21 sampr,Bpsec), (j2i Bpsamp,bpchan),'dlata',j21 y. ) note=:3 : 0 "0 it8 note y. <a.[-<.127.999">:i o. (2pl*<.0.5+y.*x.)*(i.%])<.0.5+22050*x. )
/lp/association-for-computing-machinery/with-j-musical-puffs-5SpaLVmx6r