tidal 0.4.28 → 0.4.29
raw patch · 2 files changed
+8/−3 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Sound.Tidal.Pattern: foldEvery :: [Int] -> (Pattern a -> Pattern a) -> Pattern a -> Pattern a
Files
- Sound/Tidal/Pattern.hs +5/−0
- tidal.cabal +3/−3
Sound/Tidal/Pattern.hs view
@@ -260,6 +260,11 @@ every 0 f p = p every n f p = when ((== 0) . (`mod` n)) f p +-- | @foldEvery ns f p@ applies the function @f@ to @p@, and is applied for+-- each cycle in @ns@.+foldEvery :: [Int] -> (Pattern a -> Pattern a) -> Pattern a -> Pattern a+foldEvery ns f p = foldr ($) p (map (\x -> every x f) ns)+ -- | @sig f@ takes a function from time to values, and turns it into a -- @Pattern@. sig :: (Time -> a) -> Pattern a
tidal.cabal view
@@ -1,14 +1,14 @@ name: tidal-version: 0.4.28+version: 0.4.29 synopsis: Pattern language for improvised music -- description: homepage: http://yaxu.org/tidal/ license: GPL-3 license-file: LICENSE author: Alex McLean-maintainer: alex@slab.org+maintainer: Alex McLean <alex@slab.org>, Mike Hodnick <mike.hodnick@gmail.com> Stability: Experimental-Copyright: (c) Alex McLean and others, 2013+Copyright: (c) Alex McLean and other contributors, 2015 category: Sound build-type: Simple cabal-version: >=1.4