Mercurial > hg > qm-dsp
comparison dsp/keydetection/GetKeyMode.cpp @ 233:b478b1e23ab2
...
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Tue, 12 Dec 2006 10:34:38 +0000 |
parents | 2b74f9646331 |
children | 381758cfbe64 |
comparison
equal
deleted
inserted
replaced
232:2b74f9646331 | 233:b478b1e23ab2 |
---|---|
234 } | 234 } |
235 | 235 |
236 | 236 |
237 int GetKeyMode::isModeMinor( int key ) | 237 int GetKeyMode::isModeMinor( int key ) |
238 { | 238 { |
239 return ((key-1 - (int)MathUtilities::mod((double)(key-1),(double)12))/12); | 239 // return ((key-1 - (int)MathUtilities::mod((double)(key-1),(double)12))/12); |
240 } | 240 return (key > 12); |
241 } |