MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / setValueMap

Method setValueMap

Source/Core/CtrlrModulator/CtrlrModulatorProcessor.cpp:442–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442void CtrlrModulatorProcessor::setValueMap (const CtrlrValueMap &map)
443{
444 {
445 const ScopedWriteLock sl (processorLock);
446 valueMap.copyFrom (map);
447 usingValueMap = true;
448 }
449
450 {
451 const ScopedReadLock sl (processorLock);
452
453 owner.setProperty (Ids::modulatorMax, valueMap.getNonMappedMax());
454 owner.setProperty (Ids::modulatorMin, valueMap.getNonMappedMin());
455 }
456}
457
458int CtrlrModulatorProcessor::getValueForMidiMessage(const int value)
459{

Callers 9

comboContentChangedMethod · 0.80
fillContentMethod · 0.80
sliderContentChangedMethod · 0.80
sliderContentChangedMethod · 0.80
buttonContentChangedMethod · 0.80
buttonContentChangedMethod · 0.80
buttonContentChangedMethod · 0.80
listboxContentChangedMethod · 0.80

Calls 4

getNonMappedMaxMethod · 0.80
getNonMappedMinMethod · 0.80
copyFromMethod · 0.45
setPropertyMethod · 0.45

Tested by

no test coverage detected