| 911 | } |
| 912 | |
| 913 | void Autotalent::DrawModule() |
| 914 | { |
| 915 | if (Minimized() || IsVisible() == false) |
| 916 | return; |
| 917 | |
| 918 | mASelector->Draw(); |
| 919 | mBbSelector->Draw(); |
| 920 | mBSelector->Draw(); |
| 921 | mCSelector->Draw(); |
| 922 | mDbSelector->Draw(); |
| 923 | mDSelector->Draw(); |
| 924 | mEbSelector->Draw(); |
| 925 | mESelector->Draw(); |
| 926 | mFSelector->Draw(); |
| 927 | mGbSelector->Draw(); |
| 928 | mGSelector->Draw(); |
| 929 | mAbSelector->Draw(); |
| 930 | mAmountSlider->Draw(); |
| 931 | mSmoothSlider->Draw(); |
| 932 | mShiftSlider->Draw(); |
| 933 | mScwarpSlider->Draw(); |
| 934 | mLfoampSlider->Draw(); |
| 935 | mLforateSlider->Draw(); |
| 936 | mLfoshapeSlider->Draw(); |
| 937 | mLfosymmSlider->Draw(); |
| 938 | mLfoquantCheckbox->Draw(); |
| 939 | mFcorrCheckbox->Draw(); |
| 940 | mFwarpSlider->Draw(); |
| 941 | mMixSlider->Draw(); |
| 942 | mSetFromScaleButton->Draw(); |
| 943 | |
| 944 | float pitch = mPitch; |
| 945 | while (pitch > 12) |
| 946 | pitch -= 12; |
| 947 | while (pitch < 0) |
| 948 | pitch += 12; |
| 949 | float x = ofMap(pitch, 0, 12, 4, 244); |
| 950 | ofSetColor(255, 0, 255); |
| 951 | ofLine(x, 90, x, 90 - ofMap(mConfidence, 0, 1, 0, 50)); |
| 952 | } |
| 953 | |
| 954 | void Autotalent::ButtonClicked(ClickButton* button, double time) |
| 955 | { |
nothing calls this directly
no test coverage detected