HISE Logo Forum
    • Categories
    • Register
    • Login

    How to code some intricate legato logic... use onTimer() ?

    Scheduled Pinned Locked Moved Scripting
    20 Posts 3 Posters 810 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healeyD
      d.healey @tonewolf
      last edited by

      @tonewolf said in How to code some intricate legato logic... use onTimer() ?:

      Is there significant advantages to separating those all out into discrete MidiLists?

      Yes, do this

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      1 Reply Last reply Reply Quote 1
      • T
        tonewolf @d.healey
        last edited by

        @d-healey ah, great. So is this something different from…

        Link Preview Image
        HISE | Docs

        favicon

        (docs.hise.dev)

        Which says it is limited to 40ms…?

        d.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @tonewolf
          last edited by

          @tonewolf said in How to code some intricate legato logic... use onTimer() ?:

          Which says it is limited to 40ms…?

          Well the code says otherwise, unless my maths is wrong and 0.004 seconds is not 4ms

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          T 1 Reply Last reply Reply Quote 1
          • T
            tonewolf @d.healey
            last edited by

            @d-healey great! Just wanted to make sure we were talking about the same Timer.

            Wonderful. That’s been super helpful, thanks! I’ll see what I can come up with using this method.

            1 Reply Last reply Reply Quote 0
            • T
              tonewolf
              last edited by tonewolf

              Perhaps missing something obvious, but how can I use MidiList to store times, when it only seems to be able to store integer values between -128 and 128?

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @tonewolf
                last edited by

                @tonewolf said in How to code some intricate legato logic... use onTimer() ?:

                store integer values between -128 and 128?

                hmmm, integer yes, but you can store any value (well I'm sure there'll be an upper limit).

                So yeah you'll probably need to use arrays for the time for the precision you need.

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                T 1 Reply Last reply Reply Quote 0
                • T
                  tonewolf @d.healey
                  last edited by

                  @d-healey I think I must have misunderstood the online docs (or they are out of date), as it appears to state the values must be between -128 and 128. But testing, it seems I can have 9 figure integers. Perhaps it means there are indexes between -128 and 128?

                  d.healeyD 1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.healey @tonewolf
                    last edited by

                    @tonewolf Not sure which doc but the indexes go from 0 to 127, so you get one value for each MIDI note - hence the name, MIDI list.

                    Libre Wave - Freedom respecting instruments and effects
                    My Patreon - HISE tutorials
                    YouTube Channel - Public HISE tutorials

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      tonewolf @d.healey
                      last edited by tonewolf

                      @d-healey this is the doc…

                      Link Preview Image
                      HISE | Docs

                      favicon

                      (docs.hise.audio)

                      But in reality, I think it can store a 32bit integer

                      d.healeyD 1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @tonewolf
                        last edited by

                        @tonewolf Ah yeah, that's confusing and wrong :)

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post

                        7

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        102.3k

                        Posts