Re: [haskell-art] [Haskell-cafe] ANN: Hemkay, the 100% Haskell MOD player

2009-12-18 Thread Henning Thielemann
Patai Gergely schrieb:

 I have a function for mixing sounds at different (relative) start times.
 I feel that it does not get maximum speed in GHC, but is still ready for 
 realtime application.

 http://hackage.haskell.org/packages/archive/synthesizer-core/0.2.1/doc/html/Synthesizer-Storable-Cut.html#v%3Aarrange
 And how can you mix that with changing frequencies (effectively
 resampling on the fly)?

I would do resampling (with some of the Interpolation routines) and
mixing in two steps, that is I would prepare (lazy) storable vectors
with the resampled sounds and mix them. Since Haskell is lazy, this is
still somehow on the fly, although one could still wish to eliminate
the interim storable vectors.
___
haskell-art mailing list
haskell-art@lurk.org
http://lists.lurk.org/mailman/listinfo/haskell-art


Re: [haskell-art] [Haskell-cafe] ANN: Hemkay, the 100% Haskell MOD player

2009-12-17 Thread Henning Thielemann

On Mon, 14 Dec 2009, Patai Gergely wrote:

 Hello all,

 I just uploaded the fruit of a little side project. Hemkay [1] is an
 oldschool module music [2] player that performs all the hard work in
 Haskell.

Cool.
  The most complicated I tried was to import OctaMED printout to Haskore:
   http://darcs.haskell.org/haskore/src/Haskore/Interface/MED/Text.hs
   
http://hackage.haskell.org/packages/archive/haskore/0.1/doc/html/Haskore-Interface-MED-Text.html

 Still, I'd be curious to see how the overall quality of the code could
 be improved. In particular, retrieving and updating record fields is
 somewhat inconvenient. Also, the actual mixing (limited to the mixChunk
 function) is embarrassingly slow, and I wonder how much it could be
 improved without leaving the pure world.

I have a function for mixing sounds at different (relative) start times. I 
feel that it does not get maximum speed in GHC, but is still ready for 
realtime application.
   
http://hackage.haskell.org/packages/archive/synthesizer-core/0.2.1/doc/html/Synthesizer-Storable-Cut.html#v%3Aarrange
___
haskell-art mailing list
haskell-art@lurk.org
http://lists.lurk.org/mailman/listinfo/haskell-art