Controlling data flow/time ratios with Lua?

Home Forums General Programming Controlling data flow/time ratios with Lua?

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #6392
    Hecticcc
    Participant
      • Topics: 25
      • Replies: 160
      • Total: 185
      • ★★

      As the title says, i am wondering if this can be done?
      eg if x bytes are sent over y time delay the next message for z time.
      Could this be archieved with the existing hooks, maybe using global memoryblocks & timer(s)?

      I am wondering because the sysex interpreter of the device i am working on gets “knocked out” at some times when alot of data is sent to it.

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

        what does it mean “knocked out” ?

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

          Yeah i need to remove those docs, they’re just misleading i’ll delete that with the next release.

          #6400
          Hecticcc
          Participant
            • Topics: 25
            • Replies: 160
            • Total: 185
            • ★★

            what does it mean “knocked out” ?

            It stops responding, propably the software on the device hangs when too much data is received in a short timeframe.
            Other midimessages still get handled though so cc and note data is still reacted to.

            My guess is that the sysex interpreter is limited to a certain data rate, not the full midi-standard 31250 baud bandwidth, and limiting the data rate of the sysex messages Ctrlr spits out at certain moments would keep the device from dropping out.

            I know i could use loads of cascaded timers to spread out the load, but this would be a very “clumsy” and inflexible way imo because alot of different messages are being sent.

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

              Do you mean CTRLR stops responding or your device ?

              #6404
              Hecticcc
              Participant
                • Topics: 25
                • Replies: 160
                • Total: 185
                • ★★
                #6405
                atom
                Keymaster
                  • Topics: 159
                  • Replies: 2945
                  • Total: 3104
                  • ★★★★★

                  I’ll add an option that will delay sending of MIDI messages by a specified time, this will also be available in Lua. It’s all there is just didn’t make the parameter to sendMidiMessage() visible. Since CTRLR is using this call to send all it’s midi data out:
                  http://www.rawmaterialsoftware.com/juce/api/classMidiOutput.html#a023c7c703b5231048767a2ab1d24193d

                  then it’s possible to delay those messages, but only for MIDI devices, when using as a plugin i’d have to timestamp the MIDI messages differently.

                  #6410
                  Hecticcc
                  Participant
                    • Topics: 25
                    • Replies: 160
                    • Total: 185
                    • ★★
                    #7046
                    Hecticcc
                    Participant
                      • Topics: 25
                      • Replies: 160
                      • Total: 185
                      • ★★

                      Did you get around to doing this Atom? I ask because using the what() command in rev 1320 i found a great number of midi-related functions that look very interesting, but i cannot seem to get them functioning…

                      Examples of the functions i found for MidiMessage that i suspect i can use for this:


                      isMidiStart
                      isMidiStop
                      isMidiContinue
                      setTimeStamp
                      addToTimeStamp
                      etc...

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

                        No i didn’t do that yet. I’ll let you know when it’s done. Theese methods are for managing the MidiMessage class they won’t do anything to CtrlrMidiMessage.

                        #7049
                        Hecticcc
                        Participant
                          • Topics: 25
                          • Replies: 160
                          • Total: 185
                          • ★★
                          #7051
                          atom
                          Keymaster
                            • Topics: 159
                            • Replies: 2945
                            • Total: 3104
                            • ★★★★★

                            I just don’t have the time now, i started a new job. I can’t code in the new job and when i get home i’m too tired or too depressed to actually do anything. I hope this will change, i need to get a light laptop i can take with me to work so i can code on it.

                            #7069
                            Hecticcc
                            Participant
                              • Topics: 25
                              • Replies: 160
                              • Total: 185
                              • ★★

                              Kinda in the same boat here so i get ya.

                              Started a fulltime class for network admin last month, and when i get home my son is priority 1. When he goes to sleep i am usually too tired to bother getting behind the computer – especially because i have been behind one all day, rather spend some time with the misses.

                              Sometimes i get a day off from the class and then i make some time to work on my panel, but these moments are scarce.

                              Bottom line – i don’t mind the wait 😉

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

                                I added a issue tracker plugin (a link in the top menu), i added this feature request so it doesn’t get lost in the crowd.

                                #7074
                                Hecticcc
                                Participant
                                  • Topics: 25
                                  • Replies: 160
                                  • Total: 185
                                  • ★★
                                Viewing 15 posts - 1 through 15 (of 15 total)
                                • The forum ‘Programming’ is closed to new topics and replies.
                                There is currently 0 users and 96 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