# 'getMessage()' function not working in 3.1

**URL:** <https://forum.electra.one/t/getmessage-function-not-working-in-3-1/2036>\
**Category:** Bug reports\
**Tags:** lua\
**Created:** [April 29, 2023, 2:07pm UTC](https://forum.electra.one/t/getmessage-function-not-working-in-3-1/2036 "2023-04-29T14:07:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![urbanspaceman](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/urbanspaceman/32/206_2.png) [@urbanspaceman](https://forum.electra.one/u/urbanspaceman)\
**Post date:** [April 29, 2023, 2:39pm UTC](https://forum.electra.one/t/getmessage-function-not-working-in-3-1/2036/2 "2023-04-29T14:39:28Z")

</div>

Apologies, I guess we talked about this recently and I forgot:

> [@parameterMap.onChange() changed?](https://forum.electra.one/t/parametermap-onchange-changed/1979):
>
> When I tried to use parameterMap.onChange() like the example: function parameterMap.onChange(valueObjects, origin, midiValue) print (string.format ("a new midiValue %d from origin %d", midiValue, origin)) for i, valueObject in ipairs (valueObjects) do \*\*local control = valueObject:getControl ()\*\* print (string.format ("affects control value %s.%s", control:getName (), valueObject:getId ())) end end and I turn a control, I get…

---

_[View the full topic](https://forum.electra.one/t/getmessage-function-not-working-in-3-1/2036)._
