Mercurial > hg > match-vamp
comparison Matcher.cpp @ 1:de792b8c2801
* update from other repo
author | cannam |
---|---|
date | Wed, 04 Jun 2008 19:32:59 +0000 |
parents | 640f92242cc1 |
children | ca29b0ef78ce |
comparison
equal
deleted
inserted
replaced
0:640f92242cc1 | 1:de792b8c2801 |
---|---|
58 distXSize = 0; | 58 distXSize = 0; |
59 | 59 |
60 initialised = false; | 60 initialised = false; |
61 | 61 |
62 } // default constructor | 62 } // default constructor |
63 | |
64 void | |
65 Matcher::setHopSize(int sz) | |
66 { | |
67 if (initialised) { | |
68 std::cerr << "Matcher::setHopSize: Can't set after use" << std::endl; | |
69 return; | |
70 } | |
71 | |
72 hopSize = sz; | |
73 hopTime = float(hopSize) / sampleRate; | |
74 blockTime = blockSize * hopTime; | |
75 } | |
63 | 76 |
64 Matcher::~Matcher() | 77 Matcher::~Matcher() |
65 { | 78 { |
66 std::cerr << "Matcher(" << this << ")::~Matcher()" << std::endl; | 79 std::cerr << "Matcher(" << this << ")::~Matcher()" << std::endl; |
67 | 80 |