SYSEX RequestSingleParameter

  • I may be swimming in deep waters, but I am trying to learn how to use SYSEX messages on my Kemper with my LF+

    I want to be able to press a button on my LF+, and have it grab the current value of the parameter requested.

    For example: Let's say I want the current GAIN value.
    If I send the following SYSEX command, I believe it will return the data.

    Request Single Parameter Function Code is $41
    Amplifier Address page 10
    Gain=4

    f0 00 20 33 02 7f 41 00 0A 04 f7

    Assuming that is correct, how to I do anything with the returned value? My mind is thinking i need to store this in a variable somehow so I can reuse that value later.

    For Example: Suppose I desire to grab the GAIN setting on the button on command, then I bump up the gain with a another button say to 50%. Then i want to return it to where it was. My thinking is that the button off command could send the stored initial Gain setting back out to the kemper.

    It would not matter what the parameter I was trying to capture, the basic question is:

    How do I store a returned SYSEX requested parameter value?

    Thanks!