| 595 | } |
| 596 | |
| 597 | Expression 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 | |
| 639 | int CtrlrModulatorProcessor::getMidiChannelForOwnedMidiMessages() |
| 640 | { |
nothing calls this directly
no test coverage detected