From 23aad6e26941bc3e3dd3ddae7f5adddcc0a3b618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ju=CC=88rgen=20Hock?= Date: Fri, 17 Nov 2023 23:04:54 +0100 Subject: [PATCH] Update realtime.cpp --- examples/realtime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/realtime.cpp b/examples/realtime.cpp index dfae8f9..6e10329 100644 --- a/examples/realtime.cpp +++ b/examples/realtime.cpp @@ -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 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