HISE Logo Forum
    • Categories
    • Register
    • Login

    spawn function(thread calls)

    Scheduled Pinned Locked Moved Scripting
    4 Posts 4 Posters 673 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.
    • C
      CherryAnt
      last edited by CherryAnt

      Is there anyway call to more than one function in multithread.
      I mean launch functions in a separate parallel execution threads.
      I need:
      function a(){
      b();//run(b());
      c();//run(c());
      }

      function b(){
      playnote....
      }
      function c(){
      playnote....
      }

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

        I don't believe this is possible. We are only using two threads in HISE, the message thread (non-realtime) and the audio thread (real time).

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

        1 Reply Last reply Reply Quote 1
        • Christoph HartC
          Christoph Hart
          last edited by

          If you need pseudo asynchronous execution, use a timer object, but this won‘t be on a dedicated thread just like David said.
          May I ask what you want to do here? I am sure there‘s another solution.

          1 Reply Last reply Reply Quote 1
          • V
            VHO
            last edited by VHO

            We were looking at the issue from the wrong angle. ie trying to control too much from the main container rather then on Sampler level. I think that we now have a better way of handling it with CherryAnt. It is down to working out the Architecture of HISE rather then anything else ;) Thanks for your help guys.

            Why so many samples.... ok ... I still need more :D

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

            53

            Online

            1.7k

            Users

            11.7k

            Topics

            102.1k

            Posts