| 99 | } |
| 100 | |
| 101 | bool ScaleDetect::ScaleSatisfied(int root, std::string type) |
| 102 | { |
| 103 | ScalePitches scale; |
| 104 | scale.SetRoot(root); |
| 105 | scale.SetScaleType(type); |
| 106 | |
| 107 | for (int i = 0; i < 128; ++i) |
| 108 | { |
| 109 | if (mPitchOn[i] && !scale.IsInScale(i)) |
| 110 | return false; |
| 111 | } |
| 112 | return true; |
| 113 | } |
| 114 | |
| 115 | void ScaleDetect::ButtonClicked(ClickButton* button, double time) |
| 116 | { |
nothing calls this directly
no test coverage detected