Mercurial > hg > silvet
comparison src/EM.cpp @ 177:d53d95bee46c
Comment
author | Chris Cannam |
---|---|
date | Wed, 21 May 2014 15:19:02 +0100 |
parents | 237d41a0f69d |
children | a53c713b2a4a |
comparison
equal
deleted
inserted
replaced
176:8af9b6cd7451 | 177:d53d95bee46c |
---|---|
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 | |
47 m_pitches = allocate<float>(m_noteCount); | 50 m_pitches = allocate<float>(m_noteCount); |
48 m_updatePitches = allocate<float>(m_noteCount); | 51 m_updatePitches = allocate<float>(m_noteCount); |
49 for (int n = 0; n < m_noteCount; ++n) { | 52 for (int n = 0; n < m_noteCount; ++n) { |
50 m_pitches[n] = drand48(); | 53 m_pitches[n] = drand48(); |
51 } | 54 } |