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

lfo waveforms are not scaled uniformly #64

Closed
ianhattwick opened this issue Apr 8, 2021 · 6 comments
Closed

lfo waveforms are not scaled uniformly #64

ianhattwick opened this issue Apr 8, 2021 · 6 comments
Assignees
Labels

Comments

@ianhattwick
Copy link

ianhattwick commented Apr 8, 2021

for the lfo() function, sine and triangle waves are bipolar whereas saw and square waves are unipolar

s = Synth()

s.note.seq([0,1,2,3], 1/4)
s.gain = lfo('sin', btof(1), 0.3, 0.) //twice as fast
s.gain = lfo('sin', btof(1), 0.3, 0.3)
s.gain = lfo('square', btof(1), 0.3, 0.)
s.gain = lfo('saw', btof(1), 0.3, 0.)
s.gain = lfo('triangle', btof(1), 0.3, 0.3) //bipolar as well

@ianhattwick
Copy link
Author

Also, is there documentation for the available waveforms for lfo() and for

s.note.seq( sine( btof( 1 ), 7, 0), 1/4)

style functions?

@charlieroberts charlieroberts self-assigned this Apr 8, 2021
@charlieroberts
Copy link
Collaborator

no, there is no documentation, I'll look into that. Hopefully taking everything bipolar will be relatively easy as well.

@ianhattwick
Copy link
Author

ianhattwick commented Apr 8, 2021 via email

@charlieroberts
Copy link
Collaborator

still no documentation, but all the waves (square, triangle, sine, noise) are correctly biased / scaled now.

@charlieroberts
Copy link
Collaborator

ok documentation added.

@charlieroberts
Copy link
Collaborator

I also added documentation for the lfo shorthands sine, square, tri, and saw.

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

No branches or pull requests

2 participants