Hey all,
A bit of a haskell question here. I was trying to define a custom function for creating slow counting ramps. I love using run
and scan
but wanted a version that would always count at the speed of the cycles.
so i made slowrun
:
slowrun :: (Real a, Enum a)=>Pattern a -> Pattern a
slowrun n = slow (fmap toTime n) $ run ( n)
the issue is that with this code, tidal thinks the output is of type Pattern Time
and won’t let me use it in a variety of contexts. I would love to use it whereever i use run
but I think there is something I need to learn about number types in haskell first. Does anyone see what I’m missing?