Hoogle Search

Within LTS Haskell 24.68 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. threadGroup :: BoundedThreadGroup -> ThreadGroup

    threads-extras Control.Concurrent.Thread.BoundedThreadGroup

    No documentation available.

  2. mkReadAttr :: (x -> UI o) -> ReadAttr x o

    threepenny-gui Graphics.UI.Threepenny.Core

    Build attribute from a getter.

  3. mkReadWriteAttr :: (x -> UI o) -> (i -> x -> UI ()) -> ReadWriteAttr x i o

    threepenny-gui Graphics.UI.Threepenny.Core

    Build an attribute from a getter and a setter.

  4. spreadMethod :: WriteAttr Element String

    threepenny-gui Graphics.UI.Threepenny.SVG

    No documentation available.

  5. spreadMethod :: WriteAttr Element String

    threepenny-gui Graphics.UI.Threepenny.SVG.Attributes

    No documentation available.

  6. fastspread :: (a -> t -> Pattern b) -> [a] -> t -> Pattern b

    tidal Sound.Tidal.Boot

    fastspread works the same as spread, but the result is squashed into a single cycle. If you gave four values to spread, then the result would seem to speed up by a factor of four. Compare these two:

    d1 $ spread chop [4,64,32,16] $ sound "ho ho:2 ho:3 hc"
    d1 $ fastspread chop [4,64,32,16] $ sound "ho ho:2 ho:3 hc"
    
    There is also slowspread, which is an alias of spread.

  7. slowspread :: (a -> t -> Pattern b) -> [a] -> t -> Pattern b

    tidal Sound.Tidal.Boot

    An alias for spread consistent with fastspread.

  8. spread :: (a -> t -> Pattern b) -> [a] -> t -> Pattern b

    tidal Sound.Tidal.Boot

    The spread function allows you to take a pattern transformation which takes a parameter, such as slow, and provide several parameters which are switched between. In other words it "spreads" a function across several values. Taking a simple high hat loop as an example:

    d1 $ sound "ho ho:2 ho:3 hc"
    
    We can slow it down by different amounts, such as by a half:
    d1 $ slow 2 $ sound "ho ho:2 ho:3 hc"
    
    Or by four thirds (i.e. speeding it up by a third; 4%3 means four over three):
    d1 $ slow (4%3) $ sound "ho ho:2 ho:3 hc"
    
    But if we use spread, we can make a pattern which alternates between the two speeds:
    d1 $ spread slow [2,4%3] $ sound "ho ho:2 ho:3 hc"
    
    Note that if you pass ($) as the function to spread values over, you can put functions as the list of values. (spreadf is an alias for spread ($).) For example:
    d1 $ spread ($) [density 2, rev, slow 2, striate 3, (# speed "0.8")]
    $ sound "[bd*2 [~ bd]] [sn future]*2 cp jvbass*4"
    
    Above, the pattern will have these transforms applied to it, one at a time, per cycle:
    • cycle 1: density 2 - pattern will increase in speed
    • cycle 2: rev - pattern will be reversed
    • cycle 3: slow 2 - pattern will decrease in speed
    • cycle 4: striate 3 - pattern will be granualized
    • cycle 5: (# speed "0.8") - pattern samples will be played back more slowly
    After (# speed "0.8"), the transforms will repeat and start at density 2 again.

  9. spread' :: Monad m => (a -> b -> m c) -> m a -> b -> m c

    tidal Sound.Tidal.Boot

    There's a version of this function, spread' (pronounced "spread prime"), which takes a pattern of parameters, instead of a list:

    d1 $ spread' slow "2 4%3" $ sound "ho ho:2 ho:3 hc"
    
    This is quite a messy area of Tidal—due to a slight difference of implementation this sounds completely different! One advantage of using spread' though is that you can provide polyphonic parameters, e.g.:
    d1 $ spread' slow "[2 4%3, 3]" $ sound "ho ho:2 ho:3 hc"
    

  10. spreadChoose :: (t -> t1 -> Pattern b) -> [t] -> t1 -> Pattern b

    tidal Sound.Tidal.Boot

    spreadChoose f xs p is similar to slowspread but picks values from xs at random, rather than cycling through them in order.

    d1 $ spreadChoose ($) [gap 4, striate 4] $ sound "ho ho:2 ho:3 hc"
    

Page 833 of many | Previous | Next