comparison layer/PianoScale.cpp @ 905:b66fb15de477 cxx11

Working through the float/double and int/sv_frame_t fixes
author Chris Cannam
date Mon, 09 Mar 2015 14:35:21 +0000
parents e0f08e108064
children 4fe7a09be0fe
comparison
equal deleted inserted replaced
904:e0f08e108064 905:b66fb15de477
38 paint.setBrush(paint.pen().color()); 38 paint.setBrush(paint.pen().color());
39 39
40 for (int i = 0; i < 128; ++i) { 40 for (int i = 0; i < 128; ++i) {
41 41
42 double f = Pitch::getFrequencyForPitch(i); 42 double f = Pitch::getFrequencyForPitch(i);
43 int y = lrintf(v->getYForFrequency(f, minf, maxf, true)); 43 int y = int(lrint(v->getYForFrequency(f, minf, maxf, true)));
44 44
45 if (y < y0 - 2) break; 45 if (y < y0 - 2) break;
46 if (y > y1 + 2) { 46 if (y > y1 + 2) {
47 continue; 47 continue;
48 } 48 }