At least with DirectSound, it is possible to playback audio from GHCi. 
In particular, it is possible to define lists to play them, while a 
previously defined list is played. But I am not sure if GHCi's 
performance is good enough to use it really as the interface, which 
would be nice. Using the GHC API could be an approach.

While re-reading posts on the Haskell art mailing list I realized that I 
should not send html mails and attachments. Any recommendations how to 
share example code and scripts best? For now, I have put the code here:
http://substitut-fuer-feinmotorik.net/public/html/haskell/DirectSoundLiveGHCi_Test1.hs

I also started to write a mini-synthesizer than can be controlled by the 
keyboard to trigger sounds, and run into the next Windows issue: 
getCh... But besides this, it seems promising.
Daniel



Sriram Durbha schrieb:
> Hi,
>  Is it possible to play a sound in real time, probably through GHCi ?
>  eg: could an infinite list of sounds be defined and then played from 
> GHCi ? [ This could be used as the elevator music in the next space 
> elevator :) ]
> Thanks
> Cheers
> Ram
> ------------------------------------------------------------------------
>
> _______________________________________________
> haskell-art mailing list
> [email protected]
> http://lists.lurk.org/mailman/listinfo/haskell-art
>   
_______________________________________________
haskell-art mailing list
[email protected]
http://lists.lurk.org/mailman/listinfo/haskell-art

Reply via email to