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

Method OnTimeEvent

Source/RandomNoteGenerator.cpp:80–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void RandomNoteGenerator::OnTimeEvent(double time)
81{
82 if (!mEnabled)
83 return;
84
85 ++mSkipCount;
86
87 mNoteOutput.Flush(time);
88 if (mSkipCount >= mSkip)
89 {
90 mSkipCount = 0;
91 if (mProbability >= ofRandom(1))
92 PlayNoteOutput(time, mPitch, mVelocity * 127, -1);
93 }
94}
95
96void RandomNoteGenerator::CheckboxUpdated(Checkbox* checkbox, double time)
97{

Callers

nothing calls this directly

Calls 2

ofRandomFunction · 0.85
FlushMethod · 0.45

Tested by

no test coverage detected