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

Method Draw

Source/SampleDrawer.cpp:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#include "SynthGlobals.h"
29
30void SampleDrawer::Draw(int playPosition, float vol, ofColor color)
31{
32 ofPushMatrix();
33 ofTranslate(mX, mY);
34 mSample->LockDataMutex(true);
35 DrawAudioBuffer(mWidth, mHeight, mSample->Data(), mStartSample, mEndSample, playPosition, vol, color);
36 mSample->LockDataMutex(false);
37 ofPopMatrix();
38}
39
40void SampleDrawer::DrawLine(int sample, ofColor color)
41{

Callers

nothing calls this directly

Calls 6

ofPushMatrixFunction · 0.85
ofTranslateFunction · 0.85
DrawAudioBufferFunction · 0.85
ofPopMatrixFunction · 0.85
LockDataMutexMethod · 0.80
DataMethod · 0.80

Tested by

no test coverage detected