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

Modern retrig-from-zero sample offset #7218

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

baconpaul
Copy link
Collaborator

The modern 2-point DPW algorithm uses points at phase, phase-d and phase -2d to calculate. This has the defacto one-sample latency effect (at the oversample sample rate).

This doesn't matter except in the retrigger-from-zero case when that shift makes the first output point at the wrong phase.

So in retrigger, intiialize phase to dphase, not to 0, so you can hit the zero point for symmetric waveforms exactly.

Addresses surge-synthesizer/surge-rack#937

The modern 2-point DPW algorithm uses points at phase, phase-d and
phase -2d to calculate. This has the defacto one-sample latency
effect (at the oversample sample rate).

This doesn't matter *except* in the retrigger-from-zero case when
that shift makes the first output point at the wrong phase.

So in retrigger, intiialize phase to dphase, not to 0, so you
can hit the zero point for symmetric waveforms exactly.

Addresses surge-synthesizer/surge-rack#937
@baconpaul baconpaul merged commit be921b8 into surge-synthesizer:main Sep 20, 2023
10 checks passed
@baconpaul baconpaul deleted the modern-retrig branch July 8, 2024 12:01
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.

1 participant