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

Method getSymbolValue

Source/Core/CtrlrModulator/CtrlrModulatorProcessor.cpp:597–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597Expression CtrlrModulatorProcessor::getSymbolValue (const String& symbol) const
598{
599 if (symbol == "modulatorValue")
600 {
601 return (Expression((double)currentValue.value));
602 }
603 else if (symbol == "modulatorMappedValue")
604 {
605 return (Expression((double)valueMap.getMappedValue(currentValue.value)));
606 }
607 else if (symbol == "modulatorMax")
608 {
609 return (Expression((double)maxValue));
610 }
611 else if (symbol == "modulatorMin")
612 {
613 return (Expression((double)minValue));
614 }
615 else if (symbol == "modulatorMappedMax")
616 {
617 return (Expression((double)valueMap.getMappedMax()));
618 }
619 else if (symbol == "modulatorMappedMin")
620 {
621 return (Expression((double)valueMap.getMappedMin()));
622 }
623 else if (symbol == "vstIndex")
624 {
625 return (Expression((double)owner.getVstIndex()));
626 }
627 else if (symbol == "midiValue")
628 {
629 return (Expression((double)ctrlrMidiMessage->getValue()));
630 }
631 else if (symbol == "midiNumber")
632 {
633 return (Expression((double)ctrlrMidiMessage->getNumber()));
634 }
635
636 return (Expression(1.0));
637}
638
639int CtrlrModulatorProcessor::getMidiChannelForOwnedMidiMessages()
640{

Callers

nothing calls this directly

Calls 7

getMappedValueMethod · 0.80
getMappedMaxMethod · 0.80
getMappedMinMethod · 0.80
getVstIndexMethod · 0.80
ExpressionClass · 0.50
getValueMethod · 0.45
getNumberMethod · 0.45

Tested by

no test coverage detected