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

Method Draw

Source/MultitapDelay.cpp:297–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297void MultitapDelay::DelayMPETap::Draw(float w, float h)
298{
299 /*if (!mADSR.IsDone(gTime))
300 {
301 if (mPitch - mOwner->mKeyboardBasePitch >= 0 && mPitch - mOwner->mKeyboardBasePitch < mOwner->mKeyboardNumPitches)
302 {
303 float pitchBend = mPitchBend ? mPitchBend->GetValue(0) : 0;
304 float pressure = mPressure ? mPressure->GetValue(0) : 0;
305
306 ofPushStyle();
307 ofFill();
308 float keyX = (mPitch - mOwner->mKeyboardBasePitch) / mOwner->mKeyboardNumPitches * w;
309 float keyXTop = keyX + pitchBend * w / mOwner->mKeyboardNumPitches;
310 ofBeginShape();
311 ofVertex(keyX, h);
312 ofVertex(keyXTop, h - pressure * h);
313 ofVertex(keyXTop +10, h - pressure * h);
314 ofVertex(keyX+10, h);
315 ofEndShape();
316 ofPopStyle();
317 }
318
319 mGranulator.Draw(0, 0, w, h, mOwner->mDisplayStartSamples, mOwner->mDisplayEndSamples - mOwner->mDisplayStartSamples, mOwner->mSample->LengthInSamples());
320 }*/
321}
322
323
324MultitapDelay::DelayTap::DelayTap()

Callers 1

DrawModuleMethod · 0.45

Calls 6

ofPushStyleFunction · 0.85
ofFillFunction · 0.85
ofClampFunction · 0.85
ofLineFunction · 0.85
ofRectFunction · 0.85
ofPopStyleFunction · 0.85

Tested by

no test coverage detected