Skip to content
Sarasvati is an audio library with portaudio.
Haskell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src/Sound
.gitignore
LICENSE
README.md
Setup.hs
sarasvati.cabal

README.md

Sarasvati

Sarasvati is an audio library with portaudio.

Instration

Install portaudio for your PC

if you use linux, see http://portaudio.com/docs/v19-doxydocs/compile_linux.html

Install this library from code

$ cabal configure
$ cabal install

Or from hackage

$ cabal install sarasvati

Sample

module Main where
import Sound.Sarasvati

sinl :: [Float] 
sinl = take 100000 . map sin $ [0.0, 0.1..] 

squl :: [Float]
squl = take 100000 $ cycle (replicate 300 (-1) ++ replicate 300 1)

main :: IO ()
main = do
  sarasvatiOutput defaultConfig $ zip sinl sinl
  sarasvatiOutput defaultConfig $ zip squl squl
  return ()
Something went wrong with that request. Please try again.