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

follow() #208

Open
joesh1 opened this issue Sep 23, 2019 · 2 comments
Open

follow() #208

joesh1 opened this issue Sep 23, 2019 · 2 comments

Comments

@joesh1
Copy link

joesh1 commented Sep 23, 2019

I'm not sure what the rules (and syntax maybe) for using follow() are, but I don't seem to have much luck getting results. Secondly, I'm also curious to know if it can be used to make a bass line, or other instrument, follow() a drum beat, and if so how? I tried various syntax, but nothing seemed to work.

Thanks in advance.

@Qirky
Copy link
Owner

Qirky commented Sep 23, 2019

Follow is pretty much deprecated and replaced by player keys. Given a FoxDot player, p1, The following lines are equivalent:

p2 >> pluck().follow(p1)
p2 >> pluck(p1.pitch)

What do you mean by "follow a drum beat"? You can use the player key map method to map characters to pitches like so:

d1 >> play("(x-)(-x)o{-xo}")
b1 >> sawbass(d1.char.map({"x" : 0, "-": 1, "o" : 3}), dur=1/2)

Is that kind of what you had in mind?

@joesh1
Copy link
Author

joesh1 commented Sep 23, 2019

Okay, that looks interesting, I'll try all that out and see how it works. Big thanks.

BTW, I'll come back and close the thread if it's solved.

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

2 participants