Home Forums Macros Matrix last midi command [feature request]

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7192
    Patrick KiznyPacocreative
    Participant

    Matrix currently gives great access to the last *value* coming from midi, but there’s no way to know what note or CC was received, that triggered a command.
    I’m currently programming more complex stuff including communication back to controllers, and having access to this information would be really useful.
    Shouldn’t be tough?

    #7194
    Philippe OllivierPhilippe
    Keymaster

    Hi,

    Assuming that you mapped your midi device to the matrix, you have the possibility to accces to those informations with :

    Declare Local int $lastDial$ = 0
    
    $lastDial$ = {currentCaseValueString()}
    Post {"Current dial is = " + $lastDial$}
    Post {"CC for the current dial is = " + $midiMappingValue[lastDial]$}
    Post {"Midi channel for the current dial is = " + $midiMappingChannel[lastDial]$}
    Post {"The Midi device is = " + $midiMappingDevice$}
    // Which Case is it ?
    Message { "Button or Dial number " + currentCaseValueString() + " : " + currentCaseOptionValueFloat(0)}

    Does this help you?

    Philippe

    #7199
    Patrick KiznyPacocreative
    Participant

    Oh, that’s pure gold! Amazing.
    Is there a way I can access more undocumented stuff somehow?

    #7200
    Philippe OllivierPhilippe
    Keymaster

    Haha, it took more than 20 minutes to find this.
    I was remembering I had already coded something but yes that was not documented…
    This should be in an example, but that’s not the case… -)

    Is there a way I can access more undocumented stuff somehow?

    Not right now, sorry.
    Will do my best to share something soon…
    Philippe

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.