-
- 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.pluck(absVel / m_maxAbsVel);
-// m_noise.controlChange(4, 1.0 * absVel / m_maxAbsVel);
+
+// if (posBefore * m_pos < 0.0) {
+// // // std::cout << m_vel / m_maxVel << std::endl;
+// 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);
+// }
+
+ if (m_vel * velBefore < 0.0) {
+ m_noise.noteOn(m_frequency, m_maxAbsIntVel/m_maxAbsVel);
+ m_maxAbsIntVel = 0.0;