Forum
    • Categories
    • Register
    • Login

    Execution control / load after copy

    Scheduled Pinned Locked Moved Unsolved Scripting
    4 Posts 2 Posters 24 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.
    • Oli UllmannO
      Oli Ullmann
      last edited by

      Hello everyone! :-)

      I have a specific request. I want to copy an audio file and then load it into the sampler. So far, so good. However, I need to make sure that the loading process only starts after the file has been successfully copied.

      Is there a built-in solution for this? Or do I have to take care of it myself, for example with the help of timers?

      @David-Healey I'm sure you have an idea :-)

      Many thanks,
      Oli

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @Oli Ullmann
        last edited by

        @Oli-Ullmann Been a while since I played with it but the copy function returns a bool, true if the copy was successful. So perhaps the function is asynchronous - test and report back.

        Alternatively you could use a timer to poll the target file and check if it exists.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        Oli UllmannO 1 Reply Last reply Reply Quote 1
        • Oli UllmannO
          Oli Ullmann @David Healey
          last edited by

          @David-Healey
          Yes, those two options also occurred to me if there is no built-in solution.
          I'll try it out and give feedback here.
          Thanks. :-)

          David HealeyD 1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey @Oli Ullmann
            last edited by

            @Oli-Ullmann A broadcaster might be another option - not sure.

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

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

            24

            Online

            2.1k

            Users

            13.0k

            Topics

            112.5k

            Posts