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 lfoN_fade_oncc, lfoN_delay_oncc, lfoN_phase_oncc #753

Merged
merged 5 commits into from
Mar 31, 2021

Conversation

paulfd
Copy link
Member

@paulfd paulfd commented Mar 30, 2021

The phase modifier is actually an "audio rate" modifier with curve, step and smoothcc options.
The v2 spec only had oncc, which would limit it to a set value with the LFO starts, but having it at audio rate makes sense if you want to tweak the phase while the LFO is running.

I'll add some tests.

The phase modifier is actually an  "audio rate" modifier with curve, step and smoothcc options.
The v2 spec only had oncc, which would limit it to a set value with the LFO starts, but having it at audio rate makes sense if you want to tweak the phase while the LFO is running.
@paulfd paulfd requested a review from jpcima March 30, 2021 10:06
@paulfd
Copy link
Member Author

paulfd commented Mar 30, 2021

Should be ok now !

impl.fadePosition_ = (desc.fade > 0) ? 0.0f : 1.0f;
float fade = desc.fade;
for (const auto& mod: desc.fadeCC)
fade += mod.data * state.getCCValue(mod.cc);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get the well-timed value with respect to triggerDelay ? same also above

@jpcima jpcima merged commit 40d18f0 into sfztools:develop Mar 31, 2021
@paulfd paulfd deleted the lfo-cc branch January 21, 2022 10:27
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

Successfully merging this pull request may close these issues.

2 participants