hmeap 0.7 → 0.8
raw patch · 4 files changed
+22/−8 lines, 4 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
- Help/Makefile +1/−0
- README +4/−2
- Sound/Analysis/Meapsoft/Data.hs +8/−1
- hmeap.cabal +9/−5
Help/Makefile view
@@ -7,3 +7,4 @@ clean: rm -f *.o *.hi browse parser play plot stat+ rm curve*.gp curve*.dat
README view
@@ -5,7 +5,9 @@ hmatrix, gnuplot and hsc3. meapsoft: http://labrosa.ee.columbia.edu/meapsoft/- hmeap: http://slavepianos.org/rd/f/896678/+ hmeap: http://slavepianos.org/rd/ -(c) rohan drape, 2007-2009+(c) rohan drape and others, 2007-2010 gpl.2, http://gnu.org/copyleft/+ with contributions by stefan kersten+ see darcs history for details
Sound/Analysis/Meapsoft/Data.hs view
@@ -2,12 +2,19 @@ import Data.Array.Unboxed import qualified Data.ByteString as B+import Data.ByteString.Char8 (unpack) import qualified Data.ByteString.Lazy as L import qualified Data.ByteString.Lex.Double as B import qualified Text.Delimited as D +read_inf :: String -> Double+read_inf s = case s of+ "Infinity" -> 1/0+ "-Infinity" -> -1/0+ _ -> error ("Could not read " ++ show s)+ to_f :: B.ByteString -> Double-to_f s = fst (maybe undefined id (B.readDouble s))+to_f s = maybe (read_inf (unpack s)) fst (B.readDouble s) -- | Given the number of columns, reads an entire MEAPsoft data set -- into an 'UArray' and returns the data paired with the number of
hmeap.cabal view
@@ -1,16 +1,16 @@ Name: hmeap-Version: 0.7+Version: 0.8 Synopsis: Haskell Meapsoft Parser Description: Parser for the anaylsis files produced by the Meapsoft feature extractor. License: GPL Category: Sound-Copyright: Rohan Drape, 2007-2009+Copyright: Rohan Drape, 2007-2010 Author: Rohan Drape Maintainer: rd@slavepianos.org Stability: Experimental-Homepage: http://slavepianos.org/rd/f/896678/-Tested-With: GHC == 6.8.2+Homepage: http://slavepianos.org/rd/?t=hmeap+Tested-With: GHC == 6.10.3 Build-Type: Simple Cabal-Version: >= 1.6 @@ -25,7 +25,7 @@ Library Build-Depends: array,- base == 3.*,+ base == 4.*, bytestring, bytestring-lexing, delimited-text >= 0.1.0,@@ -35,3 +35,7 @@ Sound.Analysis.Meapsoft.Measure Sound.Analysis.Meapsoft.Header Sound.Analysis.Meapsoft.Data++Source-Repository head+ Type: darcs+ Location: http://slavepianos.org/rd/sw/hmeap