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

Make ringmod triggerwave based on mathematical frequency relationships #9

Open
acrouzet opened this issue Nov 15, 2024 · 1 comment

Comments

@acrouzet
Copy link
Owner

acrouzet commented Nov 15, 2024

Idea 1:

  • Make every triggerwave, except noise waveforms, a saw.
  • Shift saw phase if triangle or tripulse is selected.
  • Trigger on this falling slope.
@acrouzet acrouzet changed the title Make ringmod tri triggerwave a custom wavetable Make ringmod tri/tripulse triggerwave be a custom wavetable Nov 15, 2024
@acrouzet acrouzet changed the title Make ringmod tri/tripulse triggerwave be a custom wavetable Make ringmod triggerwave based on mathematical frequency relationships Nov 16, 2024
@acrouzet
Copy link
Owner Author

acrouzet commented Nov 21, 2024

The shifting could be done in the twsync handling with something like:

if (!twsync_cond_prenoise || (tw0_waveform & 0x8))
    {
        twsync_here = false;
        freq = tw0_freq;
        accumulator = (tw0_waveform & 0xb) == 0x1 ? tw0_accumulator + tw0_twshold : tw0_accumulator;
    }

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

1 participant