# HG changeset patch # User Chris Cannam # Date 1391431303 0 # Node ID d6b07e6bf1db25dc45cc23aa99465eced81311df # Parent a219bab90abe952fd5a47404b74807a8b65fc6cc Merge with pulled changes diff -r a219bab90abe -r d6b07e6bf1db yeti/test.yeti --- a/yeti/test.yeti Fri Jan 31 11:40:01 2014 +0000 +++ b/yeti/test.yeti Mon Feb 03 12:41:43 2014 +0000 @@ -7,12 +7,33 @@ mat = load may.matrix; vec = load may.vector; win = load may.signal.window; +test = load may.test.test; mm = load may.mathmisc; manipulate = load may.stream.manipulate; syn = load may.stream.syntheticstream; +{ cqtkernel } = load cqtkernel; { cqt } = load cqt; +// We want to test: +// +// Kernel design -- check size (number of bins, number of atoms); +// check an example kernel against known data +// +// Time alignment -- feed a dirac train, check that peaks in all bins +// align +// +// Frequency discrimination -- feed a sinusoid, check peaks +// +// Latency compensation -- for dirac at 0, check peak can be found at +// 0 plus the declared latency +// +// Signal-noise ratio +// +// Specimen output for simple test case + +/* + // Test with a single windowed sinusoid, repeating at various frequencies sinTestStream sampleRate duration signalFreq = // duration is in samples