Mercurial > hg > silvet
comparison src/Silvet.cpp @ 247:6b7e78cf96c9 norm
Rename some output files; test flattendynamics-using plugin with un-normalised TRIOS input
author | Chris Cannam |
---|---|
date | Tue, 22 Jul 2014 16:36:21 +0100 |
parents | 70773820e719 |
children | 34e69544691b |
comparison
equal
deleted
inserted
replaced
246:70773820e719 | 247:6b7e78cf96c9 |
---|---|
798 } | 798 } |
799 | 799 |
800 //!!! todo: do something with input gain. Presumably we need | 800 //!!! todo: do something with input gain. Presumably we need |
801 //!!! to index it by something close to, but not actually, i | 801 //!!! to index it by something close to, but not actually, i |
802 //!!! (depending on cq latency) | 802 //!!! (depending on cq latency) |
803 | 803 /* |
804 cerr << "i = " << i << ", gain length = " << m_inputGains.size() | 804 cerr << "i = " << i << ", gain length = " << m_inputGains.size() |
805 << ", cq latency = " << m_cq->getLatency() << " (as columns = " | 805 << ", cq latency = " << m_cq->getLatency() << " (as columns = " |
806 << m_cq->getLatency() / m_cq->getColumnHop() << ", as input blocks = " | 806 << m_cq->getLatency() / m_cq->getColumnHop() << ", as input blocks = " |
807 << m_cq->getLatency() / m_blockSize << ")" << endl; | 807 << m_cq->getLatency() / m_blockSize << ")" << endl; |
808 | 808 */ |
809 int v = round(strength * 2); | 809 int v = round(strength * 2); |
810 if (v > 127) v = 127; | 810 if (v > 127) v = 127; |
811 | 811 |
812 if (v > partVelocity) { | 812 if (v > partVelocity) { |
813 partVelocity = v; | 813 partVelocity = v; |