MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / ScaleSatisfied

Method ScaleSatisfied

Source/ScaleDetect.cpp:101–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101bool 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
115void ScaleDetect::ButtonClicked(ClickButton* button, double time)
116{

Callers

nothing calls this directly

Calls 3

SetRootMethod · 0.80
SetScaleTypeMethod · 0.80
IsInScaleMethod · 0.80

Tested by

no test coverage detected