HISE Logo Forum
    • Categories
    • Register
    • Login

    Save imported audio to AudioFiles folder?

    Scheduled Pinned Locked Moved General Questions
    4 Posts 2 Posters 317 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.
    • P
      paper_lung
      last edited by

      Hi all, I'm wondering if anyone knows if it's possible to save an audio file that's been dragged onto the Waveform component into the AudioFiles folder, rather than keep store the absolute file path?

      oskarshO 1 Reply Last reply Reply Quote 0
      • oskarshO
        oskarsh @paper_lung
        last edited by

        @paper_lung When you get the file that has been dragged you can use File.copy(target) to copy it to the AudioFiles Folder

        Link Preview Image
        HISE | Scripting | File

        A object for accessing a file on disk

        favicon

        (docs.hise.audio)

        P 1 Reply Last reply Reply Quote 0
        • P
          paper_lung @oskarsh
          last edited by

          @oskarsh Perfect, thanks. Do you know if this is then used as the file within the waveform component? so if a user saves a preset, the path is set to the copied file, not the original file?

          oskarshO 1 Reply Last reply Reply Quote 0
          • oskarshO
            oskarsh @paper_lung
            last edited by

            @paper_lung No you only copy the file to the AudioFiles Folder it does not automatically overwrites the file in the AudioLoopPlayer. You could change the file in the loop player manually or on PresetLoad load the correct one from the AudioFiles Folder.

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

            30

            Online

            1.8k

            Users

            12.1k

            Topics

            105.0k

            Posts