trigger a series of NRPN-strings with one push of a button

Home Forums General Using Ctrlr trigger a series of NRPN-strings with one push of a button

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #542
    ooze
    Participant
      • Topics: 8
      • Replies: 18
      • Total: 26

      Hey atom, I really need your help on this!

      To improve and extend my rozzbox editor for ctrlr, I gathered the required information from Kilian (the synth maker), but now I need some help to implement it.

      Given that a desired parameter change can only be aquired by a series of NRPN-strings ("in one go"), I’d like to be able to trigger this series with just a [b:rnnfwa97]single push[/b:rnnfwa97] of a button. Let’s say that I need to launch the follwing series of NRPN-strings for the desired parameter change:

      first NRPN-string:
      CC 99 to 6
      CC 98 to 30
      CC38 to 2
      CC6 to 1

      second NRPN-string:
      CC 99 to 6
      CC 98 to 31
      CC38 to 3
      CC6 to 2

      third NRPN-string:
      CC 99 to 6
      CC 98 to 33
      CC38 to 1
      CC6 to 8

      last command is only:
      CC 99 to 0

      Is this even possible – all in one go by a single push of a button – with one of the default button types in ctrlr and/or could you give me a hint of how it’s done? And would it also be possible to create a on/off-button that sends two of these command lines, one command line for "on" and a different command line for "off"?

      Thanks for any advice

      #3821
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        It’s possible but you’ll need to use LUA to do that (i think it might be also possible using the MULTI MIDI type but am not sure). I’ll post an example code tomorrow, just write both the on and off message sequences here.

        #3822
        ooze
        Participant
          • Topics: 8
          • Replies: 18
          • Total: 26
          "atom":134cq50s wrote:
          It’s possible but you’ll need to use LUA to do that (i think it might be also possible using the MULTI MIDI type but am not sure). I’ll post an example code tomorrow, just write both the on and off message sequences here.[/quote:134cq50s]

          Hey atom, thanks a LOT for your help!!!

          So the "on"-sequence would be exactly as written above:

          first NRPN-string:
          CC 99 to 6
          CC 98 to 30
          CC38 to 2
          CC6 to 1

          second NRPN-string:
          CC 99 to 6
          CC 98 to 31
          CC38 to 3
          CC6 to 2

          third NRPN-string:
          CC 99 to 6
          CC 98 to 33
          CC38 to 1
          CC6 to 8

          last command is only:
          CC 99 to 0

          And the "off"-sequence is basically the same, just the value for CC38 in the third NRPN-string is "2" instead of "1".

          #3823
          ooze
          Participant
            • Topics: 8
            • Replies: 18
            • Total: 26

            whoooop whoooooop!!!! You don’t have to write an example code anymore, your hint with the multi list was enough. I had to fiddle around for a bit, and found out that I have to create a simple list of "CC, direct, direct, x, y" strings. That works. And for that one single different value for "on/off" I put in "-1" and now I can toggle between on and off. It’s a-fuckin-maizing!!!!!! <img decoding=” title=”Very Happy” /> <img decoding=” title=”Very Happy” /> <img decoding=” title=”Very Happy” />

            #3824
            atom
            Keymaster
              • Topics: 159
              • Replies: 2945
              • Total: 3104
              • ★★★★★

              good, glad you made it without lua

            Viewing 5 posts - 1 through 5 (of 5 total)
            • The forum ‘Using Ctrlr’ is closed to new topics and replies.
            There is currently 0 users and 87 guests online
            No users are currently active
            Forum Statistics
            Threads: 2,495, Posts: 17,374, Members: 77,605
            Most users ever online was 12 on January 22, 2019 3:47 pm
            Ctrlr