[haskell-art] Announcement: Sox wrapper

Daniel van den Eijkel dvde at gmx.net
Mon Apr 20 01:37:05 BST 2009


This is very cool. Exactly what I was looking for. I tried it out with 
some Hommage examples, but unfortunately it stops playing after about 10 
seconds (at a sampling rate of 44100) and hangs. On 11025 it stops after 
40 seconds, and also ctrl-c does not work then, like in the following 
example:

main =
 extended
  StorableVector.hPut
  Option.none
  Option.none
  11025 $
   StorableVector.pack (StorableVector.ChunkSize 1000) $  (iterate 
(1000+) (0::Data.Int.Int16))

Maybe I missed something. Any ideas?
daniel

p.s. I tried it out on WinXP SP3 and SoX 14.2.0

Henning Thielemann schrieb:
> I have moved the Sox functionality from my synthesizer package to a new 
> package:
>    http://hackage.haskell.org/cgi-bin/hackage-scripts/package/sox
>
> It also answers the question on how we can play signals, that are 
> generated by Haskell programs.
>
> This package calls 'sox' or 'play' via runInteractiveProcess. Since there 
> is now also the libsox library, we could also use FFI in order to get sox' 
> functionality.
> _______________________________________________
> haskell-art mailing list
> haskell-art at lurk.org
> http://lists.lurk.org/mailman/listinfo/haskell-art
>
>   


More information about the haskell-art mailing list