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

Method SetNumNoteOutputs

Source/ScriptModule.cpp:859–870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

857}
858
859void ScriptModule::SetNumNoteOutputs(int num)
860{
861 while (num - 1 > (int)mExtraNoteOutputs.size())
862 {
863 auto noteCable = new AdditionalNoteCable();
864 noteCable->SetPatchCableSource(new PatchCableSource(this, kConnectionType_Note));
865 noteCable->GetPatchCableSource()->SetOverrideCableDir(ofVec2f(-1, 0), PatchCableSource::Side::kLeft);
866 AddPatchCableSource(noteCable->GetPatchCableSource());
867 noteCable->GetPatchCableSource()->SetManualPosition(0, 30 + 20 * (int)mExtraNoteOutputs.size());
868 mExtraNoteOutputs.push_back(noteCable);
869 }
870}
871
872void ScriptModule::ConnectOscInput(int port)
873{

Callers

nothing calls this directly

Calls 6

ofVec2fClass · 0.85
sizeMethod · 0.80
SetPatchCableSourceMethod · 0.80
SetOverrideCableDirMethod · 0.80
SetManualPositionMethod · 0.80
GetPatchCableSourceMethod · 0.45

Tested by

no test coverage detected