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

using AUParameterEvent::rampDurationSampleFrames with generated soul code #36

Closed
wtholliday opened this issue Aug 15, 2020 · 1 comment

Comments

@wtholliday
Copy link

wtholliday commented Aug 15, 2020

I'm on macOS/iOS. An AUParameterEvent (see https://developer.apple.com/documentation/audiotoolbox/auparameterevent) has rampDurationSampleFrames. The soul-generated code's ParameterProperties only has void setValue (float f).

How can I accomplish this sort of ramping of parameters?

I could run the soul code one sample at a time, ramping my own parameters, but that seems inefficient, plus it seems soul does its own ramping.

Thanks!

@julianstorer
Copy link
Contributor

Well, if you declare the input as a stream rather than an event, then you'll see a function generated with a name like "setNextInputStreamSparseFrames_xyz" which lets you set a target value and ramp length for it.

BTW github "issues" are for bug-reports, not questions, and it's a bit of a clunky way to get help from us! We'd be happy to chat directly on the juce forum, or theaudioprogrammer discord channel, or just by email. We also have a soul slack group that we could add you to if you want to be in the loop on discussions

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