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 pitch shifter effect digitech drop/whammy/ricochet #24

Merged
merged 5 commits into from
Nov 3, 2024

Conversation

xconverge
Copy link
Collaborator

@xconverge xconverge commented Oct 31, 2024

This would be a clean-ish PR if DaisySP merged the PR electro-smith/DaisySP#166 and parameterized the buffer size

I wanted to at least document this in case anyone else is interested since this PR runs quite nicely as is

The knobs are mapped to:

  • Set transpose semitone 1,2,3,4,5,6,7, or a full octave
  • Crossfade to mix in dry signal
  • Set transpose direction Up/Down
  • Set mode between Latched/Momentary
  • Set shift time (time it takes to get TO the transpose target)
  • Set return time (time it takes to get back to no-transpose from the target)

There is a UI when in momentary mode that shows shift/return status.

I mostly will either use this latched/dropped 1 semitone for Eb tuning. Beyond that can start to sound a little off IMO. Momentary mode is also really fun and can make some super interesting stuff, I have used this the most so far just because of how fun it is.

ProcessMono(inL);
}

float clamp(float v, float min, float max) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this can be removed if the project moves to c++17 or c++20

/** Shift can be 30-100 ms lets just start with 50 for now.
0.050 * SR = 2400 samples (at 48kHz) */
// static constexpr size_t kShiftDelaySize = 16384;
static constexpr size_t kShiftDelaySize = 2048;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

setting this to ~5000+ makes a full octave sound pretty good, but the latency is pretty terrible and the buffers take up a lot of space. I could move stuff to SDRAM probably, but that won't fix the latency, and reallocating with a changing value here based on the selected octave seems not worth it really. Easiest would probably be to just remove the full octave setting for now, and just stay at +-5 or so semitones for now, but the others aren't hurting anything, they just don't sound good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants