realtime analyzation of incoming midi data

Home Forums General Programming realtime analyzation of incoming midi data

This topic contains 4 replies, has 3 voices, and was last updated by  EnzoF04 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #84879

    EnzoF04
    Participant
    • Topics: 8
    • Replies: 41
    • Total: 49

    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: 8
    • Replies: 41
    • Total: 49

    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: 79
    • Replies: 781
    • Total: 860
    • ★★★

    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
    Possemo
    Participant
    • Topics: 13
    • Replies: 500
    • Total: 513
    • ★★★

    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 4 months, 1 week ago by Possemo Possemo.
    #84893

    EnzoF04
    Participant
    • Topics: 8
    • Replies: 41
    • Total: 49

    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 3 months, 4 weeks ago by  EnzoF04.
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

There is currently 0 users and 22 guests online
No users are currently active
Forum Statistics
Threads: 2,172, Posts: 15,313, Members: 28,931
Most users ever online was 10 on October 29, 2018 2:54 pm
Do NOT follow this link or you will be banned from the site!