X-Git-Url: http://git.treefish.org/~alex/seamulator.git/blobdiff_plain/ba8f356e863ed4a418f93c155e64eecaea0819bf..3185fa3e31555b1b80edb81dc4e76a1d9856f6fb:/src/dot.cpp?ds=sidebyside diff --git a/src/dot.cpp b/src/dot.cpp index d052a24..aa4a563 100644 --- a/src/dot.cpp +++ b/src/dot.cpp @@ -16,7 +16,7 @@ void Dot::advance(double deltaT) auto posBefore = m_pos; - m_vel += -std::pow(m_frequency / 440.0, 2.0) * 1.0 * ( m_pos - m_point.getHeight() ) * deltaT; + m_vel += -std::pow(m_frequency/440.0, 2.0) * 10.0 * ( m_pos - m_point.getHeight() ) * deltaT; m_vel -= m_vel * 0.01 * deltaT; m_pos += m_vel * deltaT; @@ -27,7 +27,7 @@ void Dot::advance(double deltaT) if (posBefore * m_pos < 0.0) { // // std::cout << m_vel / m_maxVel << std::endl; - m_noise.noteOn(m_pos >= 0 ? m_frequency : m_frequency*0.5, absVel / m_maxAbsVel); + m_noise.noteOn(m_pos >= 0 ? m_frequency : m_frequency, absVel / m_maxAbsVel); // //m_noise.pluck(absVel / m_maxAbsVel); // m_noise.controlChange(4, 1.0 * absVel / m_maxAbsVel); }