HISE Logo Forum
    • Categories
    • Register
    • Login

    extract and display AudioPlayer file name

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 250 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.
    • musictopM
      musictop
      last edited by

      Any advice on how to best extract the name of the loaded file in AudioPlayer to be then displayed in UI Label element?

      my website: https://musictop69.wixsite.com/ilirbajri
      https://musictop69.wixsite.com/creatools
      https://musictop69.wixsite.com/orchestools

      ulrikU 1 Reply Last reply Reply Quote 0
      • ulrikU
        ulrik @musictop
        last edited by ulrik

        @musictop Use this to get the name, it will return the name plus the path

        If the audio file is inside the "AudioFiles" folder in the project it will add this

        {PROJECT_FOLDER}...filename
        

        and then you have to filter out the actual name

        const var AudioLoopPlayer1 = Synth.getAudioSampleProcessor("Audio Loop Player1");
        Console.print(AudioLoopPlayer1.getFilename());
        

        Hise Develop branch
        MacOs 15.3.1, Xcode 16.2
        http://musikboden.se

        musictopM 1 Reply Last reply Reply Quote 1
        • musictopM
          musictop @ulrik
          last edited by

          @ulrik Thank you!

          my website: https://musictop69.wixsite.com/ilirbajri
          https://musictop69.wixsite.com/creatools
          https://musictop69.wixsite.com/orchestools

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

          15

          Online

          1.7k

          Users

          11.9k

          Topics

          103.6k

          Posts