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

Method DrawModule

Source/NoteStepper.cpp:63–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void NoteStepper::DrawModule()
64{
65 if (Minimized() || IsVisible() == false)
66 return;
67
68 mResetButton->Draw();
69 mLengthSlider->Draw();
70
71 for (int i = 0; i < kMaxDestinations; ++i)
72 {
73 mDestinationCables[i]->GetPatchCableSource()->SetEnabled(i < mLength);
74 if (i == mCurrentDestinationIndex)
75 {
76 ofPushStyle();
77 ofSetColor(255, 255, 255);
78 ofCircle(10 + i * 15, mHeight - 8, 6);
79 ofPopStyle();
80 }
81 }
82}
83
84void NoteStepper::PlayNote(double time, int pitch, int velocity, int voiceIdx, ModulationParameters modulation)
85{

Callers

nothing calls this directly

Calls 7

ofPushStyleFunction · 0.85
ofSetColorFunction · 0.85
ofCircleFunction · 0.85
ofPopStyleFunction · 0.85
DrawMethod · 0.45
SetEnabledMethod · 0.45
GetPatchCableSourceMethod · 0.45

Tested by

no test coverage detected