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

Method SendNoteToIndex

Source/ScriptModule.cpp:845–857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843}
844
845void ScriptModule::SendNoteToIndex(int index, double time, int pitch, int velocity, int voiceIdx, ModulationParameters modulation)
846{
847 if (index == 0)
848 {
849 PlayNoteOutput(time, pitch, velocity, voiceIdx, modulation, true);
850 return;
851 }
852
853 if (index - 1 < (int)mExtraNoteOutputs.size())
854 {
855 mExtraNoteOutputs[index - 1]->PlayNoteOutput(time, pitch, velocity, voiceIdx, modulation, true);
856 }
857}
858
859void ScriptModule::SetNumNoteOutputs(int num)
860{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
PlayNoteOutputMethod · 0.80

Tested by

no test coverage detected