-
Notifications
You must be signed in to change notification settings - Fork 32
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
Conversation
ProcessMono(inL); | ||
} | ||
|
||
float clamp(float v, float min, float max) { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
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:
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.