Trying to remove the text {PROJECT_FOLDER} from getMidiFileList



  • 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();
    


  • @Mwins Use the substring function



  • @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)
    

Log in to reply
 

10
Online

1.3k
Users

4.3k
Topics

38.6k
Posts