Problem with sendMidiMessageNow.

Home Forums General Programming Problem with sendMidiMessageNow.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #553
    tejastudio
    Participant
      • Topics: 1
      • Replies: 1
      • Total: 2

      Hello!

      When pitchStretchValue variable is equal -1 method sendMidiMessageNow not send midi message <img decoding=” title=”Sad” />. When pitchStretchValue is -2 or 1 or 0 everything is ok.

      [code:jfsahwxf]pitchStretch = panel:getModulatorByName("Quick_PitchStretch")
      pitchStretchValue = pitchStretch:getModulatorValue()

      if pitchStretchValue == -3 then
      message = CtrlrMidiMessage({0xf0, 0x42, 0x30, 0x00, 0x01, 0x0d, 0x41, 0x03, 0x00, 0x23, 0x00, 0x00, 0x0f, 0x7f, 0x7f, 0x7f, 0x7d, 0xf7})
      panel:sendMidiMessageNow(message)
      end

      if pitchStretchValue == -2 then
      message = CtrlrMidiMessage({0xf0, 0x42, 0x30, 0x00, 0x01, 0x0d, 0x41, 0x03, 0x00, 0x23, 0x00, 0x00, 0x0f, 0x7f, 0x7f, 0x7f, 0x7e, 0xf7})
      panel:sendMidiMessageNow(message)
      end

      if pitchStretchValue == -1 then
      message = CtrlrMidiMessage({0xf0, 0x42, 0x30, 0x00, 0x01, 0x0d, 0x41, 0x03, 0x00, 0x23, 0x00, 0x00, 0x0f, 0x7f, 0x7f, 0x7f, 0x7f, 0xf7})
      panel:sendMidiMessageNow(message)
      end

      if pitchStretchValue == 0 then
      message = CtrlrMidiMessage({0xf0, 0x42, 0x30, 0x00, 0x01, 0x0d, 0x41, 0x03, 0x00, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf7})
      panel:sendMidiMessageNow(message)
      end
      ...[/code:jfsahwxf]
      Do you have any ideas?

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

        Witch build of Ctrlr are you using ?

        #3868
        tejastudio
        Participant
          • Topics: 1
          • Replies: 1
          • Total: 2

          Revision: 833
          BuildDate: 2011/10/31 23:30:36
          Type: Stable
          Version: JUCE v2.0.8

          I download Nightly version and now it’s working fine <img decoding=” title=”Smile” />. Thanks!

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

            When it comes to the LUA api the latest fixes are always in the nightly build. I strongly advise everyone to use that at the moment.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The forum ‘Programming’ is closed to new topics and replies.
          There is currently 0 users and 125 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