repa-sndfile 3.2.3.2 → 3.2.3.3
raw patch · 2 files changed
+13/−21 lines, 2 files
Files
- Data/Array/Repa/IO/Sndfile.hs +3/−3
- repa-sndfile.cabal +10/−18
Data/Array/Repa/IO/Sndfile.hs view
@@ -88,19 +88,19 @@ > writeSF "sin440.wav" hdr sig' Write 440hz sine wave to channel 0, 880hz sine wave to channel 1, for 3 seconds-to stereo file \"sin440and330.wav\".+to stereo file \"sin440and880.wav\". > sin440and880 :: IO () > sin440and880 = do > let dur = 3; freq1 = 440; freq2 = 880; sr = 480000 > hdr = wav16 {samplerate = sr, channels = 2, frames = sr * dur * 2} > gen f i = sin (fromIntegral i * f * pi * 2 / fromIntegral sr)-> sig = R.fromFunction (Z :. 2 :. dur * sr) $ \(_ :. c :. i) ->+> sig = fromFunction (Z :. 2 :. dur * sr) $ \(_ :. c :. i) -> > case c of > 0 -> gen freq1 i > 1 -> gen freq2 i > _ -> 0-> sig' <- R.computeP sig :: IO (Array F DIM2 Double)+> sig' <- computeP sig :: IO (Array F DIM2 Double) > writeSF "sin440and880.wav" hdr sig' -}
repa-sndfile.cabal view
@@ -1,5 +1,5 @@ Name: repa-sndfile-Version: 3.2.3.2+Version: 3.2.3.3 Synopsis: Reading and writing sound files with repa arrays License: BSD3 License-file: LICENSE@@ -29,9 +29,7 @@ Library ghc-options:- -Wall- -fno-warn-orphans- -O3 -fllvm -optl-O3+ -Wall -fno-warn-orphans -O3 ghc-prof-options: -caf-all -auto-all Exposed-modules:@@ -40,12 +38,6 @@ base >= 4.6 && < 5.0, hsndfile >= 0.7.1, repa >= 3.2.3- if flag(example)- build-depends:- hsndfile-vector >= 0.5.2,- vector >= 0.10.9- Exposed-modules:- Data.Array.Repa.IO.Sndfile.Examples test-suite tests type:@@ -73,14 +65,14 @@ else buildable: False hs-source-dirs:- exec+ ./ exec main-is: rw.hs+ other-modules:+ Data.Array.Repa.IO.Sndfile.Examples ghc-options: -Wall -rtsopts -threaded- -fno-warn-unused-do-bind- -fno-warn-orphans- -O3 -fllvm -optl-O3+ -fno-warn-orphans -O3 ghc-prof-options: -caf-all -auto-all build-depends:@@ -97,14 +89,14 @@ else buildable: False hs-source-dirs:- exec+ ./ exec main-is: gensine.hs+ other-modules:+ Data.Array.Repa.IO.Sndfile.Examples ghc-options: -Wall -rtsopts -threaded- -fno-warn-unused-do-bind- -fno-warn-orphans- -O3 -fllvm -optl-O3+ -fno-warn-orphans -O3 ghc-prof-options: -caf-all -auto-all build-depends: