Mercurial > hg > pyin
diff VampYin.cpp @ 9:5945b8905d1f
README, copyrights
author | Chris Cannam |
---|---|
date | Fri, 06 Dec 2013 10:49:00 +0000 |
parents | 3cf34d0effed |
children | 177f76df473a |
line wrap: on
line diff
--- a/VampYin.cpp Fri Nov 29 11:38:28 2013 +0000 +++ b/VampYin.cpp Fri Dec 06 10:49:00 2013 +0000 @@ -1,5 +1,16 @@ /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ +/* + pYIN - A fundamental frequency estimator for monophonic audio + Centre for Digital Music, Queen Mary, University of London. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. See the file + COPYING included with this distribution for more information. +*/ + #include "VampYin.h" #include "MonoNote.h" @@ -278,10 +289,11 @@ if (channels < getMinChannelCount() || channels > getMaxChannelCount()) return false; +/* std::cerr << "VampYin::initialise: channels = " << channels << ", stepSize = " << stepSize << ", blockSize = " << blockSize << std::endl; - +*/ m_channels = channels; m_stepSize = stepSize; m_blockSize = blockSize; @@ -296,10 +308,11 @@ { m_yin.setThreshold(m_yinParameter); m_yin.setFrameSize(m_blockSize); - +/* std::cerr << "VampYin::reset: yin threshold set to " << (m_yinParameter) << ", blockSize = " << m_blockSize << std::endl; +*/ } VampYin::FeatureSet