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

Method GetPitchesForScale

Source/Scale.cpp:450–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448}
449
450std::vector<int> Scale::GetPitchesForScale(std::string scaleType)
451{
452 for (int i = 0; i < mScales.size(); ++i)
453 {
454 if (mScales[i].mName == scaleType)
455 return mScales[i].mPitches;
456 }
457 assert(false);
458 return std::vector<int>();
459}
460
461void Scale::Poll()
462{

Callers 1

SetScaleTypeMethod · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected