MCPcopy Create free account
hub / github.com/audacity/audacity / MakeMessageFS

Method MakeMessageFS

libraries/lib-vst/VSTWrapper.cpp:1818–1839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1816}
1817
1818std::unique_ptr<EffectInstance::Message>
1819VSTWrapper::MakeMessageFS(const VSTSettings &settings) const
1820{
1821 VSTMessage::ParamVector paramVector;
1822 paramVector.resize(mAEffect->numParams, std::nullopt);
1823
1824 ForEachParameter
1825 (
1826 [&](const VSTWrapper::ParameterInfo& pi)
1827 {
1828 auto &slot = paramVector[pi.mID]; // operator [] may make a nullopt
1829 const auto iter = settings.mParamsMap.find(pi.mName),
1830 end = settings.mParamsMap.end();
1831 if (iter != end)
1832 slot = iter->second;
1833 return true;
1834 }
1835 );
1836
1837 return std::make_unique<VSTMessage>(
1838 settings.mChunk /* vector copy */, std::move(paramVector));
1839}
1840
1841void VSTUIWrapper::Automate(int index, float value)
1842{

Callers 1

VSTEditorMethod · 0.80

Calls 3

moveFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected