Skip to content

Commit

Permalink
Update realtime.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jurihock committed Nov 17, 2023
1 parent b30f387 commit 23aad6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/realtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ using namespace stftpitchshift;
const double samplerate = 44100;
const size_t overlap = 4;

// analysis and synthesis window size
// analysis and synthesis window sizes
// power of two each of them
// - for best quality: analysis = synthesis
// - for lower latency: analysis > synthesis
// - synthesis window size corresponds to the audio frame size and vice versa
const std::tuple<size_t, size_t> framesize = { 1024, 1024 };

// hop size refers to the synthesis window size
// hop size is derived from the synthesis window size
const size_t hopsize = std::get<1>(framesize) / overlap;

// delay buffers for input and output frames
Expand Down

0 comments on commit 23aad6e

Please sign in to comment.