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

Method SetScaleType

Source/Scale.cpp:322–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322void Scale::SetScaleType(std::string type, bool force)
323{
324 int oldScaleIndex = mScaleIndex;
325
326 for (int i = 0; i < mScales.size(); ++i)
327 {
328 if (mScales[i].mName == type)
329 {
330 mScaleIndex = i;
331 break;
332 }
333 }
334
335 if (mScaleIndex == oldScaleIndex && !force)
336 return;
337
338 mScale.SetScaleType(type);
339
340 NotifyListeners();
341}
342
343void Scale::SetRandomRootAndScale()
344{

Callers 5

ScaleSatisfiedMethod · 0.80
LoadSongMethod · 0.80
DrawModuleMethod · 0.80
DropdownUpdatedMethod · 0.80

Calls 2

sizeMethod · 0.80
GetPitchesForScaleMethod · 0.80

Tested by

no test coverage detected