comparison audioio/ContinuousSynth.cpp @ 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 5c69d40a0e30
children 8e44c7302cf3
comparison
equal deleted inserted replaced
324:ce2b123fc2de 325:7bdfbaa8d93f
119 hn = h*2 + 1; 119 hn = h*2 + 1;
120 hp = m_phase * hn; 120 hp = m_phase * hn;
121 v = sin(hp) / hn; 121 v = sin(hp) / hn;
122 break; 122 break;
123 default: // 3 sinusoids 123 default: // 3 sinusoids
124 hn = h*2 + 1; 124 hn = h + 1;
125 hp = m_phase * hn; 125 hp = m_phase * hn;
126 v = sin(hp) / hn; 126 v = sin(hp) / hn;
127 break; 127 break;
128 } 128 }
129 129