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 · 8 comments
Open

Add dagoarp #1050

yaxu opened this issue Nov 20, 2023 · 8 comments

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

@gamar3is
Copy link
Contributor

gamar3is commented Oct 1, 2024

Usage (pasted from yaxu's comment on Discord):

d1 $ dagoarp "0 [4 2] 3 <1 4>" $ n "c'maj'5 c'min'5 e'maj'5" # sound "superpiano"

(by the way, what/who's dago?)

@hellocatfood
Copy link

Something strange is happening the the following pattern

d1
$ dagoarp "9 0 2 3 5 2 1 2"
$ note (slow 4 $ "e6'sus2 cf5'13 d5'minor7 d5'minor7 ")
# sound "bass1:2"
# legato 1.4

By the time it reaches d5'minor7 it, for some reason, plays the bass1:1 sample instead of bass1:2.

Is dagoarp picking the sample instead of the note?

@yaxu
Copy link
Member Author

yaxu commented Oct 2, 2024

Hmm try this:

d1
$ note (dagoarp "9 0 2 3 5 2 1 2" $ slow 4 $ "e6'sus2 cf5'13 d5'minor7 d5'minor7 ")
# sound "bass1:2"
# legato 1.4

Otherwise I think it will indeed default to working on 'n' and not the notes.

@yaxu
Copy link
Member Author

yaxu commented Oct 2, 2024

(by the way, what/who's dago?)

Dago is Dagobert Sondervan who asked for this feature :) It probably needs a more descriptive name if it's going into tidal

@hellocatfood
Copy link

How about:

arpList
arpIndex
arpArray

@gamar3is
Copy link
Contributor

gamar3is commented Oct 3, 2024

arp' ?

@geikha
Copy link
Contributor

geikha commented Oct 4, 2024

arpFrom ?
arpPat ?

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

4 participants