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

Method CheckboxUpdated

Source/NoteLooper.cpp:303–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303void NoteLooper::CheckboxUpdated(Checkbox* checkbox, double time)
304{
305 if (checkbox == mEnabledCheckbox)
306 {
307 for (int i = 0; i < (int)mCurrentNotes.size(); ++i)
308 {
309 if (mCurrentNotes[i] != nullptr)
310 {
311 mNoteOutput.PlayNote(time, i, 0, mCurrentNotes[i]->GetVoiceIdx());
312 mCurrentNotes[i] = nullptr;
313 }
314 }
315 }
316}
317
318void NoteLooper::FloatSliderUpdated(FloatSlider* slider, float oldVal, double time)
319{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
GetVoiceIdxMethod · 0.80
PlayNoteMethod · 0.45

Tested by

no test coverage detected