Revert "Corrects the scaleWithList function "#1206
Conversation
|
Looking at the underlying issue with the original version of it: scaleWithList sp fs p = slowcat $ map (\f -> scaleWith sp f p) fs
In any case I feel there should be a shorter way of expressing the desired behaviour without getting into the weeds of manipulating events directly, will have a think.. |
|
I haven't tested it (not sure how it's actually used!) but how about this: scaleWithList :: (Eq a, Fractional a) => Pattern String -> ([[a] -> [a]]) -> Pattern Int -> Pattern a
scaleWithList sp fs p = innerJoin $ (\f -> scaleWith sp f p) <$> slowcat fsI think that will have the source pattern not repeat cycles. Then if the old behaviour is potentially useful to someone we could preserve it as scaleWithListSlow :: (Eq a, Fractional a) => Pattern String -> ([[a] -> [a]]) -> Pattern Int -> Pattern a
scaleWithListSlow sp fs p = slowcat $ map (\f -> scaleWith sp f p) fsDoes that make sense @aherrou ? |
Reverts #1193
There's something funny going on here.. More things missing from Sound.Tidal.Pattern, but when I import everything with
import Sound.Tidal.Pattern,scaleWithListdoesn't typecheck. Could you take a look please @aherrou ?