realtime analyzation of incoming midi data

Home Forums General Programming realtime analyzation of incoming midi data

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #84879
    EnzoF04
    Participant
      • Topics: 17
      • Replies: 102
      • Total: 119
      • ★★

      OK So a year ago I stopped working on this project. I stopped because I had problems in my personal life and I had some gap to close between me and CTRLR.

      I need to execute code while midi data is coming in. EG: I want to count the bytes incoming realtime. I know I can put a midi data string into a variable and perform calculations and modifications on the variable. But I need to be exactly in time to respond after N bytes have been received. If I cannot respond after N bytes have been received by the panel, my device is not starting to send the second chunk of data. The device memory can have 100’s of chunks of data in portions of N bytes.

      Is this possible? Thanks for any help!

      #84882
      EnzoF04
      Participant
        • Topics: 17
        • Replies: 102
        • Total: 119
        • ★★

        Perhaps is the topic or goal in the conversation in the link below similar to what I am trying to do?

        Splitting Sysex for older synths

        #84883
        dasfaker
        Keymaster
          • Topics: 80
          • Replies: 793
          • Total: 873
          • ★★★

          Just count the bytes received and perform your code

          midiMessageReceived = function(midiMessage)
          	s = midiMessage:getSize() -- Size of the midi dump received
          	if s == n then -- if size match the expected size of the dump
          		Perform your code
          	end
          end
          #84886
          Possemo
          Participant
            • Topics: 14
            • Replies: 638
            • Total: 652
            • ★★★

            AFAIK This won’t work. We discussed that before. Hi Enzo, I guess you are talking about making a panel for your S700?

            You can read my opinion about this issue on your old thread (see last post):

            getSize only looking at last byte number

            • This reply was modified 5 years, 7 months ago by Possemo.
            #84893
            EnzoF04
            Participant
              • Topics: 17
              • Replies: 102
              • Total: 119
              • ★★

              Thanks doe the quick replies! I’m still trying! In the way the guy in the splitting Sussex topic is trying to do…

              Why is real-time analysation of incoming sysex data not possible in CTRLR?

              Thanks!

              • This reply was modified 5 years, 7 months ago by EnzoF04.
            Viewing 5 posts - 1 through 5 (of 5 total)
            • The forum ‘Programming’ is closed to new topics and replies.
            There is currently 0 users and 71 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