HISE Logo Forum
    • Categories
    • Register
    • Login

    Accessing embedded MIDI files via FileSystem API

    Scheduled Pinned Locked Moved General Questions
    1 Posts 1 Posters 18 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.
    • A
      ally
      last edited by

      I have a viewport filled with dynamically populated child panels. When one is selected, I have another nested child panel that I'm essentially trying to turn into the MIDI Overlay Floating Tile that lets you drag a MIDI file out into your DAW.

      The problem I'm running into is that I can't figure out how to access the embedded MIDI files via the FileSystem API so that I can use them with startExternalFileDrag. I'm loading the files into the MIDI player as a string like this:

      MIDIPlayer.setFile("{PROJECT_FOLDER}"+currentMidiFile+".mid", true, true);
      

      But using the {PROJECT_FOLDER} wildcard to try to get an actual file object doesn't appear to work. I guess I could ship the MIDI files in the app data folder, but I feel like I might just be overlooking something here... Is it possible to get a file object for an embedded MIDI file?

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

      53

      Online

      2.1k

      Users

      12.9k

      Topics

      111.9k

      Posts