| 295 | } |
| 296 | |
| 297 | void 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 | |
| 324 | MultitapDelay::DelayTap::DelayTap() |
no test coverage detected