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

output ramp? #47

Open
panavrin opened this issue Mar 17, 2015 · 1 comment
Open

output ramp? #47

panavrin opened this issue Mar 17, 2015 · 1 comment
Assignees
Labels

Comments

@panavrin
Copy link

This is more of a question.

How do I change output value of a plugin over time? I tried to use the following syntax but it seems like not working.

cverb.set('output', [[0.0], [1.0, 2, 1], [0.0, 3, 2]]);   // cverb is a WX.ConVerb

This goes into GenericParam.prototype.set() but does not work since this.$callback is not defined.

cverb.param.output.set(1.0, 2, 1) also works but it only change abruptly.

Cheers!

@hoch hoch self-assigned this Mar 18, 2015
@hoch hoch added the bug label Mar 18, 2015
@hoch
Copy link
Owner

hoch commented Mar 18, 2015

Thanks for the report.

I believe this.$callback is defined alright, but somehow the events are not scheduled correctly. Needs further investigation.

cverb.param.output.set(1.0, 2, 1) also works but it only change abruptly.

This works as intended. param.set() is basically a simple wrapper of AudioParam automation methods. set(1, 2, 1) is identical to AudioParam.linearRampToValueAtTime(1, 2). If you don't have a previous time/value point, you can't generate a linear ramp. Instead, you get a jump instead.

I have some plans to redesign WAAX's parameter control. Feel free to throw your ideas!

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