Mercurial > hg > silvet
comparison src/EM.cpp @ 178:a53c713b2a4a
Restore (and fix) the time-frequency distribution output (filtered CQ); tidy up the bottom-octave handling in draft mode
author | Chris Cannam |
---|---|
date | Thu, 22 May 2014 12:11:33 +0100 |
parents | d53d95bee46c |
children | 4e19c60241cb |
comparison
equal
deleted
inserted
replaced
177:d53d95bee46c | 178:a53c713b2a4a |
---|---|
42 m_shiftSparsity(1.1), | 42 m_shiftSparsity(1.1), |
43 m_sourceSparsity(1.2), | 43 m_sourceSparsity(1.2), |
44 m_lowestPitch(pack->lowestNote), | 44 m_lowestPitch(pack->lowestNote), |
45 m_highestPitch(pack->highestNote) | 45 m_highestPitch(pack->highestNote) |
46 { | 46 { |
47 //!!! we now know the first octave is empty, in draft mode -- | |
48 //!!! could eliminate it | |
49 | |
50 m_pitches = allocate<float>(m_noteCount); | 47 m_pitches = allocate<float>(m_noteCount); |
51 m_updatePitches = allocate<float>(m_noteCount); | 48 m_updatePitches = allocate<float>(m_noteCount); |
52 for (int n = 0; n < m_noteCount; ++n) { | 49 for (int n = 0; n < m_noteCount; ++n) { |
53 m_pitches[n] = drand48(); | 50 m_pitches[n] = drand48(); |
54 } | 51 } |