Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Sarasvati is an audio library with portaudio.
Haskell
branch: master
Failed to load latest commit information.
src/Sound refactor
.gitignore Initial commit
LICENSE Changed file, sarasvati.cabal
README.md Changed instration.
Setup.hs create base module
sarasvati.cabal Added function

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.