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

Method CheckboxUpdated

Source/NoteCreator.cpp:89–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void NoteCreator::CheckboxUpdated(Checkbox* checkbox, double time)
90{
91 if (checkbox == mEnabledCheckbox)
92 mNoteOutput.Flush(time);
93 if (checkbox == mNoteOnCheckbox)
94 {
95 if (mNoteOn)
96 {
97 if (IsEnabled())
98 PlayNoteOutput(time, mPitch, mVelocity * 127, mVoiceIndex);
99 }
100 else
101 {
102 if (IsEnabled())
103 PlayNoteOutput(time, mPitch, 0, mVoiceIndex);
104 mNoteOutput.Flush(time);
105 }
106 }
107}
108
109void NoteCreator::ButtonClicked(ClickButton* button, double time)
110{

Callers

nothing calls this directly

Calls 1

FlushMethod · 0.45

Tested by

no test coverage detected