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

Method DrawModule

Source/MultitapDelay.cpp:137–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137void MultitapDelay::DrawModule()
138{
139 if (Minimized() || IsVisible() == false)
140 return;
141
142 mDryAmountSlider->Draw();
143 mDisplayLengthSlider->Draw();
144
145 for (int i = 0; i < mNumTaps; ++i)
146 {
147 mTaps[i].mDelayMsSlider->Draw();
148 mTaps[i].mGainSlider->Draw();
149 mTaps[i].mFeedbackSlider->Draw();
150 mTaps[i].mPanSlider->Draw();
151 }
152
153 for (int ch = 0; ch < mDelayBuffer.NumChannels(); ++ch)
154 mDelayBuffer.Draw(mBufferX, mBufferY + mBufferH / mDelayBuffer.NumChannels() * ch, mBufferW, mBufferH / mDelayBuffer.NumChannels(), mDisplayLength * gSampleRate, ch);
155
156 ofPushMatrix();
157 ofTranslate(mBufferX, mBufferY);
158 for (int i = 0; i < kNumMPETaps; ++i)
159 mMPETaps[i].Draw(mBufferW, mBufferH);
160 for (int i = 0; i < mNumTaps; ++i)
161 mTaps[i].Draw(mBufferW, mBufferH);
162 ofPopMatrix();
163}
164
165void MultitapDelay::DropdownClicked(DropdownList* list)
166{

Callers

nothing calls this directly

Calls 5

ofPushMatrixFunction · 0.85
ofTranslateFunction · 0.85
ofPopMatrixFunction · 0.85
DrawMethod · 0.45
NumChannelsMethod · 0.45

Tested by

no test coverage detected