| 861 | } |
| 862 | |
| 863 | void CtrlrPanel::setModulatorValuesFromData (const MemoryBlock &dataSource, const String &propertyToIndexBy, const CtrlrByteEncoding byteEncoding, int propertyOffset, int bytesPerValue, const bool useMappedValues) |
| 864 | { |
| 865 | for (unsigned int index = 0; index<dataSource.getSize() / bytesPerValue; index++) |
| 866 | { |
| 867 | CtrlrModulator *m = getModulatorWithProperty (propertyToIndexBy, propertyOffset + index); |
| 868 | if (m) |
| 869 | { |
| 870 | const int v = dataSource.getBitRange (index * bytesPerValue * 8, bytesPerValue * 8); |
| 871 | |
| 872 | if (!m->isStatic()) |
| 873 | { |
| 874 | if (useMappedValues) |
| 875 | m->setValueMapped (v, false, true); |
| 876 | else |
| 877 | m->setValueNonMapped (v, false, true); |
| 878 | } |
| 879 | } |
| 880 | } |
| 881 | } |
| 882 | |
| 883 | void CtrlrPanel::wrapForLua (lua_State *L) |
| 884 | { |
nothing calls this directly
no test coverage detected