Forum

    • Register
    • Login
    • Search
    • Categories

    Trying to remove the text {PROJECT_FOLDER} from getMidiFileList

    General Questions
    2
    3
    66
    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.
    • M
      Mwins last edited by

      Hey does anyone know how to remove the {PROJECT_FOLDER} text from the getMidiFileList array? I have a midi file list connected to a ComboBox and the list displays as {PROJECT_FOLDER}mymidifile.mid for each item.

      This shows up in development and also on the exported plugin. The functionality is all good but I don't want the user to see {PROJECT_FOLDER} before every item.

      Is there a way to edit the text or customize how the data is displayed in the combobox?

      .getMIDIFileList();
      
      d.healey 1 Reply Last reply Reply Quote 0
      • d.healey
        d.healey @Mwins last edited by

        @Mwins Use the substring function

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

        1 Reply Last reply Reply Quote 0
        • M
          Mwins last edited by

          @d-healey, Thanks D, I looked into that but couldn't quite get it to work but it lead me to some other string functions such as replace which ended up being exactly what I was looking for. For anybody looking for an answer to this thread, I ended up using

          const var oldstr = "{PROJECT_FOLDER}";
          const var newstr = "";
          
          .replace(oldstr, newstr)
          
          1 Reply Last reply Reply Quote 1
          • First post
            Last post

          3
          Online

          1.1k
          Users

          6.8k
          Topics

          62.7k
          Posts