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

Method DrawModule

Source/NoteSorter.cpp:44–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void NoteSorter::DrawModule()
45{
46 if (Minimized() || IsVisible() == false)
47 return;
48
49 for (int i = 0; i < (int)mDestinationCables.size(); ++i)
50 {
51 mPitchEntry[i]->Draw();
52 ofRectangle rect = mPitchEntry[i]->GetRect(true);
53 mDestinationCables[i]->GetPatchCableSource()->SetManualPosition(rect.getMaxX() + 15, rect.y + rect.height / 2);
54 }
55}
56
57void NoteSorter::PlayNote(double time, int pitch, int velocity, int voiceIdx, ModulationParameters modulation)
58{

Callers

nothing calls this directly

Calls 6

sizeMethod · 0.80
SetManualPositionMethod · 0.80
getMaxXMethod · 0.80
DrawMethod · 0.45
GetRectMethod · 0.45
GetPatchCableSourceMethod · 0.45

Tested by

no test coverage detected