| 106 | } |
| 107 | |
| 108 | void NoteSinger::DrawModule() |
| 109 | { |
| 110 | if (Minimized() || IsVisible() == false) |
| 111 | return; |
| 112 | |
| 113 | mOctaveSlider->Draw(); |
| 114 | |
| 115 | for (int i = 0; i < mNumBuckets; ++i) |
| 116 | { |
| 117 | float x = ofMap(i, 0, mNumBuckets, 0, 100); |
| 118 | ofSetColor(255, 0, 255); |
| 119 | ofLine(x, 50, x, 50 - ofMap(MIN(mPeaks[i].GetPeak(), 1), 0, 1, 0, 50)); |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | void NoteSinger::OnScaleChanged() |
| 124 | { |
nothing calls this directly
no test coverage detected