[Haskell-beginners] audio generation

Jeffrey Brown jeffbrown.the at gmail.com
Sat Apr 30 05:05:34 UTC 2016


Interesting question! I don't know but I'm excited to read the responses.
If you don't find an answer here, this question seems to me easily
difficult enough to be appropriate on haskell cafe.

On Fri, Apr 29, 2016 at 8:58 PM, Dennis Raddle <dennis.raddle at gmail.com>
wrote:

> I'm writing a program that will use functions to generate audio. The
> Haskell code will write the audio samples to disk---no need for real time
> playback. I see some useful libraries for writing audio files.
>
> My question concerns efficiency when generating several million to 20
> million samples (or even many times more than that if I use high-resolution
> sampling rates). They can be generated one at a time in sequence, so
> there's no need to occupy a lot of memory or postpone thunk evaluation. I'm
> going to need efficient disk writing. Note that I may need some
> pseudorandom numbers in my calculations, so I might want to calculate
> samples by state monadic computations to carry the generator state. What is
> my general strategy going to be for memory and time efficiency? I am pretty
> confused by Haskell "strictness" and normal head form and all that, which
> often doesn't seem to be very strict. Or bang patterns, etc. Is it going to
> be simple to understand what I need?
>
> Dennis
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>


-- 
Jeffrey Benjamin Brown
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160429/36c7e369/attachment.html>


More information about the Beginners mailing list