Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dagoarp #1050

Open
yaxu opened this issue Nov 20, 2023 · 1 comment
Open

Add dagoarp #1050

yaxu opened this issue Nov 20, 2023 · 1 comment

Comments

@yaxu
Copy link
Member

yaxu commented Nov 20, 2023

dagoarp :: (Num a, Eq a) => Pattern Int -> Pattern a -> Pattern a
dagoarp ipat pat = squeezeJoin $ (\l -> (octavise l) <$> ipat) <$> collect pat
   where octavise xs i = (xs !! (i `mod` length xs)) + (fromIntegral $ 12 * (i `div` length xs))
@yaxu
Copy link
Member Author

yaxu commented Nov 20, 2023

I think strudel might have something similar to this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant