changeset 325:7bdfbaa8d93f tonioni

tiny edit to harmomnic number h in case of 3 sinusoids
author Justin Salamon <justin.salamon@nyu.edu>
date Thu, 16 Jan 2014 18:02:16 -0500
parents ce2b123fc2de
children 8e44c7302cf3
files audioio/ContinuousSynth.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/audioio/ContinuousSynth.cpp	Thu Jan 16 15:49:26 2014 -0500
+++ b/audioio/ContinuousSynth.cpp	Thu Jan 16 18:02:16 2014 -0500
@@ -121,7 +121,7 @@
                     v = sin(hp) / hn;
                     break;
         		default: // 3 sinusoids
-                    hn = h*2 + 1;
+                    hn = h + 1;
                     hp = m_phase * hn;
                     v = sin(hp) / hn;
                     break;